grafana/prometheus provisioning

This commit is contained in:
Motiejus Jakštys 2023-08-06 00:11:16 +03:00
parent 665e79a984
commit a5b1b4637f
1 changed files with 12 additions and 0 deletions

View File

@ -111,6 +111,18 @@
grafana = {
enable = true;
provision = {
enable = true;
datasources.settings = {
apiVersion = 1;
datasources = [{
name = "Prometheus";
type = "prometheus";
access = "proxy";
url = "http://127.0.0.1:${toString config.services.prometheus.port}";
}];
};
};
settings = {
server = {
# TODO tailscale service?