install Prometheus to the BadHouseplants cluster

This commit is contained in:
Nikolai Rodionov 2023-07-22 14:25:37 +02:00
parent c53cd3be08
commit 6aa71a0fa1
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10
3 changed files with 56 additions and 2 deletions

View File

@ -43,7 +43,7 @@ releases:
createNamespace: false createNamespace: false
- <<: *prometheus - <<: *prometheus
installed: false installed: true
namespace: monitoring-system namespace: monitoring-system
createNamespace: true createNamespace: true

View File

@ -1,6 +1,6 @@
--- ---
ns: ns:
- name: monitoring - name: monitoring-system
templates: templates:
- | - |
{{ range .Values.ns }} {{ range .Values.ns }}

View File

@ -12,8 +12,58 @@ istio:
hostname: "grafana.badhouseplants.net" hostname: "grafana.badhouseplants.net"
service: prometheus-grafana service: prometheus-grafana
port: 80 port: 80
coreDns:
enabled: false
kubeEtcd:
enabled: false
kubelet:
enabled: false
kubeApiServer:
enabled: false
prometheus-node-exporter:
prometheus:
monitor:
enabled: true
jobLabel: jobLabel
interval: 60s
defaultRules:
create: true
rules:
alertmanager: true
etcd: false
configReloaders: false
general: true
k8s: true
kubeApiserverAvailability: false
kubeApiserverBurnrate: false
kubeApiserverHistogram: false
kubeApiserverSlos: false
kubeControllerManager: false
kubelet: false
kubeProxy: false
kubePrometheusGeneral: false
kubePrometheusNodeRecording: false
kubernetesApps: true
kubernetesResources: true
kubernetesStorage: true
kubernetesSystem: true
kubeSchedulerAlerting: false
kubeSchedulerRecording: true
kubeStateMetrics: true
network: false
node: true
nodeExporterAlerting: true
nodeExporterRecording: true
prometheus: true
prometheusOperator: true
windows: false
prometheus: prometheus:
prometheusSpec: prometheusSpec:
enableAdminAPI: true
retentionSize: 10GB retentionSize: 10GB
podMonitorNamespaceSelector: podMonitorNamespaceSelector:
any: true any: true
@ -34,6 +84,7 @@ prometheus:
resources: resources:
requests: requests:
storage: 10Gi storage: 10Gi
grafana: grafana:
persistence: persistence:
enabled: true enabled: true
@ -56,6 +107,7 @@ grafana:
tls_skip_verify_insecure: false tls_skip_verify_insecure: false
use_pkce: true use_pkce: true
role_attribute_path: contains(groups, 'badhouseplants:owners') && 'Admin' || 'Viewer' role_attribute_path: contains(groups, 'badhouseplants:owners') && 'Admin' || 'Viewer'
dashboardProviders: dashboardProviders:
dashboardproviders.yaml: dashboardproviders.yaml:
apiVersion: 1 apiVersion: 1
@ -68,6 +120,7 @@ grafana:
editable: false editable: false
options: options:
path: /var/lib/grafana/dashboards/default path: /var/lib/grafana/dashboards/default
dashboards: dashboards:
default: default:
gitea-dashboard: gitea-dashboard:
@ -78,6 +131,7 @@ grafana:
gnetId: 14584 gnetId: 14584
revision: 1 revision: 1
datasource: Prometheus datasource: Prometheus
datasources: datasources:
loki.yaml: loki.yaml:
apiVersion: 1 apiVersion: 1