Merge branch 'master' of github.com:/kropatz/nix-config
This commit is contained in:
@@ -35,6 +35,8 @@ in
|
|||||||
url = "http://127.0.0.1:${toString config.services.prometheus.port}";
|
url = "http://127.0.0.1:${toString config.services.prometheus.port}";
|
||||||
type = "prometheus";
|
type = "prometheus";
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
|
# This has to match the prometheus scrape interval, otherwise the $__rate_interval variable wont work.
|
||||||
|
jsonData.timeInterval = "60s";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "loki";
|
name = "loki";
|
||||||
@@ -69,6 +71,7 @@ in
|
|||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 9000;
|
port = 9000;
|
||||||
|
globalConfig.scrape_interval = "1m";
|
||||||
#stateDir = "../../${base}/prometheus";
|
#stateDir = "../../${base}/prometheus";
|
||||||
exporters = {
|
exporters = {
|
||||||
node = {
|
node = {
|
||||||
|
|||||||
Reference in New Issue
Block a user