Closed upodroid closed 1 year ago
I think it's a good idea supporting /api/v1/status/config
and /api/v1/status/flags
. Willing to give it a try? We can offer some guidance.
I'll raise a PR for it early next week. Can you leave some pointers here?
Thanks
@upodroid Sorry I missed your message. Are you still up for it? If so, I can start typing some suggestions.
I haven't started it yet.
@hi-rustin You can work on this.
Thanks
@hi-rustin You can work on this.
Thanks! I'll try to add it.
Completed via #3596
Completed via #3596
Oops! Probably not yet. Do we still need to add api/v1/status/flags
?
I'm still getting error "Prometheus is unreachable", according to access logs issue is next:
127.0.0.6 - - [03/Jul/2023:00:53:11 +0000] 404 "GET /prometheus HTTP/1.1" 19 "-" "Go-http-client/1.1" "-"
127.0.0.6 - - [03/Jul/2023:00:53:11 +0000] 404 "GET /prometheus HTTP/1.1" 19 "-" "Go-http-client/1.1" "-"
Seems like it's fail because endpoint http://localhost:42983/prometheus
returns 404
.
I able to add workaround by setting this in Kiali config:
external_services:
prometheus:
url: "http://mimir-nginx.mimir.svc.cluster.local:80/prometheus"
health_check_url: "http://mimir-nginx.mimir.svc.cluster.local:80/"
Describe the bug
Mimir doesn't implement the full Prometheus API. Kiali uses some of these endpoints to check if Prometheus is running.
https://github.com/kiali/kiali/blob/master/prometheus/client.go (Look for
GetConfiguration
andGetFlags
methods)A quick and dirty solution is to add additional paths to the nginx proxy to unblock this. https://github.com/grafana/mimir/blob/main/operations/helm/charts/mimir-distributed/values.yaml#L2049
https://grafana.com/docs/mimir/latest/operators-guide/reference-http-api/ https://prometheus.io/docs/prometheus/latest/querying/api/#config
To Reproduce
Steps to reproduce the behavior:
Environment