add prometheus
This commit is contained in:
24
k8s/prometheus.yaml
Normal file
24
k8s/prometheus.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: helm.cattle.io/v1
|
||||||
|
kind: HelmChart
|
||||||
|
metadata:
|
||||||
|
name: prometheus
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
chart: kube-prometheus-stack
|
||||||
|
repo: https://prometheus-community.github.io/helm-charts
|
||||||
|
targetNamespace: monitoring
|
||||||
|
createNamespace: true
|
||||||
|
valuesContent: |-
|
||||||
|
prometheus:
|
||||||
|
prometheusSpec:
|
||||||
|
# Monitor all namespaces for ServiceMonitors
|
||||||
|
serviceMonitorSelectorNilUsesHelmValues: false
|
||||||
|
serviceMonitorNamespaceSelector: {}
|
||||||
|
|
||||||
|
# Monitor all namespaces for PodMonitors
|
||||||
|
podMonitorSelectorNilUsesHelmValues: false
|
||||||
|
podMonitorNamespaceSelector: {}
|
||||||
|
|
||||||
|
# Monitor all namespaces for PrometheusRules
|
||||||
|
ruleSelectorNilUsesHelmValues: false
|
||||||
|
ruleNamespaceSelector: {}
|
||||||
Reference in New Issue
Block a user