-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Prometheus] Add dimension fields to query and collector datastreams …
…for TSDB support (#5974) * Add dimension fields to all datastream for TSDB support Signed-off-by: Tetiana Kravchenko <[email protected]> * add ingest pipelines, fix PR number Signed-off-by: Tetiana Kravchenko <[email protected]> * fix PR number Signed-off-by: Tetiana Kravchenko <[email protected]> * add query_name as an extra label Signed-off-by: Tetiana Kravchenko <[email protected]> * remove remote_write changes - need more investirations; replace some field, that identify where integration is runnig Signed-off-by: Tetiana Kravchenko <[email protected]> * add dimension to the agent.id fields Signed-off-by: Tetiana Kravchenko <[email protected]> --------- Signed-off-by: Tetiana Kravchenko <[email protected]>
- Loading branch information
1 parent
932eb9f
commit 03a618e
Showing
12 changed files
with
65 additions
and
1 deletion.
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
8 changes: 8 additions & 0 deletions
8
packages/prometheus/data_stream/collector/elasticsearch/ingest_pipeline/default.yml
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,8 @@ | ||
--- | ||
description: Pipeline for processing Prometheus metrics. | ||
processors: | ||
- fingerprint: | ||
fields: ["prometheus.labels"] | ||
target_field: "prometheus.labels_id" | ||
ignore_failure: true | ||
ignore_missing: true |
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
14 changes: 14 additions & 0 deletions
14
packages/prometheus/data_stream/query/elasticsearch/ingest_pipeline/default.yml
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,14 @@ | ||
--- | ||
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" | ||
ignore_failure: true | ||
ignore_missing: true |
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
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 |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
name: service.address | ||
- external: ecs | ||
name: service.type | ||
- external: ecs | ||
name: agent.id |
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