Compare commits
2 commits
5eaa1c24af
...
8d4a335e40
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d4a335e40 | |||
| c5ef11e9e0 |
3 changed files with 1579 additions and 3 deletions
1523
files/grafana-dashboard.yml
Normal file
1523
files/grafana-dashboard.yml
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -217,5 +217,14 @@
|
|||
# enabled: true
|
||||
# targetIPs: [10.144.217.172]
|
||||
|
||||
- name: Install traefik grafana dashboard
|
||||
kubernetes.core.k8s:
|
||||
state: "present"
|
||||
context: "{{ my_context }}"
|
||||
namespace: 'traefik'
|
||||
apply: yes
|
||||
resource_definition: "{{ lookup('file', item) | from_yaml_all }}"
|
||||
with_items:
|
||||
- grafana-dashboard.yml
|
||||
|
||||
tags: traefik
|
||||
|
|
|
|||
|
|
@ -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