Configure Discovery of Kubernetes Informer
Configuration
discovery.informer.k8s block
discovery.informer.k8s blockdiscovery "informer" "k8s" { kubeconfig_path = "/etc/mermin/kubeconfig" }discovery "informer" "k8s" { informers_sync_timeout = "120s" }[ { kind = "Service" }, { kind = "Endpoint" }, { kind = "EndpointSlice" }, { kind = "Gateway" }, { kind = "Ingress" }, { kind = "Pod" }, { kind = "ReplicaSet" }, { kind = "Deployment" }, { kind = "Daemonset" }, { kind = "StatefulSet" }, { kind = "Job" }, { kind = "CronJob" }, { kind = "NetworkPolicy" }, ]namespaces = ["loggers"] kind = "Gateway" include = falsekind = "Pod" match_labels = { operated-prometheus = "true" } match_expressions = [{ key = "env" operator = "In" values = ["dev", "stage"] }]
Object Types
Selector
Match Expression
Supported Resource Kinds
Kind
Purpose
Performance Considerations
Memory Usage
API Server Load
Sync Time
Troubleshooting
Informer Sync Timeout
Missing Metadata
High Memory Usage
Best Practices
Next Steps
Need Help?
Last updated