-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: fix old instances of prometheus.exporter.unix not needing a lab…
…el (#5543) PR #5361 removed the concept of "singleton components" (components which must not have a user-specified label), and thus made prometheus.exporter.unix require a label. However, documentation referring to the old form of this component was not updated to include a label. Related to #5542.
- Loading branch information
Showing
8 changed files
with
43 additions
and
47 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
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
8 changes: 4 additions & 4 deletions
8
docs/sources/flow/tutorials/assets/flow_configs/example.river
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
prometheus.exporter.unix { | ||
set_collectors = ["cpu", "diskstats"] | ||
prometheus.exporter.unix "default" { | ||
set_collectors = ["cpu", "diskstats"] | ||
} | ||
|
||
prometheus.scrape "my_scrape_job" { | ||
targets = prometheus.exporter.unix.targets | ||
targets = prometheus.exporter.unix.default.targets | ||
forward_to = [prometheus.remote_write.default.receiver] | ||
} | ||
|
||
prometheus.remote_write "default" { | ||
endpoint { | ||
url = "http://mimir:9009/api/v1/push" | ||
} | ||
} | ||
} |
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