add service monitor to grafana
This commit is contained in:
1 parent
f7bb04a715
commit
3ec88e526b
3 files changed
+39
No files matched your search
@@ -1,5 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
labels:
|
||||
app: grafana
|
||||
metadata:
|
||||
name: grafana
|
||||
namespace: monitoring
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: grafana
|
||||
namespace: monitoring
|
||||
spec:
|
||||
endpoints:
|
||||
- interval: 15s
|
||||
port: http
|
||||
selector:
|
||||
matchLabels:
|
||||
app: grafana
|
||||
Reference in new issue
Block a user