-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Single ServiceMonitor for store shards
The Prometheus operator creates 1 job per endpoint on each ServiceMonitor object it discovers. When using the thanos-store hashmod sharding feature of kube-thanos, 1 ServiceMonitor was created per store shard. This resulted in 1 prometheus job per shard, with names like "thanos-store-0", "thanos-store-1". This commit changes this behavior to instead create only 1 ServiceMonitor, with a Service label selector that selects all Services for the shards. Signed-off-by: Craig Furman <craig.furman89@gmail.com>
- Loading branch information
1 parent
f1118ca
commit 17a8138
Showing
6 changed files
with
85 additions
and
91 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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