1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 06:45:27 +01:00

Merge pull request #7185 from prometheus-operator/chore/role-selector-pod-monitor

[CHORE] Add support for role selectors on PodMonitor.
This commit is contained in:
Nicolas Takashi
2024-12-13 15:51:30 +00:00
committed by GitHub
16 changed files with 572 additions and 44 deletions

View File

@@ -1021,6 +1021,14 @@
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"selectorMechanism": {
"description": "Mechanism used to select the endpoints to scrape.\nBy default, the selection process relies on relabel configurations to filter the discovered targets.\nAlternatively, you can opt in for role selectors, which may offer better efficiency in large clusters.\nWhich strategy is best for your use case needs to be carefully evaluated.\n\nIt requires Prometheus >= v2.17.0.",
"enum": [
"RelabelConfig",
"RoleSelector"
],
"type": "string"
},
"targetLimit": {
"description": "`targetLimit` defines a limit on the number of scraped targets that will\nbe accepted.",
"format": "int64",