I have created a custom extension using the Dynatrace Extensions VSCode app. Everything is working as expected, when I scrape my metrics it is able to find all metrics and generate keys and values. The issue I am having is that we have our metrics grouped by workflow types and status and I am unsure of how to build the topology into my yaml. Is there documentation on how the topology is configured?
Sample metrics:
# HELP scaler_deployed_workflows_total Monitoring Scaler's health by tracking malfunctioning workflows.
# TYPE scaler_deployed_workflows_total gauge
scaler_deployed_workflows_total{status="active",group="on_demand",} 0.0
scaler_deployed_workflows_total{status="inactive",group="on_demand",} 0.0
scaler_deployed_workflows_total{status="inactive",group="batch",} 0.0
scaler_deployed_workflows_total{status="active",group="batch",} 28.0
scaler_deployed_workflows_total{status="active",group="system",} 8.0
scaler_deployed_workflows_total{status="inactive",group="system",} 0.0
How can I add the additional “groupings” for each metric? When the ext is running in my environment it seems to only gather the first metric.
Sample yaml:
prometheus: - group: metrics metrics: - key: scaler_deployed_workflows_total value: metric:scaler_deployed_workflows_total type: gauge