mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
29 lines
791 B
YAML
29 lines
791 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: database-write-hashring
|
|
app.kubernetes.io/instance: thanos-receive-ingestor
|
|
app.kubernetes.io/name: thanos-receive
|
|
app.kubernetes.io/version: v0.31.0
|
|
name: thanos-receive-ingestor
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
endpoints:
|
|
- port: http
|
|
relabelings:
|
|
- action: replace
|
|
separator: /
|
|
sourceLabels:
|
|
- namespace
|
|
- pod
|
|
targetLabel: instance
|
|
- action: replace
|
|
sourceLabels:
|
|
- __meta_kubernetes_service_label_controller_receive_thanos_io_shard
|
|
targetLabel: hashring
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: database-write-hashring
|
|
app.kubernetes.io/name: thanos-receive
|