Skip to content

Commit

Permalink
Consolidate prometheus synthesis (#1558)
Browse files Browse the repository at this point in the history
* feat: Add instanceid and host.id tags for prometheus on a host

* Feat: Consolidated prometheus synthesis rules
  • Loading branch information
nr-codylawson authored Mar 19, 2024
1 parent f670706 commit 41a2ca7
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions entity-types/infra-host/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,26 +230,7 @@ synthesis:
nodename:
entityTagNames: [hostname]
instrumentation.provider:
# AWS EC2 by instanceid
- identifier: instanceid
name: instanceid
legacyFeatures:
overrideGuidType: true
encodeIdentifierInGUID: true
conditions:
- attribute: instance
present: false
- attribute: metricName
prefix: "node_"
- attribute: instrumentation.provider
value: "prometheus"
tags:
instanceid:
entityTagNames: [host.id, instanceid]
nodename:
entityTagNames: [hostname]
instrumentation.provider:
# On a host
# AWS EC2 or On a host
- identifier: instance
name: instance
legacyFeatures:
Expand Down

0 comments on commit 41a2ca7

Please sign in to comment.