Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gather pod/container/project based metrics #110

Open
mwringe opened this issue Jan 25, 2017 · 4 comments
Open

Gather pod/container/project based metrics #110

mwringe opened this issue Jan 25, 2017 · 4 comments

Comments

@mwringe
Copy link
Contributor

mwringe commented Jan 25, 2017

Since Heapster is being deprecated, we probably want to gather the same metrics that Heapster is currently gathering and store those into Hawkular Metrics.

In essence the agent would be reading the metrics directly from the /metrics endpoint of the node, gathering the metrics for each individual pod/container, fetching the metadata associated for those pod/containers/projects and writing them to the proper tenant in Hawkular Metrics.

@jmazzitelli
Copy link
Contributor

@burmanm @mwringe I'm going to try to see if I can code something up quickly for this. Can you fill me in on the secret sauce I'm going to need to know in order to collect these node metrics? Do I go through the api master? Is there some other endpoint that exposes these metrics? Are these metrics exposed as a prometheus endpoint? anything like that.

@mwringe
Copy link
Contributor Author

mwringe commented Mar 24, 2017

The endpoint where these metrics reside is ${NODE_IP}/metrics

You will probably need to get those metrics and parse out what each metric means and where it should go.

Part of this will likely require getting additional information from the api master (eg things like pod id, labels, etc)

@jmazzitelli
Copy link
Contributor

FYI: the /metrics endpoint is exposing its data as a Prometheus endpoint. So the agent has the ability to read it. I would just need to know what we want to scrape and how we want to store it in h-metrics. @mwringe or @burmanm - can you give me some insight into what kinds of node metrics we want to collect and store?

NOTE ALSO: the only way for me to authenticate was to pass in the OpenShift bearer token (I used the one I am given in the UI Console). It there some more permanent authentication credentials to use? Because these tokens have a short shelf-life so we can't put them in the agent config. We would need something else to authenticate with.

@mwringe
Copy link
Contributor Author

mwringe commented Mar 27, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants