25 Oct 2024 01:20 PM - last edited on 25 Oct 2024 01:32 PM by MaciejNeumann
Hi fellow Dynatracers,
I am currently writing an extension for scraping a prometheus endpoint of an appliance. This is a virtual appliance that is under update control of the supplier.
Coding
# HELP node_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, goversion from which node_exporter was built, and the goos and goarch for the build.
example for <suppliername>.<supplierProductname> could be paloalto.cortexxdr or f5.bigip ... etc.
Solved! Go to Solution.
04 Dec 2024 01:03 PM
Anyone has an idea on how to get e.g. those attributes from a "static" metric? The other stuff I can just decide myself, for those questions I was only hoping for additional insights from fellow-dynatracers.
18 Dec 2024 08:57 AM
For question 1 and 2, I think you propose a good system for them.
As for 3, you can always download the YAML's of existing extensions from the Dynatrace hub and have a look. the f5 contain most functionality. Here's how it's done as soon as the value is added as a dimension to the metric line:
topology:
types:
# Generic Network Types
- name: network:device
enabled: true
displayName: Network device
rules:
- idPattern: network_device_{device.address}
instanceNamePattern: "{instance.name}"
iconPattern: f5
sources:
- sourceType: Metrics
condition: $eq(com.dynatrace.extension.f5.bigip.sys.uptime)
requiredDimensions:
- key: instance.systemname
attributes:
- key: devMonitoringMode
displayName: Monitoring mode
pattern: "{monitoring.mode}"