cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Prometheus metrics topology

Jennifer
Observer

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

 

1 REPLY 1

Mike_L
Dynatrace Guru
Dynatrace Guru

Hi,

You can add that as dimensions, for example:

prometheus:
  - group: metrics
    metrics:      
      - key: scaler_deployed_workflows_total
        value: metric:scaler_deployed_workflows_total
        type: gauge
    dimensions:
      - key: status
        value: label:status
      - key: group
        value: label:group
Mike

Featured Posts