When we add the external_prometheus_hosts, the additional scrape config picks up the change and adds the new host as an additional scrape source. However, it appears that the formatting of the secret is incorrect, and the external Prometheus host is not showing up in the targets on the Pelorus Prometheus instance.
Steps to reproduce
Create a Pelorus deployment that adds an external prometheus host
Observe the additional scrape config secret has been updated
Check the targets on the prometheus-pelorus instance (via curl -s 'http://prometheus-pelorus.pelorus-operator.svc.cluster.local:9090/api/v1/targets' | jq)
Current behavior
Currently, the additional scrape config is not being picked up properly and is not being added to the prometheus pelorus instance.
Expected behavior
When we add an external Prometheus host, we should see the additional scrape config being shown in the targets on the pelorus Prometheus instance.
OpenShift version
Not related to OpenShift
Problem description
I have a pelorus CRD that we are deploying where we are trying to add an external Prometheus host (show below)
When we add the
external_prometheus_hosts
, the additional scrape config picks up the change and adds the new host as an additional scrape source. However, it appears that the formatting of the secret is incorrect, and the external Prometheus host is not showing up in the targets on the Pelorus Prometheus instance.Steps to reproduce
curl -s 'http://prometheus-pelorus.pelorus-operator.svc.cluster.local:9090/api/v1/targets' | jq
)Current behavior
Currently, the additional scrape config is not being picked up properly and is not being added to the prometheus pelorus instance.
Expected behavior
When we add an external Prometheus host, we should see the additional scrape config being shown in the targets on the pelorus Prometheus instance.
Code of Conduct