chore: update Prometheus

This commit is contained in:
Rob Watson 2023-07-16 08:22:33 +02:00
parent 3173635b77
commit 9240de120e
24 changed files with 160 additions and 123 deletions

View File

@ -5,11 +5,12 @@ kind: ConfigMap
metadata: metadata:
name: prometheus-alertmanager name: prometheus-alertmanager
labels: labels:
helm.sh/chart: alertmanager-0.22.2 helm.sh/chart: alertmanager-0.33.1
app.kubernetes.io/name: alertmanager app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0" app.kubernetes.io/version: "v0.25.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
namespace: default
data: data:
alertmanager.yml: | alertmanager.yml: |
global: {} global: {}

View File

@ -5,8 +5,10 @@ kind: ServiceAccount
metadata: metadata:
name: prometheus-alertmanager name: prometheus-alertmanager
labels: labels:
helm.sh/chart: alertmanager-0.22.2 helm.sh/chart: alertmanager-0.33.1
app.kubernetes.io/name: alertmanager app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0" app.kubernetes.io/version: "v0.25.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
namespace: default
automountServiceAccountToken: true

View File

@ -5,11 +5,12 @@ kind: Service
metadata: metadata:
name: prometheus-alertmanager name: prometheus-alertmanager
labels: labels:
helm.sh/chart: alertmanager-0.22.2 helm.sh/chart: alertmanager-0.33.1
app.kubernetes.io/name: alertmanager app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0" app.kubernetes.io/version: "v0.25.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
namespace: default
spec: spec:
type: ClusterIP type: ClusterIP
ports: ports:
@ -27,11 +28,12 @@ kind: Service
metadata: metadata:
name: prometheus-alertmanager-headless name: prometheus-alertmanager-headless
labels: labels:
helm.sh/chart: alertmanager-0.22.2 helm.sh/chart: alertmanager-0.33.1
app.kubernetes.io/name: alertmanager app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0" app.kubernetes.io/version: "v0.25.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
namespace: default
spec: spec:
clusterIP: None clusterIP: None
ports: ports:

View File

@ -5,11 +5,12 @@ kind: StatefulSet
metadata: metadata:
name: prometheus-alertmanager name: prometheus-alertmanager
labels: labels:
helm.sh/chart: alertmanager-0.22.2 helm.sh/chart: alertmanager-0.33.1
app.kubernetes.io/name: alertmanager app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0" app.kubernetes.io/version: "v0.25.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
namespace: default
spec: spec:
replicas: 1 replicas: 1
selector: selector:
@ -23,8 +24,9 @@ spec:
app.kubernetes.io/name: alertmanager app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
annotations: annotations:
checksum/config: d22f3c67cff89938da2f783e00040109619b87e969186bf3b190d32dc540202c checksum/config: 25406287f5528bc29842743c5931229856284a49f3871c27ceeac453455b898e
spec: spec:
automountServiceAccountToken: true
serviceAccountName: prometheus-alertmanager serviceAccountName: prometheus-alertmanager
securityContext: securityContext:
fsGroup: 65534 fsGroup: 65534
@ -37,7 +39,7 @@ spec:
runAsGroup: 65534 runAsGroup: 65534
runAsNonRoot: true runAsNonRoot: true
runAsUser: 65534 runAsUser: 65534
image: "quay.io/prometheus/alertmanager:v0.24.0" image: "quay.io/prometheus/alertmanager:v0.25.0"
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
env: env:
- name: POD_IP - name: POD_IP

View File

@ -1,21 +0,0 @@
---
# Source: prometheus/charts/alertmanager/templates/tests/test-connection.yaml
apiVersion: v1
kind: Pod
metadata:
name: "prometheus-alertmanager-test-connection"
labels:
helm.sh/chart: alertmanager-0.22.2
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0"
app.kubernetes.io/managed-by: Helm
annotations:
"helm.sh/hook": test-success
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['prometheus-alertmanager:9093']
restartPolicy: Never

View File

@ -4,13 +4,13 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
labels: labels:
helm.sh/chart: kube-state-metrics-4.24.0 helm.sh/chart: kube-state-metrics-5.8.2
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.7.0" app.kubernetes.io/version: "2.9.2"
name: prometheus-kube-state-metrics name: prometheus-kube-state-metrics
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io

View File

@ -6,13 +6,13 @@ metadata:
name: prometheus-kube-state-metrics name: prometheus-kube-state-metrics
namespace: default namespace: default
labels: labels:
helm.sh/chart: kube-state-metrics-4.24.0 helm.sh/chart: kube-state-metrics-5.8.2
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.7.0" app.kubernetes.io/version: "2.9.2"
spec: spec:
selector: selector:
matchLabels: matchLabels:
@ -22,27 +22,30 @@ spec:
template: template:
metadata: metadata:
labels: labels:
helm.sh/chart: kube-state-metrics-4.24.0 helm.sh/chart: kube-state-metrics-5.8.2
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.7.0" app.kubernetes.io/version: "2.9.2"
spec: spec:
hostNetwork: false hostNetwork: false
serviceAccountName: prometheus-kube-state-metrics serviceAccountName: prometheus-kube-state-metrics
securityContext: securityContext:
fsGroup: 65534 fsGroup: 65534
runAsGroup: 65534 runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534 runAsUser: 65534
seccompProfile:
type: RuntimeDefault
containers: containers:
- name: kube-state-metrics - name: kube-state-metrics
args: args:
- --port=8080 - --port=8080
- --resources=certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,leases,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments - --resources=certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,leases,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
image: "registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.7.0" image: registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.9.2
ports: ports:
- containerPort: 8080 - containerPort: 8080
name: "http" name: "http"
@ -58,3 +61,8 @@ spec:
port: 8080 port: 8080
initialDelaySeconds: 5 initialDelaySeconds: 5
timeoutSeconds: 5 timeoutSeconds: 5
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

View File

@ -4,13 +4,13 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
labels: labels:
helm.sh/chart: kube-state-metrics-4.24.0 helm.sh/chart: kube-state-metrics-5.8.2
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.7.0" app.kubernetes.io/version: "2.9.2"
name: prometheus-kube-state-metrics name: prometheus-kube-state-metrics
rules: rules:

View File

@ -6,13 +6,13 @@ metadata:
name: prometheus-kube-state-metrics name: prometheus-kube-state-metrics
namespace: default namespace: default
labels: labels:
helm.sh/chart: kube-state-metrics-4.24.0 helm.sh/chart: kube-state-metrics-5.8.2
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.7.0" app.kubernetes.io/version: "2.9.2"
annotations: annotations:
prometheus.io/scrape: 'true' prometheus.io/scrape: 'true'
spec: spec:

View File

@ -4,14 +4,13 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
labels: labels:
helm.sh/chart: kube-state-metrics-4.24.0 helm.sh/chart: kube-state-metrics-5.8.2
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.7.0" app.kubernetes.io/version: "2.9.2"
name: prometheus-kube-state-metrics name: prometheus-kube-state-metrics
namespace: default namespace: default
imagePullSecrets: imagePullSecrets:
[]

View File

@ -6,13 +6,13 @@ metadata:
name: prometheus-prometheus-node-exporter name: prometheus-prometheus-node-exporter
namespace: default namespace: default
labels: labels:
helm.sh/chart: prometheus-node-exporter-4.8.0 helm.sh/chart: prometheus-node-exporter-4.18.1
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: prometheus-node-exporter app.kubernetes.io/part-of: prometheus-node-exporter
app.kubernetes.io/name: prometheus-node-exporter app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "1.5.0" app.kubernetes.io/version: "1.6.0"
spec: spec:
selector: selector:
matchLabels: matchLabels:
@ -27,13 +27,13 @@ spec:
annotations: annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true" cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
labels: labels:
helm.sh/chart: prometheus-node-exporter-4.8.0 helm.sh/chart: prometheus-node-exporter-4.18.1
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: prometheus-node-exporter app.kubernetes.io/part-of: prometheus-node-exporter
app.kubernetes.io/name: prometheus-node-exporter app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "1.5.0" app.kubernetes.io/version: "1.6.0"
spec: spec:
automountServiceAccountToken: false automountServiceAccountToken: false
securityContext: securityContext:
@ -44,15 +44,17 @@ spec:
serviceAccountName: prometheus-prometheus-node-exporter serviceAccountName: prometheus-prometheus-node-exporter
containers: containers:
- name: node-exporter - name: node-exporter
image: quay.io/prometheus/node-exporter:v1.5.0 image: quay.io/prometheus/node-exporter:v1.6.0
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
args: args:
- --path.procfs=/host/proc - --path.procfs=/host/proc
- --path.sysfs=/host/sys - --path.sysfs=/host/sys
- --path.rootfs=/host/root - --path.rootfs=/host/root
- --path.udev.data=/host/root/run/udev/data
- --web.listen-address=[$(HOST_IP)]:9100 - --web.listen-address=[$(HOST_IP)]:9100
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
env: env:
- name: HOST_IP - name: HOST_IP
value: 0.0.0.0 value: 0.0.0.0
@ -95,6 +97,8 @@ spec:
readOnly: true readOnly: true
hostNetwork: true hostNetwork: true
hostPID: true hostPID: true
nodeSelector:
kubernetes.io/os: linux
tolerations: tolerations:
- effect: NoSchedule - effect: NoSchedule
operator: Exists operator: Exists

View File

@ -6,13 +6,13 @@ metadata:
name: prometheus-prometheus-node-exporter name: prometheus-prometheus-node-exporter
namespace: default namespace: default
labels: labels:
helm.sh/chart: prometheus-node-exporter-4.8.0 helm.sh/chart: prometheus-node-exporter-4.18.1
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: prometheus-node-exporter app.kubernetes.io/part-of: prometheus-node-exporter
app.kubernetes.io/name: prometheus-node-exporter app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "1.5.0" app.kubernetes.io/version: "1.6.0"
annotations: annotations:
prometheus.io/scrape: "true" prometheus.io/scrape: "true"
spec: spec:

View File

@ -6,10 +6,10 @@ metadata:
name: prometheus-prometheus-node-exporter name: prometheus-prometheus-node-exporter
namespace: default namespace: default
labels: labels:
helm.sh/chart: prometheus-node-exporter-4.8.0 helm.sh/chart: prometheus-node-exporter-4.18.1
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: prometheus-node-exporter app.kubernetes.io/part-of: prometheus-node-exporter
app.kubernetes.io/name: prometheus-node-exporter app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "1.5.0" app.kubernetes.io/version: "1.6.0"

View File

@ -4,12 +4,13 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
labels: labels:
helm.sh/chart: prometheus-pushgateway-2.0.2 helm.sh/chart: prometheus-pushgateway-2.4.0
app.kubernetes.io/name: prometheus-pushgateway app.kubernetes.io/name: prometheus-pushgateway
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v1.5.1" app.kubernetes.io/version: "v1.6.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
name: prometheus-prometheus-pushgateway name: prometheus-prometheus-pushgateway
namespace: default
spec: spec:
replicas: 1 replicas: 1
strategy: strategy:
@ -21,16 +22,16 @@ spec:
template: template:
metadata: metadata:
labels: labels:
helm.sh/chart: prometheus-pushgateway-2.0.2 helm.sh/chart: prometheus-pushgateway-2.4.0
app.kubernetes.io/name: prometheus-pushgateway app.kubernetes.io/name: prometheus-pushgateway
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v1.5.1" app.kubernetes.io/version: "v1.6.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
spec: spec:
serviceAccountName: prometheus-prometheus-pushgateway serviceAccountName: prometheus-prometheus-pushgateway
containers: containers:
- name: pushgateway - name: pushgateway
image: "prom/pushgateway:v1.5.1" image: "quay.io/prometheus/pushgateway:v1.6.0"
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
- name: metrics - name: metrics
@ -38,7 +39,7 @@ spec:
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /-/ready path: /-/healthy
port: 9091 port: 9091
initialDelaySeconds: 10 initialDelaySeconds: 10
timeoutSeconds: 10 timeoutSeconds: 10

View File

@ -6,12 +6,13 @@ metadata:
annotations: annotations:
prometheus.io/probe: pushgateway prometheus.io/probe: pushgateway
labels: labels:
helm.sh/chart: prometheus-pushgateway-2.0.2 helm.sh/chart: prometheus-pushgateway-2.4.0
app.kubernetes.io/name: prometheus-pushgateway app.kubernetes.io/name: prometheus-pushgateway
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v1.5.1" app.kubernetes.io/version: "v1.6.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
name: prometheus-prometheus-pushgateway name: prometheus-prometheus-pushgateway
namespace: default
spec: spec:
type: ClusterIP type: ClusterIP
ports: ports:

View File

@ -4,9 +4,10 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
labels: labels:
helm.sh/chart: prometheus-pushgateway-2.0.2 helm.sh/chart: prometheus-pushgateway-2.4.0
app.kubernetes.io/name: prometheus-pushgateway app.kubernetes.io/name: prometheus-pushgateway
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v1.5.1" app.kubernetes.io/version: "v1.6.0"
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
name: prometheus-prometheus-pushgateway name: prometheus-prometheus-pushgateway
namespace: default

View File

@ -4,11 +4,13 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
labels: labels:
component: "server" app.kubernetes.io/component: server
app: prometheus app.kubernetes.io/name: prometheus
release: prometheus app.kubernetes.io/instance: prometheus
chart: prometheus-19.0.2 app.kubernetes.io/version: v2.45.0
heritage: Helm helm.sh/chart: prometheus-23.1.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: prometheus
name: prometheus-server name: prometheus-server
rules: rules:
- apiGroups: - apiGroups:

View File

@ -4,11 +4,13 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
labels: labels:
component: "server" app.kubernetes.io/component: server
app: prometheus app.kubernetes.io/name: prometheus
release: prometheus app.kubernetes.io/instance: prometheus
chart: prometheus-19.0.2 app.kubernetes.io/version: v2.45.0
heritage: Helm helm.sh/chart: prometheus-23.1.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: prometheus
name: prometheus-server name: prometheus-server
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount

View File

@ -4,11 +4,13 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
labels: labels:
component: "server" app.kubernetes.io/component: server
app: prometheus app.kubernetes.io/name: prometheus
release: prometheus app.kubernetes.io/instance: prometheus
chart: prometheus-19.0.2 app.kubernetes.io/version: v2.45.0
heritage: Helm helm.sh/chart: prometheus-23.1.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: prometheus
name: prometheus-server name: prometheus-server
namespace: default namespace: default
data: data:
@ -237,11 +239,18 @@ data:
- __meta_kubernetes_pod_annotation_prometheus_io_path - __meta_kubernetes_pod_annotation_prometheus_io_path
target_label: __metrics_path__ target_label: __metrics_path__
- action: replace - action: replace
regex: (.+?)(?::\d+)?;(\d+) regex: (\d+);(([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})
replacement: $1:$2 replacement: '[$2]:$1'
source_labels: source_labels:
- __address__
- __meta_kubernetes_pod_annotation_prometheus_io_port - __meta_kubernetes_pod_annotation_prometheus_io_port
- __meta_kubernetes_pod_ip
target_label: __address__
- action: replace
regex: (\d+);((([0-9]+?)(\.|$)){4})
replacement: $2:$1
source_labels:
- __meta_kubernetes_pod_annotation_prometheus_io_port
- __meta_kubernetes_pod_ip
target_label: __address__ target_label: __address__
- action: labelmap - action: labelmap
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+) regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
@ -260,6 +269,10 @@ data:
regex: Pending|Succeeded|Failed|Completed regex: Pending|Succeeded|Failed|Completed
source_labels: source_labels:
- __meta_kubernetes_pod_phase - __meta_kubernetes_pod_phase
- action: replace
source_labels:
- __meta_kubernetes_pod_node_name
target_label: node
- honor_labels: true - honor_labels: true
job_name: kubernetes-pods-slow job_name: kubernetes-pods-slow
kubernetes_sd_configs: kubernetes_sd_configs:
@ -280,11 +293,18 @@ data:
- __meta_kubernetes_pod_annotation_prometheus_io_path - __meta_kubernetes_pod_annotation_prometheus_io_path
target_label: __metrics_path__ target_label: __metrics_path__
- action: replace - action: replace
regex: (.+?)(?::\d+)?;(\d+) regex: (\d+);(([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})
replacement: $1:$2 replacement: '[$2]:$1'
source_labels: source_labels:
- __address__
- __meta_kubernetes_pod_annotation_prometheus_io_port - __meta_kubernetes_pod_annotation_prometheus_io_port
- __meta_kubernetes_pod_ip
target_label: __address__
- action: replace
regex: (\d+);((([0-9]+?)(\.|$)){4})
replacement: $2:$1
source_labels:
- __meta_kubernetes_pod_annotation_prometheus_io_port
- __meta_kubernetes_pod_ip
target_label: __address__ target_label: __address__
- action: labelmap - action: labelmap
regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+) regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)
@ -303,6 +323,10 @@ data:
regex: Pending|Succeeded|Failed|Completed regex: Pending|Succeeded|Failed|Completed
source_labels: source_labels:
- __meta_kubernetes_pod_phase - __meta_kubernetes_pod_phase
- action: replace
source_labels:
- __meta_kubernetes_pod_node_name
target_label: node
scrape_interval: 5m scrape_interval: 5m
scrape_timeout: 30s scrape_timeout: 30s
alerting: alerting:

View File

@ -4,19 +4,21 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
labels: labels:
component: "server" app.kubernetes.io/component: server
app: prometheus app.kubernetes.io/name: prometheus
release: prometheus app.kubernetes.io/instance: prometheus
chart: prometheus-19.0.2 app.kubernetes.io/version: v2.45.0
heritage: Helm helm.sh/chart: prometheus-23.1.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: prometheus
name: prometheus-server name: prometheus-server
namespace: default namespace: default
spec: spec:
selector: selector:
matchLabels: matchLabels:
component: "server" app.kubernetes.io/component: server
app: prometheus app.kubernetes.io/name: prometheus
release: prometheus app.kubernetes.io/instance: prometheus
replicas: 1 replicas: 1
strategy: strategy:
type: Recreate type: Recreate
@ -24,21 +26,23 @@ spec:
template: template:
metadata: metadata:
labels: labels:
component: "server" app.kubernetes.io/component: server
app: prometheus app.kubernetes.io/name: prometheus
release: prometheus app.kubernetes.io/instance: prometheus
chart: prometheus-19.0.2 app.kubernetes.io/version: v2.45.0
heritage: Helm helm.sh/chart: prometheus-23.1.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: prometheus
spec: spec:
enableServiceLinks: true enableServiceLinks: true
serviceAccountName: prometheus-server serviceAccountName: prometheus-server
containers: containers:
- name: prometheus-server-configmap-reload - name: prometheus-server-configmap-reload
image: "jimmidyson/configmap-reload:v0.8.0" image: "quay.io/prometheus-operator/prometheus-config-reloader:v0.66.0"
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
args: args:
- --volume-dir=/etc/config - --watched-dir=/etc/config
- --webhook-url=http://127.0.0.1:9090/-/reload - --reload-url=http://127.0.0.1:9090/-/reload
resources: resources:
{} {}
volumeMounts: volumeMounts:
@ -47,7 +51,7 @@ spec:
readOnly: true readOnly: true
- name: prometheus-server - name: prometheus-server
image: "quay.io/prometheus/prometheus:v2.40.5" image: "quay.io/prometheus/prometheus:v2.45.0"
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
args: args:
- --storage.tsdb.retention.time=15d - --storage.tsdb.retention.time=15d

View File

@ -4,11 +4,13 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
labels: labels:
component: "server" app.kubernetes.io/component: server
app: prometheus app.kubernetes.io/name: prometheus
release: prometheus app.kubernetes.io/instance: prometheus
chart: prometheus-19.0.2 app.kubernetes.io/version: v2.45.0
heritage: Helm helm.sh/chart: prometheus-23.1.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: prometheus
name: prometheus-server name: prometheus-server
namespace: default namespace: default
spec: spec:

View File

@ -4,11 +4,13 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
labels: labels:
component: "server" app.kubernetes.io/component: server
app: prometheus app.kubernetes.io/name: prometheus
release: prometheus app.kubernetes.io/instance: prometheus
chart: prometheus-19.0.2 app.kubernetes.io/version: v2.45.0
heritage: Helm helm.sh/chart: prometheus-23.1.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: prometheus
name: prometheus-server name: prometheus-server
namespace: default namespace: default
spec: spec:
@ -18,8 +20,8 @@ spec:
protocol: TCP protocol: TCP
targetPort: 9090 targetPort: 9090
selector: selector:
component: "server" app.kubernetes.io/component: server
app: prometheus app.kubernetes.io/name: prometheus
release: prometheus app.kubernetes.io/instance: prometheus
sessionAffinity: None sessionAffinity: None
type: "ClusterIP" type: "ClusterIP"

View File

@ -4,11 +4,13 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
labels: labels:
component: "server" app.kubernetes.io/component: server
app: prometheus app.kubernetes.io/name: prometheus
release: prometheus app.kubernetes.io/instance: prometheus
chart: prometheus-19.0.2 app.kubernetes.io/version: v2.45.0
heritage: Helm helm.sh/chart: prometheus-23.1.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: prometheus
name: prometheus-server name: prometheus-server
namespace: default namespace: default
annotations: annotations:

View File

@ -36,7 +36,6 @@ resources:
- inflated/prometheus/charts/prometheus-node-exporter/templates/service.yaml - inflated/prometheus/charts/prometheus-node-exporter/templates/service.yaml
- inflated/prometheus/charts/alertmanager/templates/serviceaccount.yaml - inflated/prometheus/charts/alertmanager/templates/serviceaccount.yaml
- inflated/prometheus/charts/alertmanager/templates/services.yaml - inflated/prometheus/charts/alertmanager/templates/services.yaml
- inflated/prometheus/charts/alertmanager/templates/tests/test-connection.yaml
- inflated/prometheus/charts/alertmanager/templates/configmap.yaml - inflated/prometheus/charts/alertmanager/templates/configmap.yaml
- inflated/prometheus/charts/alertmanager/templates/statefulset.yaml - inflated/prometheus/charts/alertmanager/templates/statefulset.yaml
- inflated/prometheus/charts/kube-state-metrics/templates/serviceaccount.yaml - inflated/prometheus/charts/kube-state-metrics/templates/serviceaccount.yaml