diff --git a/charts/pga/Chart.yaml b/charts/pga/Chart.yaml index 9e9db2f..3e4ee31 100644 --- a/charts/pga/Chart.yaml +++ b/charts/pga/Chart.yaml @@ -55,3 +55,11 @@ dependencies: - thanos alias: thanos condition: thanos.enabled + + - name: kubernetes-event-exporter + version: 3.2.10 + repository: https://charts.bitnami.com/bitnami + alias: k8s-events + tags: + - monitoring + condition: k8s-events.enabled \ No newline at end of file diff --git a/charts/pga/values.yaml b/charts/pga/values.yaml index 6a3882c..e0f91d2 100644 --- a/charts/pga/values.yaml +++ b/charts/pga/values.yaml @@ -117,6 +117,7 @@ app: service: name: app-prometheus + kube: enabled: true fullnameOverride: kube @@ -265,7 +266,6 @@ kube: prometheus: kube service: name: kube-prometheus - pushgateway: enabled: false serviceMonitor: @@ -313,5 +313,47 @@ blackbox: adapter: enabled: false +k8s-events: + enabled: true + serviceAccount: + create: false + metrics: + enabled: true + serviceMonitor: + enabled: true + labels: + prometheus: kube + release: monitoring + config: + logLevel: debug + logFormat: json + receivers: + - name: "loki" + loki: + url: http://logging-loki-gateway.logging.svc.cluster.local/loki/api/v1/push + layout: + message: "{{ .msg }}" + reason: "{{ .Reason }}" + type: "{{ .Type }}" + count: "{{ .Count }}" + kind: "{{ .InvolvedObject.Kind }}" + name: "{{ .InvolvedObject.Name }}" + namespace: "{{ .Namespace }}" + component: "{{ .Source.Component }}" + host: "{{ .Source.Host }}" + route: + routes: + - match: + - receiver: "loki" + + rbac: + rules: + - apiGroups: [metrics.k8s.io] + resources: [pods, nodes] + verbs: [get, list, watch] + - apiGroups: ["*"] + resources: ["*"] + verbs: ["get", "watch", "list"] + thanos: - enabled: false + enabled: false \ No newline at end of file