I'm trying to capture a prometheus endpoint but the site needs basic authentication with username and password for the collection to be done at /metrics/prometheus.
I found some information at this link: https://github.com/GoogleCloudPlatform/prometheus-engine/blob/v0.4.3-gke.0/doc/api.md#scrapeendpoint
The information above was still not enough for a successful collection.
Below is the podmonitoring configuration I performed to test:
- port: metrics-demo
I believe there are two errors, one is the bad formatting of yaml and the other error is possibly the parameters passed are not correct, the file that explains how the collection should be mounted does not make it clear how to pass the parameters.
By postman passing the authorization the data is returned correctly.
I appreciate the help.
Best answer by Julio_CostaView original
thanks for your post.
Olá Júlio, tudo bem? 😎
Let me also tag
@yuval in case he can help. Yuval, do you think you could shed some light here?
@Julio_Costa , I can see you have been around but I noticed you haven’t posted an introduction of yourself. It would be really nice to see your introduction in the C2C Lounge using this template, so that we and the members of this community could get to know you a bit better! :)
Good afternoon from Greece! 😎
Hey there 😃
Well, I took a look at documentation and I have found no reference for HTTP Header from v0.4.3-gke.0 and v0.5.0 versions.
i.e. It should be like ?page=1&items=10 (for map).
Ps. I noticed it doesn’t have all the options as shown in Prometheus Operator doc. So I think it has some differences between monitoring.coreos.com/v1 and monitoring.googleapis.com/v1 sources.
@seijimanoan for providing solutions