Skip to content

jeka/prometheus-k3s

Repository files navigation

prometheus operator for k3s

Based on https://github.com/coreos/kube-prometheus

With ideas from https://github.com/carlosedp/cluster-monitoring

Basically provide Prometheus' relevant ServiceMonitors with endpoints for kubernetes controller manager and kubernetes scheduler services.

Requirements:

  1. jsonnet
  2. jsonnet bundler (jb)

Inspect and adapt if needed prometheus.jsonnet

Set your default kubernetes cluster context accordingly pointing to the target k3s cluster.

Installation

  • $ jb update
  • $ ./build
  • $ kubectl apply -f manifests/setup
  • Wait few seconds as previous commands creates all the CRDs needed by prometheus-operator
  • $ kubectl apply -f manifests

You can follow the process with: $ kubectl -n monitoring get pods -w for example

About

Monitoring with prometheus for k3s clusters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published