Improve Prometheus and Grafana integration

Bug #1819573 reported by Kevin W Monroe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kubernetes API Load Balancer
Fix Released
Wishlist
Cory Johns

Bug Description

Currently, conjure-up scrapes k8s metrics via prometheus with this:

https://github.com/conjure-up/spells/blob/master/charmed-kubernetes/addons/prometheus/steps/01_install-prometheus/prometheus-scrape-k8s.yaml

This could use improvement:

1 - better auth (token or other service account vs admin creds)
2 - scrape via the kubeapi-lb instead of hitting endpoints directly
3 - create prometheus scrape job for k8s automatically via a relation
4 - create grafana dashboard for k8s automatically via a relation

#2 is the reason this bug is filed here. If we find everything we need via the kubeapi-lb proxy, we do not need to expose k8s-[master|worker] units.

Revision history for this message
Kevin W Monroe (kwmonroe) wrote :
Changed in charm-kubeapi-load-balancer:
assignee: nobody → Kevin W Monroe (kwmonroe)
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Cory Johns (johnsca) wrote :

This will be fixed when https://github.com/charmed-kubernetes/charm-kubernetes-master/pull/45 and all of its dependencies are reviewed, merged, and released.

Changed in charm-kubeapi-load-balancer:
status: Triaged → In Progress
assignee: Kevin W Monroe (kwmonroe) → Cory Johns (johnsca)
Revision history for this message
Cory Johns (johnsca) wrote :

In addition to #1 and #2, the linked PR(s) significantly simplifies the installation story by using relations to manage the scraper jobs and dashboards. See updated instructions in https://github.com/charmed-kubernetes/kubernetes-docs/pull/247

Cory Johns (johnsca)
Changed in charm-kubeapi-load-balancer:
milestone: none → 1.16
summary: - better cdk metric scraping via prometheus
+ Improve Prometheus and Grafana integration
description: updated
Changed in charm-kubeapi-load-balancer:
importance: Low → Wishlist
Cory Johns (johnsca)
Changed in charm-kubeapi-load-balancer:
status: In Progress → Fix Committed
Changed in charm-kubeapi-load-balancer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.