formula-prometheus/prometheus/files/alerta/alerta.conf

27 lines
1.3 KiB
Plaintext

{%- from "prometheus/map.jinja" import alerta with context %}
'use strict';
angular.module('config', [])
.constant('config', {
'endpoint' : "/api",
'provider' : "basic",
'colors' : {
'severity': {
'critical' : '{{ alerta.get("colors", {}).get("critical", "#D8122A") }}',
'major' : '{{ alerta.get("colors", {}).get("major", "#EA680F") }}',
'minor' : '{{ alerta.get("colors", {}).get("minor", "#FFBE1E") }}',
'warning' : '{{ alerta.get("colors", {}).get("warning", "#BA2222") }}',
'indeterminate': '{{ alerta.get("colors", {}).get("indeterminate", "#A6ACA8") }}',
'cleared' : '{{ alerta.get("colors", {}).get("cleared", "#00AA5A") }}',
'normal' : '{{ alerta.get("colors", {}).get("normal", "#00AA5A") }}',
'ok' : '{{ alerta.get("colors", {}).get("ok", "#00AA5A") }}',
'informational': '{{ alerta.get("colors", {}).get("informational", "#00A1BC") }}',
'debug' : '{{ alerta.get("colors", {}).get("debug", "#9D006D") }}',
'security' : '{{ alerta.get("colors", {}).get("security", "#333333") }}',
'unknown' : '{{ alerta.get("colors", {}).get("unknown", "#A6ACA8") }}'
},
'text': 'white',
'highlight': 'lightgray'
}
});