Skip to content

Commit 4e97da9

Browse files
committed
monitoring: add additionalScrapeConfigs patch
1 parent 0b04389 commit 4e97da9

File tree

4 files changed

+23
-31
lines changed

4 files changed

+23
-31
lines changed

monitoring/external/shell-servers.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

monitoring/kustomization.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ resources:
66
- cilium-service-monitor.yaml
77
- ./loki
88
- ./promtail
9-
- external/shell-servers.yaml
9+
- prometheus-additional-targets.yaml
1010
patches:
1111
- container-images.patch.yaml
1212
- cluster-wide.patch.yaml
1313
- grafana-dashboards.patch.yaml
14+
- prometheus-additional-scrape-configs.patch.yaml
1415
patchesJson6902:
1516
- target:
1617
version: v1
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: monitoring.coreos.com/v1
2+
kind: Prometheus
3+
metadata:
4+
namespace: monitoring
5+
name: k8s
6+
spec:
7+
additionalScrapeConfigs:
8+
name: additional-scrape-configs
9+
key: prometheus-additional.yaml
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: additional-scrape-configs
5+
type: Opaque
6+
stringData:
7+
prometheus-additional.yaml: |
8+
- job_name: "prometheus"
9+
static_configs:
10+
- job_name: "shell-server"
11+
targets:
12+
- de1.hashbang.sh/metrics

0 commit comments

Comments
 (0)