From f7e1dd7a28267d73e5a78aa1a151d9c7a2f572db Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Thu, 1 Aug 2024 12:25:33 +0545 Subject: [PATCH] default watch resources --- .../docs/config-db/scrapers/kubernetes.mdx | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/mission-control/docs/config-db/scrapers/kubernetes.mdx b/mission-control/docs/config-db/scrapers/kubernetes.mdx index 8c30551c..d0d2019f 100644 --- a/mission-control/docs/config-db/scrapers/kubernetes.mdx +++ b/mission-control/docs/config-db/scrapers/kubernetes.mdx @@ -110,9 +110,12 @@ The `kubernetes` scraper collects all of the resources and events in a Kubernete ### Watch Events & Resources -Use property `watch.disable` to disable watching events & resources. +While the kubernetes scraper runs on a schedule you've specified, it can also watch for changes to resources and events in real-time. +This allows near-real-time updates to your kubernetes catalogs with the flexibility of performing full scrape on a larger interval. -#### Events +This feature is enabled by default but can be disabled by setting the property `watch.disable=true`. + +#### Event Exclusions `Kubernetes::Event` resources are mapped to config changes. Events can be very verbose so they can be excluded or their severity level changed: @@ -147,6 +150,19 @@ Use property `watch.disable` to disable watching events & resources. ]} /> +The following resource types are "watched" by default. + +| apiVersion | kind | +| ---------- | ------------- | +| `apps/v1` | `DaemonSet` | +| `apps/v1` | `Deployment` | +| `apps/v1` | `ReplicaSet` | +| `apps/v1` | `StatefulSet` | +| `batch/v1` | `CronJob` | +| `batch/v1` | `Job` | +| `v1` | `Node` | +| `v1` | `Pod` | + ### Relationships You can create relationships between kubernetes objects on the basis of kind, name & namespace.