2019-08-08 22:09:53 +02:00
|
|
|
local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
|
2019-09-27 00:02:33 +02:00
|
|
|
local utils = import 'utils.libsonnet';
|
2019-02-01 14:43:22 +01:00
|
|
|
|
2019-02-27 13:28:00 +01:00
|
|
|
{
|
2019-02-01 14:43:22 +01:00
|
|
|
_config+:: {
|
|
|
|
namespace: 'monitoring',
|
2019-02-27 13:28:00 +01:00
|
|
|
// Add custom dashboards
|
|
|
|
grafanaDashboards+:: {
|
2019-03-13 22:44:01 +01:00
|
|
|
'traefik-dashboard.json': (import 'grafana-dashboards/traefik-dashboard.json'),
|
2019-02-27 13:28:00 +01:00
|
|
|
},
|
2019-02-01 14:43:22 +01:00
|
|
|
},
|
|
|
|
|
2019-05-07 17:16:16 +02:00
|
|
|
traefikExporter+:: {
|
2019-02-01 14:43:22 +01:00
|
|
|
serviceMonitor:
|
2020-03-18 22:01:01 +01:00
|
|
|
utils.newServiceMonitor('traefik', $._config.namespace, { app: 'traefik' }, 'kube-system', 'metrics', 'http'),
|
2019-02-01 14:43:22 +01:00
|
|
|
},
|
2019-03-13 22:44:01 +01:00
|
|
|
}
|