2 Commits

Author SHA1 Message Date
827fba7354 Add grafana to library
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m21s
2024-06-02 18:09:58 +01:00
dfe272a645 flake.lock: Update
Flake lock file updates:

• Updated input 'nixvim':
    'github:nix-community/nixvim/9a9d6c69d8be9c5fa66f0714de22564df72aaa96' (2024-06-01)
  → 'github:nix-community/nixvim/e58380adcddc450eb08c37760a3f282077386d19' (2024-06-01)
2024-06-02 14:52:11 +01:00
2 changed files with 11 additions and 4 deletions

6
flake.lock generated
View File

@@ -518,11 +518,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1717269089, "lastModified": 1717274692,
"narHash": "sha256-PUxRImLJThMBjC8reFM/EXfLrv95miC7U8euZyDqSns=", "narHash": "sha256-CnMCPxY9GfBAONN3BoWmPc36QV5Sv9uZFKH9VkE5KJI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "9a9d6c69d8be9c5fa66f0714de22564df72aaa96", "rev": "e58380adcddc450eb08c37760a3f282077386d19",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -42,6 +42,13 @@
enable = true; enable = true;
}; };
services.grafana = {
enable = true;
domain = "library.mesh.vimium.net";
port = 3000;
addr = "127.0.0.1";
};
services.prometheus = { services.prometheus = {
enable = true; enable = true;
port = 9001; port = 9001;
@@ -58,7 +65,7 @@
}; };
scrapeConfigs = [ scrapeConfigs = [
{ {
job_name = "library"; job_name = "node";
static_configs = [{ static_configs = [{
targets = [ targets = [
"127.0.0.1:${toString config.services.prometheus.exporters.node.port}" "127.0.0.1:${toString config.services.prometheus.exporters.node.port}"