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

some metrics and their origin #261

Closed
cemo opened this issue Apr 4, 2017 · 9 comments
Closed

some metrics and their origin #261

cemo opened this issue Apr 4, 2017 · 9 comments

Comments

@cemo
Copy link

cemo commented Apr 4, 2017

I did not want to open an issue for this but could not find really a better way. I am using dashboards of this repo without using prometheus operator and could not find what is filling container_network_receive_bytes_total and container_cpu_usage_seconds_total metrics. These seems as part of kube-proxy but could not find necessary scrapping configurations.

@dannyk81
Copy link

dannyk81 commented Apr 5, 2017

I believe they come from cAdvisor which is embedded into kubelet.

@cemo
Copy link
Author

cemo commented Apr 5, 2017

which configuration of prometheus is scraping kubelet's?

@brancz
Copy link
Contributor

brancz commented Apr 5, 2017

The kubelets are a tricky one, a few Prometheus Operator features play together for those to get scraped:

  • The kubelets are discovered via this ServiceMonitor, from which the Prometheus Operator generates a Prometheus configuration.
  • The Prometheus Operator synchronizes the internal IPs of the kubelets into an Endpoints object, from which they are discovered from. The object that it is synchronized into is specified via the --kubelet-object flag.

@brancz
Copy link
Contributor

brancz commented Apr 6, 2017

Closing here for now. Feel free to comment here if you have further questions.

@brancz brancz closed this as completed Apr 6, 2017
@dkoshkin
Copy link

dkoshkin commented May 17, 2017

Just found this and running into the same issue, does this metric only work when using the operator, Im trying to get these charts to work using helm charts but not able to :(.

I can see it in prometheus, but its not working in the Grafana chart.

@brancz
Copy link
Contributor

brancz commented May 17, 2017

It does not only work with the Prometheus Operator, but it makes is especially easy to scrape them, and with out of the box configuration from kube-prometheus that will work pretty much one-click.

As there is currently just a Prometheus Operator chart I'm unsure I understand which charts you are referring to @dkoshkin .

@dkoshkin
Copy link

My bad @brancz I should have specified I was playing around with https://github.com/kubernetes/charts/tree/master/stable/grafana

@cemo
Copy link
Author

cemo commented May 17, 2017

I explained in other message but might be better to stay at here too. Default scrape interval is 1m and dashboard is using 1m for rate function. So there is not enough data for rate function. Change dashboard interval to 2m or decrease scrape interval to 30s.

@dkoshkin
Copy link

Thanks @cemo that worked!

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

4 participants