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

Tie extension metrics to host entity

jordan_rose
Helper

How can I tie prometheus extension metrics to a host entity? I have looked at tons of examples and cant seem to figure this out.

 

The goal is to display the collected metrics on a specific host's unified analysis screen. The chart gets displayed but it is filtered for the host so it doesn't show any metrics.

 

I am in the beginning stages of figuring this out so any help is greatly appreciated!

 

Example of yaml -

name: custom:promethius.genai.extension
version: 0.0.13
minDynatraceVersion: "1.307.0"
author:
  name: JR

prometheus:
  - group: metrics
    metrics:
      - key: go_gc_cycles_automatic_gc_cycles_total.count
        value: metric:go_gc_cycles_automatic_gc_cycles_total
        type: count
     
metrics:  
  - key: go_gc_cycles_automatic_gc_cycles_total.count
    metadata:
      displayName: Go Gc Cycles Automatic Gc Cycles Total
      description: Count of completed GC cycles generated by the Go runtime.
      unit: Unspecified
 
screens:
  - entityType: HOST
    detailsInjections:
      - type: CHART_GROUP
        key: genai_metrics
        conditions:
          - entityAttribute|detectedName=hostname.domain.com
    chartsCards:
      - key: genai_metrics
        mode: NORMAL
        displayName: Metrics Scraped from hostname:port/metrics
        numberOfVisibleCharts: 1
        charts:
          - displayName: GO GC Metrics
            visualizationType: GRAPH_CHART
            graphChartConfig:
              metrics:
                - metricSelector: go_gc_cycles_automatic_gc_cycles_total.count

 

 

 

0 REPLIES 0

Featured Posts