mirror of
https://github.com/nikdoof/helm-charts.git
synced 2025-12-17 20:09:21 +00:00
[aaisp-exporter] Update to common 4.5.3
This commit is contained in:
@@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
appVersion: 0.2.1
|
appVersion: 0.2.1
|
||||||
description: A prometheus exporter for the Andrew & Arnold CHAOS API
|
description: A prometheus exporter for the Andrew & Arnold CHAOS API
|
||||||
name: aaisp-exporter
|
name: aaisp-exporter
|
||||||
version: 0.2.2
|
version: 0.2.3
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
keywords:
|
keywords:
|
||||||
- aaisp-exporter
|
- aaisp-exporter
|
||||||
@@ -15,4 +15,4 @@ maintainers:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://nikdoof.github.io/helm-charts/
|
repository: https://nikdoof.github.io/helm-charts/
|
||||||
version: 4.5.2
|
version: 4.5.3
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
{{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled }}
|
|
||||||
{{- include "common.values.setup" . -}}
|
|
||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
kind: PrometheusRule
|
|
||||||
metadata:
|
|
||||||
name: {{ include "common.names.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "common.labels" . | nindent 4 }}
|
|
||||||
{{- with .Values.metrics.prometheusRule.labels }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
|
||||||
groups:
|
|
||||||
- name: {{ include "common.names.fullname" . }}
|
|
||||||
rules:
|
|
||||||
- alert: AAISPExporterAbsent
|
|
||||||
annotations:
|
|
||||||
description: AAISP Exporter has disappeared from Prometheus service discovery.
|
|
||||||
summary: AAISP Exporter is down.
|
|
||||||
expr: |
|
|
||||||
absent(up{job=~".*{{ include "common.names.fullname" . }}.*"} == 1)
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: critical
|
|
||||||
{{- with .Values.metrics.prometheusRule.rules }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
{{- if .Values.metrics.enabled }}
|
|
||||||
{{- include "common.values.setup" . -}}
|
|
||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
kind: ServiceMonitor
|
|
||||||
metadata:
|
|
||||||
name: {{ include "common.names.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "common.labels" . | nindent 4 }}
|
|
||||||
{{- with .Values.metrics.serviceMonitor.labels }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
{{- include "common.labels.selectorLabels" . | nindent 6 }}
|
|
||||||
endpoints:
|
|
||||||
- port: metrics
|
|
||||||
{{- with .Values.metrics.serviceMonitor.interval }}
|
|
||||||
interval: {{ . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.metrics.serviceMonitor.scrapeTimeout }}
|
|
||||||
scrapeTimeout: {{ . }}
|
|
||||||
{{- end }}
|
|
||||||
path: /metrics
|
|
||||||
{{- end }}
|
|
||||||
@@ -48,15 +48,15 @@ metrics:
|
|||||||
prometheusRule:
|
prometheusRule:
|
||||||
enabled: false
|
enabled: false
|
||||||
labels: {}
|
labels: {}
|
||||||
# -- Configure additionial rules for the chart under this key.
|
# -- Configure additional rules for the chart under this key.
|
||||||
# @default -- See prometheusrules.yaml
|
# @default -- See prometheusrules.yaml
|
||||||
rules: []
|
rules:
|
||||||
# - alert: aaispExporterAbsent
|
- alert: AAISPExporterAbsent
|
||||||
# annotations:
|
annotations:
|
||||||
# description: aaisp Exporter has disappeared from Prometheus service discovery.
|
description: AAISP Exporter has disappeared from Prometheus service discovery.
|
||||||
# summary: aaisp Exporter is down.
|
summary: AAISP Exporter is down.
|
||||||
# expr: |
|
expr: |
|
||||||
# absent(up{job=~".*aaispexporter.*"} == 1)
|
absent(up{job=~".*{{ include "common.names.fullname" . }}.*"} == 1)
|
||||||
# for: 5m
|
for: 5m
|
||||||
# labels:
|
labels:
|
||||||
# severity: critical
|
severity: critical
|
||||||
|
|||||||
Reference in New Issue
Block a user