From e0ec2f674644ccb36a8b24bfe4876dcdd24c12f7 Mon Sep 17 00:00:00 2001 From: Pavan Gudiwada <25551553+pavangudiwada@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:49:58 +0530 Subject: [PATCH] Updated ScrapeConfig docs --- Documentation/user-guides/scrapeconfig.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/user-guides/scrapeconfig.md b/Documentation/user-guides/scrapeconfig.md index 553f372f19e..63a5f71e393 100644 --- a/Documentation/user-guides/scrapeconfig.md +++ b/Documentation/user-guides/scrapeconfig.md @@ -34,6 +34,13 @@ spec: With this example, all `ScrapeConfig` having the `prometheus` label set to `system-monitoring-prometheus` will be used to generate scrape configurations. +To select `ScrapeConfigs` based on the namespace `scrapeConfigNamespaceSelector` field can be used. Set it to `{}` to match `ScrapeConfigs` from all namespaces. + +```yaml +spec: + scrapeConfigNamespaceSelector: {} +``` + # Use ScrapeConfig to scrape an external target `ScrapeConfig` currently supports a limited set of service discoveries: