Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions entity-types/infra-consulagent/definition.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
domain: INFRA
type: CONSULAGENT

synthesis:
rules:
# OpenTelemetry synthesis rule for Consul metrics from OTel Prometheus receiver
- ruleName: infra_consulagent_otel_instance
identifier: service.instance.id
name: service.instance.id
encodeIdentifierInGUID: true
conditions:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we not using otel.library.name for filtering the telemetry?

- attribute: otel.library.name
  value: "otelcol/prometheusreceiver"

- attribute: eventType
value: Metric
- attribute: metricName
prefix: consul_
- attribute: instrumentation.provider
value: opentelemetry
- attribute: service.instance.id
tags:
instance:
job:
service.instance.id:
service.name:
node:
datacenter:
otel.library.name:
entityTagName: instrumentation.name

tags:
# For OpenTelemetry
telemetry.sdk.name:
entityTagName: instrumentation.provider

configuration:
entityExpirationTime: DAILY
alertable: true
Expand All @@ -8,6 +39,8 @@ dashboardTemplates:
# This should match the entity created from the ohi in the infra pipeline
newRelic:
template: newrelic_dashboard.json
opentelemetry:
template: opentelemetry_dashboard.json

ownership:
primaryOwner:
Expand Down
19 changes: 0 additions & 19 deletions entity-types/infra-consulagent/opentelemetry_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,25 +174,6 @@
"accountId": 0}
]
}
},
{
"visualization": {
"id": "viz.table"
},
"layout": {
"column": 1,
"row": 13,
"height": 3,
"width": 12
},
"title": "Node and Datacenter Coverage",
"rawConfiguration": {
"nrqlQueries": [
{
"query": "FROM Metric SELECT count(*) WHERE instrumentation.provider = 'opentelemetry' AND metricName LIKE 'consul_%' FACET consul.node.name, consul.datacenter LIMIT 100",
"accountId": 0}
]
}
}
]
}
Expand Down
Loading