apps(prometheus): Add service montior
parent
f37b1545c4
commit
197095d499
@ -0,0 +1,20 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
labels:
|
||||
name: prometheus
|
||||
name: prometheus
|
||||
namespace: metrics
|
||||
spec:
|
||||
endpoints:
|
||||
- interval: 30s
|
||||
targetPort: 9090
|
||||
path: /metrics
|
||||
- interval: 30s
|
||||
targetPort: 8080
|
||||
path: /metrics
|
||||
namespaceSelector:
|
||||
any: true
|
||||
selector:
|
||||
matchLabels:
|
||||
prometheus.io/scrape: "true"
|
Loading…
Reference in New Issue