FEAT: replace bitnami prometheus/grafana chart with prometheus-community

This commit is contained in:
Sebastian Mark 2021-12-03 15:28:17 +01:00
parent 7e2bbf8111
commit 92296bf1ae
3 changed files with 17 additions and 38 deletions

View file

@ -4,6 +4,5 @@ Install:
* [NGINX Ingress Controller](https://kubernetes.github.io/ingress-nginx/) * [NGINX Ingress Controller](https://kubernetes.github.io/ingress-nginx/)
* [cert-manager](https://cert-manager.io/) * [cert-manager](https://cert-manager.io/)
* [metrics-server](https://github.com/bitnami/charts/tree/master/bitnami/metrics-server) * [metrics-server](https://github.com/bitnami/charts/tree/master/bitnami/metrics-server)
* [prometheus](https://github.com/bitnami/charts/tree/master/bitnami/kube-prometheus) and * [prometheus and grafana](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack)
[grafana](https://github.com/bitnami/charts/tree/master/bitnami/grafana) for ingress stats
* [keel](https://keel.sh) * [keel](https://keel.sh)

View file

@ -1,26 +1,13 @@
---
apiVersion: v1
kind: Secret
metadata:
name: grafana-datasource
namespace: metrics
stringData:
grafana-datasource.yaml: |
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: server
url: http://prometheus-kube-prometheus-prometheus:9090
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: grafana-dashboard name: grafana-nginx-dashbaord
namespace: metrics namespace: metrics
labels:
grafana_dashboard: "1"
data: data:
grafana-dashboard.json: | nginx.json: |
{ {
"__inputs": [ "__inputs": [
{ {

View file

@ -1,5 +1,6 @@
--- ---
helm_repos: helm_repos:
- { repo: prometheus-community, url: https://prometheus-community.github.io/helm-charts }
- { repo: bitnami, url: https://charts.bitnami.com/bitnami } - { repo: bitnami, url: https://charts.bitnami.com/bitnami }
- { repo: ingress-nginx, url: https://kubernetes.github.io/ingress-nginx } - { repo: ingress-nginx, url: https://kubernetes.github.io/ingress-nginx }
- { repo: jetstack, url: https://charts.jetstack.io } - { repo: jetstack, url: https://charts.jetstack.io }
@ -17,27 +18,19 @@ helm_charts:
kubelet-insecure-tls: true kubelet-insecure-tls: true
kubelet-preferred-address-types: InternalIP kubelet-preferred-address-types: InternalIP
- chart: bitnami/kube-prometheus - chart: prometheus-community/kube-prometheus-stack
name: prometheus name: monitoring
namespace: metrics namespace: metrics
vals: vals:
prometheus: prometheus:
persistence: prometheusSpec:
enabled: true storageSpec:
volumeClaimTemplate:
- chart: bitnami/grafana spec:
name: grafana accessModes: ["ReadWriteOnce"]
namespace: metrics resources:
vals: requests:
persistence: storage: 10Gi
enabled: false
dashboardsProvider:
enabled: true
datasources:
secretName: grafana-datasource
dashboardsConfigMaps:
- configMapName: grafana-dashboard
fileName: grafana-dashboard.json
- chart: ingress-nginx/ingress-nginx - chart: ingress-nginx/ingress-nginx
name: ingress-nginx name: ingress-nginx
@ -52,7 +45,7 @@ helm_charts:
serviceMonitor: serviceMonitor:
enabled: true enabled: true
additionalLabels: additionalLabels:
app.kubernetes.io/instance: prometheus release: monitoring # same as prometheus-community chart name
- chart: jetstack/cert-manager - chart: jetstack/cert-manager
name: cert-manager name: cert-manager