rpi.carlosedp.cluster-monit.../modules/traefik.jsonnet

18 lines
470 B
Plaintext
Raw Permalink Normal View History

2020-05-26 01:23:56 +02:00
local utils = import '../utils.libsonnet';
2019-08-08 22:09:53 +02:00
local k = import 'ksonnet/ksonnet.beta.4/k.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+:: {
2020-05-26 17:59:47 +02: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
},
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
}