You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a URL is specified, Container insights only scrapes the endpoint. When Kubernetes service is specified, the service name is resolved with the cluster DNS server to get the IP address. Then the resolved service is scraped.
@@ -64,10 +64,10 @@ When a URL is specified, Container insights only scrapes the endpoint. When Kube
64
64
|------|-----|-----------|-------|-------------|
65
65
| Cluster-wide |||| Specify any one of the following three methods to scrape endpoints for metrics. |
66
66
||`urls`| String | Comma-separated array | HTTP endpoint (either IP address or valid URL path specified). For example: `urls=[$NODE_IP/metrics]`. ($NODE_IP is a specific Container insights parameter and can be used instead of a node IP address. Must be all uppercase.) |
67
-
||`kubernetes_services`| String | Comma-separated array | An array of Kubernetes services to scrape metrics from kube-state-metrics. Fully qualified domain names must be used here. For example,`kubernetes_services = ["https://metrics-server.kube-system.svc.cluster.local/metrics",http://my-service-dns.my-namespace.svc.cluster.local:9100/metrics]`|
67
+
||`kubernetes_services`| String | Comma-separated array | An array of Kubernetes services to scrape metrics from kube-state-metrics. Fully qualified domain names must be used here. For example,`kubernetes_services = ["http://metrics-server.kube-system.svc.cluster.local/metrics",http://my-service-dns.my-namespace.svc.cluster.local:9100/metrics]`|
68
68
||`monitor_kubernetes_pods`| Boolean | true or false | When set to `true` in the cluster-wide settings, the Container insights agent will scrape Kubernetes pods across the entire cluster for the following Prometheus annotations:<br> `prometheus.io/scrape:`<br> `prometheus.io/scheme:`<br> `prometheus.io/path:`<br> `prometheus.io/port:`|
69
69
||`prometheus.io/scrape`| Boolean | true or false | Enables scraping of the pod, and `monitor_kubernetes_pods` must be set to `true`. |
70
-
||`prometheus.io/scheme`| String | http or https | Defaults to scraping over HTTP. If necessary, set to `https`. |
70
+
||`prometheus.io/scheme`| String | http | Defaults to scraping over HTTP. |
71
71
||`prometheus.io/path`| String | Comma-separated array | The HTTP resource path from which to fetch metrics. If the metrics path isn't `/metrics`, define it with this annotation. |
72
72
||`prometheus.io/port`| String | 9102 | Specify a port to scrape from. If the port isn't set, it will default to 9102. |
73
73
||`monitor_kubernetes_pods_namespaces`| String | Comma-separated array | An allowlist of namespaces to scrape metrics from Kubernetes pods.<br> For example, `monitor_kubernetes_pods_namespaces = ["default1", "default2", "default3"]`|
0 commit comments