-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from vsaveliev/hotfix/alerts_messages_and_dashb…
…oards Hotfix/alerts messages and dashboards
- Loading branch information
Showing
39 changed files
with
1,338 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,82 @@ | ||
--- | ||
# Kubernetes configs path | ||
k8s_conf_dir: /etc/kubernetes | ||
k8s_addons_dir: '{{ k8s_conf_dir }}/addons' | ||
k8s_prometheus_dir: '{{ k8s_conf_dir }}/addons/prometheus' | ||
|
||
# Master hosts names | ||
k8s_master_hosts: {} | ||
|
||
# Prometheus host names (for Prometheus, AlertManager, PushGateway, Grafana) | ||
# Retention days (how long to store data) | ||
k8s_prometheus_retention_days: 7 | ||
|
||
# Prometheus host name (it will be created if it doesn't exist) | ||
k8s_prometheus_name: '' | ||
# AlertManager host name (it will be created if it doesn't exist) | ||
k8s_prometheus_alertmanager_name: '' | ||
# PushGateway host name (it will be created if it doesn't exist) | ||
k8s_prometheus_pushgateway_name: '' | ||
# Grafana host name (it will be created if it doesn't exist) | ||
k8s_prometheus_grafana_name: '' | ||
# AlertManager host name (it will be created if it doesn't exist) | ||
k8s_prometheus_blackbox_name: '' | ||
|
||
# Prometheus namespace | ||
k8s_prometheus_namespace: default | ||
# Prometheus namespace (it will be created if it doesn't exist) | ||
k8s_prometheus_namespace: prometheus | ||
|
||
# Prometheus images | ||
# Prometheus image | ||
k8s_prometheus_image: prom/prometheus | ||
k8s_prometheus_image_tag: v2.0.0-rc.1 | ||
k8s_prometheus_image_tag: v2.0.0 | ||
# Alert manager image | ||
k8s_prometheus_alertmanager_image: prom/alertmanager | ||
k8s_prometheus_alertmanager_image_tag: v0.9.1 | ||
# Kube state metrics image | ||
k8s_prometheus_ksm_image: gcr.io/google_containers/kube-state-metrics | ||
k8s_prometheus_ksm_image_tag: v0.5.0 | ||
# Node exporter image | ||
k8s_prometheus_nodeexport_image: prom/node-exporter | ||
k8s_prometheus_nodeexport_image_tag: v0.15.0 | ||
k8s_prometheus_nodeexport_image_tag: v0.15.1 | ||
# Black box exporter image | ||
k8s_prometheus_blackbox_image: prom/blackbox-exporter | ||
k8s_prometheus_blackbox_image_tag: v0.10.0 | ||
|
||
# Prometheus additional components | ||
|
||
# Push gateway image | ||
k8s_prometheus_pushgateway_image: prom/pushgateway | ||
k8s_prometheus_pushgateway_image_tag: v0.4.0 | ||
# Grafan image (+ grafana watcher) | ||
k8s_prometheus_grafana_image: grafana/grafana | ||
k8s_prometheus_grafana_image_tag: 4.5.2 | ||
k8s_prometheus_grafana_watcher_image: quay.io/coreos/grafana-watcher | ||
k8s_prometheus_grafana_watcher_image_tag: v0.0.8 | ||
|
||
k8s_prometheus_blackbox_image: prom/blackbox-exporter | ||
k8s_prometheus_blackbox_image_tag: v0.10.0 | ||
|
||
# Prometheus additional images | ||
# Config reload image | ||
k8s_prometheus_configreload_image: jimmidyson/configmap-reload | ||
k8s_prometheus_configreload_image_tag: v0.1 | ||
|
||
# Prometheus scrape configs for Istio | ||
k8s_prometheus_scrape_istio_metrics: false | ||
|
||
# Alerts default route is stub | ||
k8s_prometheus_alerts_default_route: 'null' | ||
|
||
# Prometheus alert configs for Slack | ||
prometheus_slack_api_url: '' | ||
prometheus_slack_channel: '' | ||
k8s_prometheus_slack_alerts_enabled: false | ||
k8s_prometheus_slack_api_url: '' | ||
k8s_prometheus_slack_channel: '' | ||
k8s_prometheus_slack_message_title: '{% raw %}[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}]{{.CommonAnnotations.summary}}{% endraw %}' | ||
# be careful with tabs - it can break structure of yml file | ||
k8s_prometheus_slack_message_body: | | ||
{% raw %}{{ range .Alerts }} | ||
*Alert:* {{ .Annotations.summary }} - `{{ .Labels.severity }}` | ||
*Description:* {{ .Annotations.description }} | ||
*Details*: | ||
{{ range .Labels.SortedPairs }} • {{ .Name }}: `{{ .Value }}` | ||
{{ end }} | ||
{{ end }}{% endraw %} | ||
# Prometheus alert configs for Telegram | ||
k8s_prometheus_telegram_alerts_enabled: false | ||
k8s_prometheus_telegram_webhook: '' | ||
|
||
# Prometheus scrape configs for Cockroachdb | ||
k8s_prometheus_scrape_cockroachdb_metrics: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.