Exporting only certain logs to Prometheus #271
Answered
by
stempler
andrii-bodnar
asked this question in
Q&A
-
Hey everyone, Is there any way to export logs corresponding to some list of limited request URIs instead of exporting metrics for all nginx logs? In my case, I need metrics only for a few amount of requests and do not need all the requests data in my Prometheus instance. |
Beta Was this translation helpful? Give feedback.
Answered by
stempler
Aug 1, 2022
Replies: 1 comment 1 reply
-
You can adapt the scrape configuration in Prometheus to only keep time series with certain labels / label values. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
andrii-bodnar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can adapt the scrape configuration in Prometheus to only keep time series with certain labels / label values.
See metric_relabel_configs in the Prometheus docs. Here is an article with some examples.