Enable ServiceMonitor
This commit is contained in:
parent
c5ef11e9e0
commit
8d4a335e40
1 changed files with 47 additions and 3 deletions
|
|
@ -90,13 +90,57 @@ deployment:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
{% endif %}
|
{% endif %}
|
||||||
revisionHistoryLimit: 3
|
revisionHistoryLimit: 3
|
||||||
podAnnotations:
|
# podAnnotations:
|
||||||
prometheus.io/port: '9100'
|
# prometheus.io/port: '9100'
|
||||||
prometheus.io/scrape: 'true'
|
# prometheus.io/scrape: 'true'
|
||||||
|
# prometheus.io/path: "/metrics"
|
||||||
{% if traefik_hostport is defined and traefik_hostport == true %}
|
{% if traefik_hostport is defined and traefik_hostport == true %}
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
type: OnDelete
|
type: OnDelete
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
metrics:
|
||||||
|
prometheus:
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
serviceMonitor:
|
||||||
|
# metricRelabelings: []
|
||||||
|
# # - sourceLabels: [__name__]
|
||||||
|
# # separator: ;
|
||||||
|
# # regex: ^fluentd_output_status_buffer_(oldest|newest)_.+
|
||||||
|
# # replacement: $1
|
||||||
|
# # action: drop
|
||||||
|
# relabelings: []
|
||||||
|
# # - sourceLabels: [__meta_kubernetes_pod_node_name]
|
||||||
|
# # separator: ;
|
||||||
|
# # regex: ^(.*)$
|
||||||
|
# # targetLabel: nodename
|
||||||
|
# # replacement: $1
|
||||||
|
# # action: replace
|
||||||
|
# jobLabel: traefik
|
||||||
|
# interval: 30s
|
||||||
|
# honorLabels: true
|
||||||
|
# # (Optional)
|
||||||
|
# # scrapeTimeout: 5s
|
||||||
|
# # honorTimestamps: true
|
||||||
|
# # enableHttp2: true
|
||||||
|
# # followRedirects: true
|
||||||
|
# # additionalLabels:
|
||||||
|
# # foo: bar
|
||||||
|
# # namespace: "another-namespace"
|
||||||
|
# # namespaceSelector: {}
|
||||||
|
# prometheusRule:
|
||||||
|
# additionalLabels: {}
|
||||||
|
# namespace: "{{ traefik_namespace }}"
|
||||||
|
# rules:
|
||||||
|
# - alert: TraefikDown
|
||||||
|
# expr: up{job="traefik"} == 0
|
||||||
|
# for: 5m
|
||||||
|
# labels:
|
||||||
|
# context: traefik
|
||||||
|
# severity: warning
|
||||||
|
# annotations:
|
||||||
|
# summary: "Traefik Down"
|
||||||
|
# description: "{{ $labels.pod }} on {{ $labels.nodename }} is down"
|
||||||
experimental:
|
experimental:
|
||||||
plugins:
|
plugins:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue