forked from DGNum/infrastructure
feat(compute01/grafana): Add victoria* data sources
This commit is contained in:
parent
3678c24ed4
commit
3dd314e78c
2 changed files with 46 additions and 1 deletions
|
@ -2,7 +2,12 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: EUPL-1.2
|
# SPDX-License-Identifier: EUPL-1.2
|
||||||
|
|
||||||
{ config, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
meta,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
host = "grafana.dgnum.eu";
|
host = "grafana.dgnum.eu";
|
||||||
|
@ -62,6 +67,27 @@ in
|
||||||
auto_assign_org_role = "Admin";
|
auto_assign_org_role = "Admin";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
declarativePlugins = import ./plugins.nix { inherit pkgs; };
|
||||||
|
|
||||||
|
provision = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
datasources.settings.datasources = [
|
||||||
|
{
|
||||||
|
name = "VictoriaLogs";
|
||||||
|
type = "victoriametrics-logs-datasource";
|
||||||
|
access = "proxy";
|
||||||
|
url = "http://${meta.network.storage01.netbirdIp}:9428";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "VictoriaMetrics";
|
||||||
|
type = "victoriametrics-metrics-datasource";
|
||||||
|
access = "proxy";
|
||||||
|
url = "http://${meta.network.storage01.netbirdIp}:8428";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
19
machines/nixos/compute01/grafana/plugins.nix
Normal file
19
machines/nixos/compute01/grafana/plugins.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# SPDX-FileCopyrightText: 2025 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: EUPL-1.2
|
||||||
|
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
builtins.map pkgs.grafanaPlugins.grafanaPlugin [
|
||||||
|
{
|
||||||
|
pname = "victoriametrics-logs-datasource";
|
||||||
|
version = "0.14.3";
|
||||||
|
zipHash = "sha256-g/ntmNyWJ9h/eYpZ0gqiESvVfm2fU6/Ci8R7FHIV7AQ=";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
pname = "victoriametrics-metrics-datasource";
|
||||||
|
version = "0.13.1";
|
||||||
|
zipHash = "sha256-n1LskeOzp32LZS3PcsRh8FwQVBFVlzczfO2aGbEClSo=";
|
||||||
|
}
|
||||||
|
]
|
Loading…
Add table
Reference in a new issue