Skip to content

Commit 0f39268

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

File tree

3 files changed

+23
-31
lines changed

3 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ resources:
66
- cilium-service-monitor.yaml
77
- ./loki
88
- ./promtail
9-
- external/shell-servers.yaml
109
patches:
1110
- container-images.patch.yaml
1211
- cluster-wide.patch.yaml
1312
- grafana-dashboards.patch.yaml
13+
- prometheus-additional-scrape-configs.patch.yaml
1414
patchesJson6902:
1515
- target:
1616
version: v1
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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
10+
---
11+
apiVersion: v1
12+
kind: Secret
13+
metadata:
14+
name: additional-scrape-configs
15+
type: Opaque
16+
stringData:
17+
prometheus-additional.yaml: |
18+
- job_name: "prometheus"
19+
static_configs:
20+
- job_name: "shell-server"
21+
targets:
22+
- de1.hashbang.sh/metrics

0 commit comments

Comments
 (0)