Scrap all /metrics endpoints pods from DaemonSet, like Prometheus (Pod&ServiceMonitor) #19295
Unanswered
Momotoculteur
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Guys
I have this configuration defined in my image :
Multiple nodes which run in each :
cAdvisor is like kube-state-metrics, expose a lot of metrics on 8080/metrics. I can scrap directly KSM via prometheus_scrape Vector Datasource which work nicely, but this is a replicatSet.
But cAdvisor run in daemonset to have node base metrics, not like KSM. I thought that i could make the same with cAdvisor, to call directly the pod and do not pass to the service :
But this seems to pass thought the service, because i have a lot of metrics, but not 100 % from all my nodes :wat:
I'm a bit lost because i'm not expert in Kube & Vector, my apologies for this idiot question.
Do i have to use a Prometheus agent, and scrap my pods with Pod&Service monitor, and then be scrapped from Vector with prometheus exporter source ? Or is this possible from Vector to scrap this kind of stuff directly without to use Prometheus ?
Thanks a lots guys
Ps: This is what i try to achieve
![image](https://private-user-images.githubusercontent.com/7581959/287728089-d8233d8a-688c-497b-8b3f-3697d6c70c3b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxODk4MDksIm5iZiI6MTcxOTE4OTUwOSwicGF0aCI6Ii83NTgxOTU5LzI4NzcyODA4OS1kODIzM2Q4YS02ODhjLTQ5N2ItOGIzZi0zNjk3ZDZjNzBjM2IucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjRUMDAzODI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTI0Y2U2NmViY2ViN2Y2YmVmNjcyNWU5ZTc2OWJjODc0ZTVkNzVkODIzM2EzM2NlNjVhMjEwZjVlYTA2OGFhNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ig6AVZWYwZqull-jzxATHCzDuD69A1NAv0iGO7u7kUo)
Beta Was this translation helpful? Give feedback.
All reactions