-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[prometheus-mongodb-exporter] Support multi-target exporter (#4875)
* feat(mongodb): support multi-target exporter Signed-off-by: Baptiste Roux <[email protected]> * feat(prometheus-mongodb-exporter): apply suggestions Signed-off-by: Baptiste Roux <[email protected]> * chore(prometheus-mongodb-exporter): bump chart version Signed-off-by: Baptiste Roux <[email protected]> * chore(prometheus-mongodb-exporter): add CI multi-target test Signed-off-by: Baptiste Roux <[email protected]> * fix(prometheus-mongodb-exporter): rename CI multi-target test file Signed-off-by: Baptiste Roux <[email protected]> --------- Signed-off-by: Baptiste Roux <[email protected]>
- Loading branch information
Showing
7 changed files
with
116 additions
and
16 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
18 changes: 18 additions & 0 deletions
18
charts/prometheus-mongodb-exporter/ci/servicemonitor-multi-target-values.yaml
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,18 @@ | ||
serviceMonitor: | ||
enabled: true | ||
multiTarget: | ||
enabled: true | ||
username: test | ||
password: | ||
value: test | ||
targets: | ||
- uri: "mongodb://mongodb-0.staging.internal:27017/admin" | ||
name: "mongodb-0" | ||
- uri: "mongodb://mongodb-1.staging.internaltld:27017/admin" | ||
name: "mongodb-1" | ||
scrapeTimeout: 30s | ||
interval: 60s | ||
metricRelabelings: | ||
- targetLabel: environment | ||
replacement: staging | ||
action: replace |
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