mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 14:35:37 +00:00
fix: failure to provision
This commit is contained in:
parent
3cff7e090c
commit
de1337bf58
@ -1,7 +1,7 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
|
||||
promUid = "f4988a80-680a-4f15-ad2d-2732159f6f63";
|
||||
promUid = "victoriametrics";
|
||||
|
||||
in {
|
||||
|
||||
@ -16,18 +16,19 @@ in {
|
||||
};
|
||||
provision = {
|
||||
enable = true;
|
||||
datasources.settings = [{
|
||||
datasources.settings.datasources = [{
|
||||
name = "VictoriaMetrics";
|
||||
type = "prometheus";
|
||||
access = "direct";
|
||||
access = "proxy";
|
||||
url =
|
||||
"http://localhost${config.services.victoriametrics.listenAddress}";
|
||||
uid = promUid;
|
||||
}];
|
||||
dashboards.settings.providers = [{
|
||||
name = "default";
|
||||
options.path =
|
||||
builtins.toPath (pkgs.formats.yaml { }).generate "grafana.yml" {
|
||||
name = "test";
|
||||
type = "file";
|
||||
options.path = "${
|
||||
(pkgs.writeTextDir "dashboards/dashboard.json" (builtins.toJSON {
|
||||
annotations = {
|
||||
list = [{
|
||||
builtIn = 1;
|
||||
@ -473,8 +474,8 @@ in {
|
||||
uid = promUid;
|
||||
};
|
||||
editorMode = "code";
|
||||
"expr" =
|
||||
''zfs_dataset_used_bytes{name="tank/video",job="swan"}'';
|
||||
"expr" = ''
|
||||
zfs_dataset_used_bytes{name="tank/video",job="swan"}'';
|
||||
legendFormat = "__auto";
|
||||
range = true;
|
||||
refId = "A";
|
||||
@ -631,8 +632,8 @@ in {
|
||||
uid = promUid;
|
||||
};
|
||||
editorMode = "code";
|
||||
"expr" =
|
||||
''increase(zfs_dataset_used_bytes{name="tank"}[30d])'';
|
||||
"expr" = ''
|
||||
increase(zfs_dataset_used_bytes{name="tank"}[30d])'';
|
||||
hide = false;
|
||||
legendFormat = "Past Month";
|
||||
range = true;
|
||||
@ -688,7 +689,8 @@ in {
|
||||
matcher = {
|
||||
id = "byName";
|
||||
options = "localhost:${
|
||||
builtins.toString config.services.jellyseerr.port
|
||||
builtins.toString
|
||||
config.services.jellyseerr.port
|
||||
}";
|
||||
};
|
||||
properties = [
|
||||
@ -895,7 +897,7 @@ in {
|
||||
value = [{
|
||||
targetBlank = true;
|
||||
title = "";
|
||||
url = "https://${config.hostname.metrics}";
|
||||
url = "https://${config.hostnames.metrics}";
|
||||
}];
|
||||
}
|
||||
];
|
||||
@ -2148,10 +2150,11 @@ in {
|
||||
timepicker = { };
|
||||
timezone = "";
|
||||
title = "Main";
|
||||
uid = "wcZar5aaa";
|
||||
uid = "main";
|
||||
version = 60;
|
||||
weekStart = "";
|
||||
};
|
||||
}))
|
||||
}/dashboards";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user