-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add otel collector service telemetry metrics (#364)
* add otel collector service telemetry metrics Configure a prometheus endpoint which serves metrics about the otel-collector itself. Also adds a prom_scraper_config so promscraper scrapes the metrics. * add otel service telemetry metrics to windows jobs * fix: selectively enable prom scraping of otel collectors When OTel Collector jobs are disabled, don't output any prom scraper configuration so that the prom scraper skips over these jobs. This avoids continual error messages logged by the prom scraper when it can't scrape a destination. * fix(otel-collector-windows): align default port with otel-collector * refactor: remove service prefix from telemetry properties Since we already dropped exact parity with OTel Collector settings with `ingress.grpc.tls.*`, we think it's preferable to remove the `service.` prefix from telemetry properties in the OTel Collector jobs. --------- Signed-off-by: Rebecca Roberts <[email protected]> Signed-off-by: Andrew Crump <[email protected]> Signed-off-by: Carson Long <[email protected]>
- Loading branch information
Showing
6 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
jobs/otel-collector-windows/templates/prom_scraper_config.yml.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<% if p('enabled') %> | ||
--- | ||
port: <%= p("telemetry.metrics.port") %> | ||
source_id: "otel-collector" | ||
instance_id: <%= spec.id || spec.index.to_s %> | ||
scheme: http | ||
labels: | ||
origin: otel-collector | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<% if p('enabled') %> | ||
--- | ||
port: <%= p("telemetry.metrics.port") %> | ||
source_id: "otel-collector" | ||
instance_id: <%= spec.id || spec.index.to_s %> | ||
scheme: http | ||
labels: | ||
origin: otel-collector | ||
<% end %> |