Help with Prometheus Scrape query #22333
Replies: 2 comments 5 replies
-
Hi @satellite-no, thanks for sharing this.
Hmm, your You can use a filter transform in Vector though:
|
Beta Was this translation helpful? Give feedback.
-
Well thats the fun part, I dont have any visiblity to these boxes other then the metrics endpoint. I assume (but not sure) that they are using the redis exporter that we are just scrapping thinking its v1 and not v2 which might be an issue(?). The part im confused about and this is my inexperiance with prometheus is I dont see an way to query specific metrics in the proper prometheus scrape config. Researching online the only way i can see to do this is with the metric_relabel_configs:
- source_labels: [__name__]
action: keep
regex: '(node_cpu)' |
Beta Was this translation helpful? Give feedback.
-
Im trying to setup a prometheus scrape with a query parameter but having troubles. I have a successful source setup with the below where I pull back many many metrics and then just drop the ones I dont want. However my preference would be to only pull back the metrics that I want (filter fast and filter early).
The below is an example of one of the metrics im trying ot capture but am still pulling ALL metrics. Tried both items in list seperately which is based on the documentation from the scrape source.
Any insight would be helpful even if im just interpriting what the
query
param does.Beta Was this translation helpful? Give feedback.
All reactions