Compare commits
No commits in common. "8d4a335e40335a4c0d37e1137c8471d44a0d9be6" and "5eaa1c24afce1dfe1904381f3c2b4e29d556c3ca" have entirely different histories.
8d4a335e40
...
5eaa1c24af
3 changed files with 3 additions and 1579 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -217,14 +217,5 @@
|
||||||
# enabled: true
|
# enabled: true
|
||||||
# targetIPs: [10.144.217.172]
|
# 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
|
tags: traefik
|
||||||
|
|
|
||||||
|
|
@ -90,57 +90,13 @@ 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