
- job_name: kubernetes-nodes
scrape_interval: 1m
scrape_timeout: 10s
metrics_path: /metrics
scheme: https
kubernetes_sd_configs:
- api_server: null
role: node
namespaces:
names: []
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecure_skip_verify: true
relabel_configs:
- separator: ;
regex: __meta_kubernetes_node_label_(.+)
replacement: $1
action: labelmap
- separator: ;
regex: (.*)
target_label: __address__
replacement: kubernetes.default.svc:443
action: replace
- source_labels: [__meta_kubernetes_node_name]
separator: ;
regex: (.+)
target_label: __metrics_path__
replacement: /api/v1/nodes/${1}/proxy/metrics
action: replace
- source_labels: [__meta_kubernetes_namespace]
separator: ;
regex: (.*)
target_label: namespace
replacement: $1
action: replace
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e870a684-d6f7-46bc-8348-b28dcb260ae4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
curl -H "Authorization: Bearer $(</var/run/secrets/kubernetes.io/serviceaccount/token)" https://kubernetes.default.svc:443/api/v1/nodes/<node_name>/proxy/metrics --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.

Hello,
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a2150e28-51af-49ef-962c-1d3a71f73483%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/873286fe-ef20-4658-8c9a-c370f65f164d%40googlegroups.com.


To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/873286fe-ef20-4658-8c9a-c370f65f164d%40googlegroups.com.
You can look at the following query:
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/873286fe-ef20-4658-8c9a-c370f65f164d%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/fbde1b20-cc19-4d64-8860-3bb6bf0b713c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/fbde1b20-cc19-4d64-8860-3bb6bf0b713c%40googlegroups.com.
level=debug ts=2019-06-24T05:59:55.457Z caller=scrape.go:923 component="scrape manager" scrape_pool=kubernetes-nodes target=https://kubernetes.default.svc:443/api/v1/nodes/shashirbac-worker-03/proxy/metrics msg="Scrape failed" err="Get https://kubernetes.default.svc:443/api/v1/nodes/shashirbac-worker-03/proxy/metrics: context deadline exceeded"{"log":"level=debug ts=2019-06-22T08:47:04.449Z caller=klog.go:53 component=k8s_client_runtime func=Verbose.Infof msg=\"github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:335: Watch close - *v1.Node total 622 items received\"\n","stream":"stderr","time":"2019-06-22T08:47:04.449674081Z"}
...
{"log":"level=debug ts=2019-06-22T08:55:09.451Z caller=klog.go:53 component=k8s_client_runtime func=Verbose.Infof msg=\"github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:335: Watch close - *v1.Node total 604 items received\"\n","stream":"stderr","time":"2019-06-22T08:55:09.45126979Z"}
...
{"log":"level=debug ts=2019-06-22T09:00:40.452Z caller=klog.go:53 component=k8s_client_runtime func=Verbose.Infof msg=\"github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:335: Watch close - *v1.Node total 412 items received\"\n","stream":"stderr","time":"2019-06-22T09:00:40.452885212Z"}
...
Yes it looks like your targets are constantly being updated which means that Prometheus recreates the targets on and on.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/fbde1b20-cc19-4d64-8860-3bb6bf0b713c%40googlegroups.com.
For the metric rate(prometheus_sd_received_updates_total[5m]), we observe that its value is about 2 or 3. It means that each 2 or 3 second, one service discovery update will be sent to scrapeManager.
Our question is that why so frequent SD event is reported.
For the metric rate(prometheus_sd_received_updates_total[5m]), we observe that its value is about 2 or 3. It means that each 2 or 3 second, one service discovery update will be sent to scrapeManager.
Our question is that why so frequent SD event is reported.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/db79acc5-2a6e-4707-abf2-3e78349a40b1%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/db79acc5-2a6e-4707-abf2-3e78349a40b1%40googlegroups.com.