Skip to content

Commit

Permalink
feat(prometheus-operator): change label for monitoring resources
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault committed Jun 12, 2024
1 parent ed66e70 commit 3ec873f
Show file tree
Hide file tree
Showing 53 changed files with 93 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ spec:
serviceMonitor:
enabled: true
# additionalLabels:
# monitoring: portefaix
# prometheus.io/operator: portefaix
12 changes: 6 additions & 6 deletions gitops/fluxcd/kubernetes/base/argo-cd/argo-cd/argo-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
enabled: true
interval: 30s
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
rules:
enabled: false
spec:
Expand All @@ -97,10 +97,10 @@ spec:
The application [{{`{{$labels.name}}`}} has not been synchronized for over 12 hours which means that the state
of this cloud has drifted away from the state inside Git.
selector:
monitoring: portefaix
prometheus.io/operator: portefaix
namespace: monitoring
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix

dex:
enabled: true
Expand All @@ -116,7 +116,7 @@ spec:
enabled: true
interval: 30s
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix

# TODO: ArgoCD: timeout with Redis and RepoServer
# labels: kind/bug, priority/high, lifecycle/frozen, area/kubernetes
Expand Down Expand Up @@ -150,7 +150,7 @@ spec:
enabled: true
interval: 30s
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
ingress:
enabled: false
config:
Expand All @@ -174,4 +174,4 @@ spec:
enabled: true
interval: 30s
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
serviceMonitor:
enabled: true
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix

containerSecurityContext:
allowPrivilegeEscalation: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ spec:
servicemonitor:
enabled: true
labels:
monitoring: portefaix
prometheus.io/operator: portefaix
2 changes: 1 addition & 1 deletion gitops/fluxcd/kubernetes/base/dns/blocky/blocky.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
serviceMonitor:
interval: 30s
labels:
monitoring: portefaix
prometheus.io/operator: portefaix
prometheusRule:
enabled: true
rules:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ spec:
serviceMonitor:
enabled: true
selector:
monitoring: portefaix
prometheus.io/operator: portefaix
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ spec:
serviceMonitor:
enabled: true
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
labels:
monitoring: portefaix
prometheus.io/operator: portefaix
name: helm-controller
namespace: flux-system
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
labels:
monitoring: portefaix
prometheus.io/operator: portefaix
name: kustomize-controller
namespace: flux-system
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
labels:
monitoring: portefaix
prometheus.io/operator: portefaix
name: notification-controller
namespace: flux-system
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
labels:
monitoring: portefaix
prometheus.io/operator: portefaix
name: source-controller
namespace: flux-system
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ spec:
serviceMonitor:
enabled: true
labels:
monitoring: portefaix
prometheus.io/operator: portefaix
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ spec:
serviceMonitor:
enabled: true
# additionalLabels:
# monitoring: portefaix
# prometheus.io/operator: portefaix
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ spec:
serviceMonitor:
enabled: true
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
prometheusRule:
enabled: true
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
rules:
- alert: NGINXConfigFailed
expr: count(nginx_ingress_controller_config_last_reload_successful == 0) > 0
Expand Down
4 changes: 2 additions & 2 deletions gitops/fluxcd/kubernetes/base/keda/keda/keda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ spec:
podMonitor:
enabled: true
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
operator:
enabled: true
podMonitor:
enabled: true
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
# serviceMonitor:
# enabled: true
# additionalLabels:
# monitoring: portefaix
# prometheus.io/operator: portefaix

serviceAccount:
name: aws-load-balancer-controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ spec:
# podMonitor:
# enabled: true
# labels:
# monitoring: portefaix
# prometheus.io/operator: portefaix
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ spec:
enabled: true
namespace: monitoring
selector:
monitoring: portefaix
prometheus.io/operator: portefaix
prometheusRule:
enabled: true
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
namespace: monitoring
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ spec:
serviceMonitor:
enabled: true
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
interval: 1m
scrapeTimeout: 30s
2 changes: 1 addition & 1 deletion gitops/fluxcd/kubernetes/base/kyverno/kyverno/kyverno.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ spec:
serviceMonitor:
enabled: true
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
namespace: kyverno
serviceMonitor:
labels:
monitoring: portefaix
prometheus.io/operator: portefaix
grafana:
dashboards:
label: grafana-dashboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-viz-metrics-api
namespace: linkerd-viz
spec:
Expand Down
6 changes: 3 additions & 3 deletions gitops/fluxcd/kubernetes/base/linkerd/linkerd/podMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-controller
namespace: linkerd
spec:
Expand Down Expand Up @@ -58,7 +58,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-service-mirror
namespace: linkerd
spec:
Expand Down Expand Up @@ -89,7 +89,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-proxy
namespace: linkerd
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-web
namespace: linkerd
spec:
Expand All @@ -47,7 +47,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-sp-validator
namespace: linkerd
spec:
Expand All @@ -68,7 +68,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-controller-api
namespace: linkerd
spec:
Expand All @@ -89,7 +89,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-identity
namespace: linkerd
spec:
Expand All @@ -110,7 +110,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-proxy-injector
namespace: linkerd
spec:
Expand All @@ -131,7 +131,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-tap
namespace: linkerd
spec:
Expand All @@ -152,7 +152,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-dst
namespace: linkerd
spec:
Expand All @@ -173,7 +173,7 @@ metadata:
app.kubernetes.io/managed-by: Kustomize
# renovate: registryUrl=https://helm.linkerd.io/stable
app.kubernetes.io/version: 2.11.0
monitoring: portefaix
prometheus.io/operator: portefaix
name: linkerd-proxies
namespace: linkerd
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ spec:
serviceMonitor:
enabled: true
selector:
monitoring: portefaix
prometheus.io/operator: portefaix
2 changes: 1 addition & 1 deletion gitops/fluxcd/kubernetes/base/logging/loki/loki-mixin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ spec:
additionalLabels:
portefaix.xyz/version: v0.54.0
app: kube-prometheus-stack
monitoring: portefaix
prometheus.io/operator: portefaix
grafana:
folder: /tmp/dashboards/logging
2 changes: 1 addition & 1 deletion gitops/fluxcd/kubernetes/base/logging/loki/loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ spec:
serviceMonitor:
enabled: true
additionalLabels:
monitoring: portefaix
prometheus.io/operator: portefaix
2 changes: 1 addition & 1 deletion gitops/fluxcd/kubernetes/base/logging/vector/vector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
podMonitor:
enabled: true
# additionalLabels:
# monitoring: portefaix
# prometheus.io/operator: portefaix

# https://vector.dev/docs/reference/sinks/
sinks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ spec:
enabled: true
defaults:
labels:
monitoring: portefaix
prometheus.io/operator: portefaix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ metadata:
app.kubernetes.io/part-of: prometheus-blackbox-exporter
app.kubernetes.io/version: "0.19.0"
app.kubernetes.io/managed-by: Helm
monitoring: portefaix
prometheus.io/operator: portefaix
portefaix.xyz/version: v0.54.0
spec:
groups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ spec:
additionalLabels:
portefaix.xyz/version: v0.54.0
app: kube-prometheus-stack
monitoring: portefaix
prometheus.io/operator: portefaix
grafana:
folder: monitoring
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
serviceMonitor:
enabled: true
labels:
monitoring: portefaix
prometheus.io/operator: portefaix

ingress:
enabled: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ spec:
additionalLabels:
portefaix.xyz/version: v0.54.0
app: kube-prometheus-stack
monitoring: portefaix
prometheus.io/operator: portefaix
grafana:
folder: monitoring
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ spec:
additionalLabels:
portefaix.xyz/version: v0.54.0
app: kube-prometheus-stack
monitoring: portefaix
prometheus.io/operator: portefaix
grafana:
folder: kubernetes
Loading

0 comments on commit 3ec873f

Please sign in to comment.