mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Add Prometheus datasource for Grafana
This commit is contained in:
parent
c91913dd2c
commit
b1313c73ec
2 changed files with 8 additions and 0 deletions
|
@ -14,6 +14,8 @@ in serverSystemConfiguration {
|
|||
domain = fqdn;
|
||||
port = 8999;
|
||||
|
||||
provision = enabled {};
|
||||
|
||||
settings = {
|
||||
database.host = "/run/postgresql";
|
||||
database.type = "postgres";
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
{ config, ulib, ... }: with ulib;
|
||||
|
||||
serverSystemConfiguration {
|
||||
services.grafana.provision.datasources.settings.datasources = [{
|
||||
name = "Prometheus";
|
||||
type = "prometheus";
|
||||
url = "http://[::]:${toString config.services.prometheus.port}";
|
||||
}];
|
||||
|
||||
services.prometheus = enabled {
|
||||
port = 9000;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue