add longhorn monitoring
This commit is contained in:
parent
17d0a1508b
commit
7949c95acb
|
@ -1,15 +0,0 @@
|
||||||
apiVersion: badjware/v1
|
|
||||||
kind: RemoteResources
|
|
||||||
metadata:
|
|
||||||
name: kube-state-metrics
|
|
||||||
resources:
|
|
||||||
- url: https://raw.githubusercontent.com/kubernetes/kube-state-metrics/master/examples/standard/cluster-role-binding.yaml
|
|
||||||
sha256: 47d33684e45f1aa6a9f10af998e485e76608f92885f2558d436dbd91f87738aa
|
|
||||||
- url: https://raw.githubusercontent.com/kubernetes/kube-state-metrics/master/examples/standard/cluster-role.yaml
|
|
||||||
sha256: 26e6b749f1956fcab55f48f2a25b5195c686b814a3546640a3ed2f3485b5b0af
|
|
||||||
- url: https://raw.githubusercontent.com/kubernetes/kube-state-metrics/master/examples/standard/deployment.yaml
|
|
||||||
sha256: 716fa3a4bcb50daebd2040cdf3d9abd0978f4a0222e220b8b86ab020dca7d5aa
|
|
||||||
- url: https://raw.githubusercontent.com/kubernetes/kube-state-metrics/master/examples/standard/service-account.yaml
|
|
||||||
sha256: d356059416f2ead70b7d27a6fc9cc3e091a8f21f7022ce23da96ed5d871c018b
|
|
||||||
- url: https://raw.githubusercontent.com/kubernetes/kube-state-metrics/master/examples/standard/service.yaml
|
|
||||||
sha256: e110496c646d2d7b41311ef88d315f239d3505785d99ffd8d0a1f9ec9832eb84
|
|
|
@ -8,6 +8,3 @@ resources:
|
||||||
|
|
||||||
commonLabels:
|
commonLabels:
|
||||||
app.kubernetes.io/name: kube-state-metrics
|
app.kubernetes.io/name: kube-state-metrics
|
||||||
|
|
||||||
# generators:
|
|
||||||
# - kube-state-metrics.yaml
|
|
|
@ -1,7 +0,0 @@
|
||||||
apiVersion: badjware/v1
|
|
||||||
kind: RemoteResources
|
|
||||||
metadata:
|
|
||||||
name: prometheus-operator
|
|
||||||
resources:
|
|
||||||
- url: https://raw.githubusercontent.com/coreos/prometheus-operator/master/bundle.yaml
|
|
||||||
sha256: 557721b7638055102c150f68a924b6c4d0b36439a0fb87cb0cddbaf89e1c2c57
|
|
|
@ -3,4 +3,7 @@ resources:
|
||||||
- prometheus-rbac.yaml
|
- prometheus-rbac.yaml
|
||||||
- prometheus-ingress.yaml
|
- prometheus-ingress.yaml
|
||||||
- traefik-podmonitor.yaml
|
- traefik-podmonitor.yaml
|
||||||
- servicemonitors.yaml
|
- servicemonitors/generic-any-namespaces.yaml
|
||||||
|
- servicemonitors/kubelet.yaml
|
||||||
|
- servicemonitors/longhorn.yaml
|
||||||
|
- servicemonitors/prometheus.yaml
|
|
@ -0,0 +1,14 @@
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: servicemonitor-http
|
||||||
|
labels:
|
||||||
|
monitor: prometheus
|
||||||
|
spec:
|
||||||
|
namespaceSelector:
|
||||||
|
any: true
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
monitor: prometheus
|
||||||
|
endpoints:
|
||||||
|
- port: http
|
|
@ -1,19 +1,5 @@
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
|
||||||
name: prometheus
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: prometheus
|
|
||||||
monitor: prometheus
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
operated-prometheus: "true"
|
|
||||||
endpoints:
|
|
||||||
- port: web
|
|
||||||
---
|
|
||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
kind: ServiceMonitor
|
|
||||||
metadata:
|
metadata:
|
||||||
name: kubelet
|
name: kubelet
|
||||||
labels:
|
labels:
|
||||||
|
@ -44,18 +30,3 @@ spec:
|
||||||
tlsConfig:
|
tlsConfig:
|
||||||
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
||||||
insecureSkipVerify: true
|
insecureSkipVerify: true
|
||||||
---
|
|
||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
kind: ServiceMonitor
|
|
||||||
metadata:
|
|
||||||
name: servicemonitor-http
|
|
||||||
labels:
|
|
||||||
monitor: prometheus
|
|
||||||
spec:
|
|
||||||
namespaceSelector:
|
|
||||||
any: true
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
monitor: prometheus
|
|
||||||
endpoints:
|
|
||||||
- port: http
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: longhorn
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: longhorn
|
||||||
|
monitor: prometheus
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: longhorn-manager
|
||||||
|
namespaceSelector:
|
||||||
|
matchNames:
|
||||||
|
- longhorn-system
|
||||||
|
endpoints:
|
||||||
|
- port: manager
|
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: prometheus
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: prometheus
|
||||||
|
monitor: prometheus
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
operated-prometheus: "true"
|
||||||
|
endpoints:
|
||||||
|
- port: web
|
Loading…
Reference in New Issue