Customizing the deployments

Editing the values file of kube-prometheus-stack

The Values file provided on the repositoryarrow-up-right, is around 3800 lines, so this section aims to sum up the parts needed to change on the values file before launching the deployment.

Disabling alertmanager

Around line 144:

alertmanager: false

Grafana configuration

Enable Grafana, and make the storage persistent, by changing from this (Around line 754):

grafana:
  enabled: true
  namespaceOverride: ""

To this

grafana:
  enabled: true
  persistence:
    enabled: true
    type: pvc
    storageClassName: standard
    accessModes:
    - ReadWriteOnce
    size: 4Gi
    finalizers:
    - kubernetes.io/pvc-protection
  namespaceOverride: ""

Customize admin password, (around line 775-780):

Change grafana.ingress.enabled to true (around line 782):

Change grafana.ingress.hosts to your target URL, for example monitoring-vectice.my-company.com (around line 810):

Change grafana.ingress.tls to the tls secret previously created, and add the host, for example monitoring-vectice.my-company.com (around line 810):

Add json-exporter scrape job (around line 3000):