Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions monitoring/prometheus-rules/virtualization-controller.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- name: kubernetes.virtualization.controller_state
rules:
- alert: D8VirtualizationControllerTargetDown
expr: max by (job) (up{job="scrapeconfig/d8-monitoring/virtualization-controller"}) == 0
expr: max by (job) (up{job="scrapeconfig/d8-virtualization/virtualization-controller"}) == 0
for: 1m
labels:
severity_level: "6"
Expand All @@ -19,7 +19,7 @@
2. Or check the Pod logs: `kubectl -n d8-virtualization logs deploy/virtualization-controller`

- alert: D8VirtualizationControllerTargetAbsent
expr: absent(up{job="scrapeconfig/d8-monitoring/virtualization-controller"}) == 1
expr: absent(up{job="scrapeconfig/d8-virtualization/virtualization-controller"}) == 1
labels:
severity_level: "6"
tier: cluster
Expand Down
15 changes: 1 addition & 14 deletions templates/cdi/service-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ .Chart.Name }}-cdi
namespace: d8-monitoring
namespace: d8-{{ .Chart.Name }}
{{- include "helm_lib_module_labels" (list $ (dict "prometheus" "main")) | nindent 2 }}
spec:
endpoints:
Expand All @@ -13,19 +13,6 @@ spec:
name: prometheus-token
path: /metrics
port: metrics
# relabelings:
# - action: labeldrop
# regex: endpoint|namespace|pod|container
# - action: replace
# replacement: linstor-controller
# targetLabel: job
# - action: replace
# replacement: cluster
# targetLabel: tier
# - action: keep
# regex: "true"
# sourceLabels:
# - __meta_kubernetes_endpoint_ready
scheme: https
tlsConfig:
insecureSkipVerify: true
Expand Down
2 changes: 1 addition & 1 deletion templates/dvcr/service-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: dvcr
namespace: d8-monitoring
namespace: d8-{{ .Chart.Name }}
{{- include "helm_lib_module_labels" (list . (dict "app" "dvcr" "prometheus" "main")) | nindent 2 }}
spec:
endpoints:
Expand Down
2 changes: 1 addition & 1 deletion templates/kubevirt/service-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ .Chart.Name }}-virt-handler
namespace: d8-monitoring
namespace: d8-{{ .Chart.Name }}
{{- include "helm_lib_module_labels" (list $ (dict "prometheus" "main")) | nindent 2 }}
spec:
endpoints:
Expand Down
2 changes: 1 addition & 1 deletion templates/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Namespace
metadata:
{{- include "helm_lib_module_labels" (list . (dict "prometheus.deckhouse.io/rules-watcher-enabled" "true")) | nindent 2 }}
{{- include "helm_lib_module_labels" (list . (dict "prometheus.deckhouse.io/rules-watcher-enabled" "true" "prometheus.deckhouse.io/monitor-watcher-enabled" "true" "prometheus.deckhouse.io/scrape-configs-watcher-enabled" "true")) | nindent 2 }}
name: d8-{{ .Chart.Name }}
---
{{- include "helm_lib_kube_rbac_proxy_ca_certificate" (list . (printf "d8-%s" .Chart.Name)) }}
2 changes: 1 addition & 1 deletion templates/virtualization-controller/scrape-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: monitoring.coreos.com/v1alpha1
kind: ScrapeConfig
metadata:
name: virtualization-controller
namespace: d8-monitoring
namespace: d8-{{ .Chart.Name }}
{{- include "helm_lib_module_labels" (list . (dict "app" "virtualization-controller" "prometheus" "main")) | nindent 2 }}
spec:
honorLabels: true
Expand Down
Loading