-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus-dummy-exporter.yaml
47 lines (45 loc) · 1.02 KB
/
prometheus-dummy-exporter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Deploys dummy Prometheus exporter.
# To access the metrics from Jumphost: "kubectl port-forward svc/dummy-exporter 9090:9090" and "curl localhost:9090/metrics"
---
kind: Service
apiVersion: v1
metadata:
labels:
app: "dummy-exporter"
name: "dummy-exporter"
annotations:
prometheus.io/scrape: "true"
spec:
selector:
app: "dummy-exporter"
ports:
- name: http
port: 9090
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: "dummy-exporter"
labels:
app: "dummy-exporter"
spec:
replicas: 1
selector:
matchLabels:
app: "dummy-exporter"
template:
metadata:
labels:
app: "dummy-exporter"
spec:
containers:
- image: gcr.io/google-samples/prometheus-dummy-exporter:latest
name: prometheus-example-exporter
imagePullPolicy: Always
command:
- /bin/sh
- -c
- ./prometheus-dummy-exporter --metric-name=example_monitoring_up --metric-value=1 --port=9090
resources:
requests:
cpu: 100m