Use proper prometheus url in grafana
This commit is contained in:
parent
b9d52105fb
commit
c094cf48ce
|
@ -46,7 +46,9 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/
|
# https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/
|
||||||
alerting.contactPoints.settings.contactPoints = [{
|
alerting.contactPoints.settings = {
|
||||||
|
apiVersion = 1;
|
||||||
|
contactPoints = [{
|
||||||
name = "main";
|
name = "main";
|
||||||
receivers = [
|
receivers = [
|
||||||
{
|
{
|
||||||
|
@ -65,18 +67,25 @@ in
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}];
|
}];
|
||||||
|
};
|
||||||
|
|
||||||
alerting.policies.settings.policies = [{
|
alerting.policies.settings = {
|
||||||
|
apiVersion = 1;
|
||||||
|
policies = [{
|
||||||
receiver = "main";
|
receiver = "main";
|
||||||
}];
|
}];
|
||||||
|
};
|
||||||
|
|
||||||
datasources.settings.datasources = [{
|
datasources.settings = {
|
||||||
|
apiVersion = 1;
|
||||||
|
datasources = [{
|
||||||
name = "Prometheus";
|
name = "Prometheus";
|
||||||
type = "prometheus";
|
type = "prometheus";
|
||||||
access = "proxy";
|
access = "proxy";
|
||||||
url = "prometheus.moonythm.dev";
|
url = "https://prometheus.moonythm.dev";
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
# }}}
|
# }}}
|
||||||
};
|
};
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in a new issue