diff --git a/k8s/monitoring/scrape-configs.yaml b/k8s/monitoring/scrape-configs.yaml index 45d60e2..148f7ad 100644 --- a/k8s/monitoring/scrape-configs.yaml +++ b/k8s/monitoring/scrape-configs.yaml @@ -14,6 +14,10 @@ action: replace target_label: __metrics_path__ regex: (.+) + - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scheme] + action: replace + target_label: __scheme__ + regex: (.+) - action: labelmap regex: __meta_kubernetes_pod_label_(.+) - source_labels: [__meta_kubernetes_namespace] diff --git a/k8s/operators/kube-prometheus/cluster-role-patch.yaml b/k8s/operators/kube-prometheus/cluster-role-patch.yaml index bebdefe..b84f8d4 100644 --- a/k8s/operators/kube-prometheus/cluster-role-patch.yaml +++ b/k8s/operators/kube-prometheus/cluster-role-patch.yaml @@ -2,5 +2,5 @@ path: /rules/- value: apiGroups: [""] - resources: [pods] - verbs: [list, get, watch] + resources: [pods, services, endpoints] + verbs: [list, watch]