On 20/02/2023 19:10, Jihui Yang wrote:
Hi, so I added this section to match all namespaces:
```
kubernetes_sd_configs:
 - role: endpoints kubeconfig_file: ""
   follow_redirects: true
   namespaces:
     names:
         - example1
         - example2
         - example3
```
as well as
```
authorization:
     type: Bearer
     credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token
```
I turned on debug logging, and i'm getting
```
ts=2023-02-20T19:08:30.169Z caller=scrape.go:1292 level=debug component="scrape manager" scrape_pool=drop_response_metrics target=http://10.10.188.252:25672/metrics msg="Scrape failed" err="Get \"http://10.10.188.252:25672/metrics\": EOF" ts=2023-02-20T19:08:30.465Z caller=scrape.go:1292 level=debug component="scrape manager" scrape_pool=drop_response_metrics target=http://10.10.152.96:10043/metrics msg="Scrape failed" err="server returned HTTP status 500 Internal Server Error" ts=2023-02-20T19:08:30.510Z caller=scrape.go:1292 level=debug component="scrape manager" scrape_pool=drop_response_metrics target=http://10.10.241.97:9100/metrics msg="Scrape failed" err="server returned HTTP status 400 Bad Request"
```

The metrics are still not dropped

I'm not really following exactly what your config is.

Those errors suggest that at least some of the scrapes are failing.

When you say "the metrics are still not dropped" are these metrics that are being scraped in this job?

--
Stuart Clark

--
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/4bd680fe-400e-de75-d137-7c96e25a08e0%40Jahingo.com.

Reply via email to