Closed BartoszZawadzki closed 2 years ago
+1 also seeing this issue where query params are not properly passed or utilized in configs (in my case, I'm trying to pull in the prometheus metrics from Vault https://www.vaultproject.io/docs/configuration/telemetry#prometheus )
nri-prometheus fails to properly respect the prometheus params block in config.yaml, and also does not correctly parse the value when attached to the prometheus.io/path annotation due to url-encoding the path (which may be a prometheus problem)
Hi @BartoszZawadzki sorry for the late response.
To debug this easier, could you please share an example of the metrics returned by:
http 100.96.2.226:21090 /federate
And point out what metrics are missing, that way we could try to reproduce the issue.
Also, we just released a version which fixed some issues with missing counter metrics, it might be worth trying it first.
One last thing, in your config you have
scrape_configs:
- job_name: 'federate'
scrape_interval: 30s
honor_labels: true
metrics_path: '/federate'
params:
'match[]':
- '{job="prometheus"}'
- '{__name__=~"job:.*"}'
That's not something the integration support.
@j0sh3rs we released a new version that fixes the problem with the encodings in the prometheus.io/path
annotation.
I have an app that runs inside single container (and single pod). There's also a Prometheus instance running inside that container that picks-up metrics from various app processes.
I've deployed NewRelic with nri-prometheus and generally I get all the infrastructure metrcis, events, logs and so on, however I do not get any custom metrics from my prometheus instance.
Logs:
nri-prometheus-75b664b985-vfptw nri-prometheus time="2020-04-29T11:53:24Z" level=debug msg="fetching URL: {http 100.96.2.226:21090 /federate false }" component=Fetcher target=pzu-fwserver-sts-0
Pod annotations:
prometheus.io/path: /federate prometheus.io/port: "21090" prometheus.io/scrape: "true"
Config:
Deployment: