populate integratinos dir with all other missing metrics
@@ -67,6 +67,8 @@ MONITORS_TO_INTEGRATIONS_DIR = {
("pkg/monitors/mongodb/atlas", "mongodb-atlas"): "mongodb-atlas",
}
+ALL_OTHER_METRICS_DIR = "signalfx-agent-metrics"
+
def load_monitor_docs_from_self_describe_json():
with open(AGENT_ROOT / "selfdescribe.json", "r", encoding="utf-8") as self_describe_json:
@@ -204,7 +206,7 @@ def monitor_docs_per_integrations_repo(monitor_docs):
)
if not integrations_dir:
- continue
+ integrations_dir = ALL_OTHER_METRICS_DIR
if integrations_dir not in out:
out[integrations_dir] = {}
@@ -248,7 +250,7 @@ def get_template():
def sync_docs(integration_dirs):
- integrations_dirs_to_skip = set(["signalfx-agent"])
+ integrations_dirs_to_skip = set(["signalfx-agent", "signalfx-agent-metrics"])
template = get_template()
for integrations_dir, monitors_info in integration_dirs.items():
@@ -323,9 +325,12 @@ def generate_config_yaml(mon_config):
def sync_config(integration_dirs):
+ integrations_dirs_to_skip = set(["signalfx-agent-metrics"])
for integrations_dir, monitors_info in integration_dirs.items():
- config_yaml = generate_config_yaml(monitors_info.get("config", {}))
+ if integrations_dir in integrations_dirs_to_skip:
+ continue
+ config_yaml = generate_config_yaml(monitors_info.get("config", {}))
if config_yaml == "":
continue
