Skip to content

Commit

Permalink
add query_name as an extra label
Browse files Browse the repository at this point in the history
Signed-off-by: Tetiana Kravchenko <[email protected]>
  • Loading branch information
tetianakravchenko committed Apr 24, 2023
1 parent 893a094 commit d59d784
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
---
description: Pipeline for processing Prometheus metrics.
processors:
- foreach:
field: "prometheus.query"
processor:
set:
field: "prometheus.labels.query_name"
value: "{{_ingest._key}}"
- fingerprint:
fields: ["prometheus.labels"]
target_field: "prometheus.labels_id"
Expand Down

0 comments on commit d59d784

Please sign in to comment.