How do I add Kubernetes metadata to Prometheus metrics scraped by Vector agent ? #22419
Unanswered
yeshwanth1312
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hello @yeshwanth1312, You probably want to do:
Let me know if I understood your use case correctly. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I am using Vector to scrape Prometheus metrics from my Kubernetes pods. Each pod exposes its metrics via an HTTP endpoint at
/metrics
. While Vector can enrich logs with Kubernetes metadata using thekubernetes_logs
source, I couldn’t find a similar built-in functionality for attaching Kubernetes metadata (such aspod_name
,namespace
,node."labels"
, etc.) to Prometheus metrics.Since this feature does not exist out of the box, I am looking for possible ways to achieve this. Specifically:
Any insights or recommendations would be greatly appreciated!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions