Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

David-VTUK/prometheus-rancher-exporter

This branch is 170 commits ahead of, 4 commits behind ebauman/prometheus-rancher-exporter:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a61958c · Sep 8, 2023
Jul 19, 2023
Jul 19, 2023
Jul 19, 2023
Apr 10, 2023
Sep 8, 2023
Sep 8, 2023
Jul 19, 2023
Oct 26, 2022
Jan 4, 2022
Sep 7, 2022
Apr 30, 2023
Jul 19, 2023
Jul 19, 2023
Jul 19, 2023
Jul 19, 2023

Repository files navigation

workflow status Go Report Card

Unofficial Prometheus Exporter for Rancher

Note : This project is not officially supported by Rancher/Suse.

Quickstart

  1. Enable monitoring in the Rancher Management Cluster, aka local cluster

  2. Apply the manifest from this repo : kubectl apply -f ./manifests/exporter.yaml

  3. You can set timers by environment variable:

    TIMER_TICKER=10 - how ofter read data, in seconds

    TIMER_GET_LATEST_RANCHER_VERSION=1 - how often get latest rancher version from github, in minutes

Grafana Dashboards

./manifests/grafana-dashboard includes a basic dashboard in JSON format that can be imported into Grafana.
./manifests/grafana-dashboard-projects.json includes a Rancher project-focused dashboard in JSON format that can be imported into Grafana.
./manifests/grafana-dashboard-all-cr.json includes a dynamic dashboard showing counts for all Rancher custom resources (*.cattle.io).
./manifests/grafana-dashboard-nodes.json includes a dynamic dashboard showing global node metadata across all managed clusters (ie Kernel/OS versions, roles, etc)
./manifests/grafana-dashboard-backups-json includes a dynamic dashboard showing details about Rancher backup operator jobs.

Example Screenshots

img.png img.png img.png image img.png

Developing

By default, the exporter will use in-cluster authentication via a associated service account

External cluster config

To test using external authentication via the local kubeconfig, set the following environment variable:

export RANCHER_EXPORTER_EXTERNAL_AUTH=TRUE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.6%
  • Dockerfile 0.4%