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
|
||||
{% endif %}
|
||||
revisionHistoryLimit: 3
|
||||
podAnnotations:
|
||||
prometheus.io/port: '9100'
|
||||
prometheus.io/scrape: 'true'
|
||||
# podAnnotations:
|
||||
# prometheus.io/port: '9100'
|
||||
# prometheus.io/scrape: 'true'
|
||||
# prometheus.io/path: "/metrics"
|
||||
{% if traefik_hostport is defined and traefik_hostport == true %}
|
||||
updateStrategy:
|
||||
type: OnDelete
|
||||
{% 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:
|
||||
plugins:
|
||||
enabled: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue