Skip to content
Prometheus helm chart for On-Prem / K3S or wherever cloud storage is not available.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates Created base for prometheus helm chart with local storage as storagec… Sep 6, 2019
.gitignore Created base for prometheus helm chart with local storage as storagec… Sep 6, 2019
.helmignore
Chart.yaml Created base for prometheus helm chart with local storage as storagec… Sep 6, 2019
README.md Clarified the readme a bit. Sep 6, 2019
requirements.lock Added grafana and instructions on how to access grafana. Sep 6, 2019
requirements.yaml Added grafana and instructions on how to access grafana. Sep 6, 2019
values.yaml Added grafana and instructions on how to access grafana. Sep 6, 2019

README.md

Prometheus / Grafana helm chart with local storage.

This is a Helm chart for Prometheus and Grafana that uses local storage instead of volume from a cloud vendor. The helm chart creates a StorageClass that uses local storage and also creates the PersistentVolumes and PersistentVolumeClaims needed.

I created this because i use K3S for some of my Kubernetes setups and I run them on non cloud vendors, so this is perfect for that, On-prem or vendors that dont have cloud volumes.

Instructions

Step 1 - Preperations.

  1. SSH into the server you plan to deploy Prometheus & Grafana too.

  2. Create the directories needed, paths for this can be changed to whatever you supply in values.yaml.

    $ mkdir -p /myvolumes/prometheus/alertmanager
    $ mkdir -p /myvolumes/prometheus/pushgateway
    $ mkdir -p /myvolumes/prometheus/server

Step 2 - Deploy the helm chart.

  1. Clone this repo to your computer (not the server).

  2. Deploy the helm chart.

    $ helm install --name pixelpiloten_prometheus . -f values.yaml
  3. Create a port-forward to the Grafana Service, port 8080 can be whatever port you want.

    $ kubectl -n monitoring port-forward svc/grafana 8080:80
  4. Now you can access the Grafana web GUI in your browser.

    http://127.0.0.1:8080
You can’t perform that action at this time.