forked from DGNum/infrastructure
feat(storage01): Init victoria-metrics DB
This commit is contained in:
parent
969f59fbc4
commit
4a102117a4
2 changed files with 17 additions and 0 deletions
|
@ -18,6 +18,7 @@ lib.extra.mkConfig {
|
||||||
"peertube"
|
"peertube"
|
||||||
"prometheus"
|
"prometheus"
|
||||||
"redirections"
|
"redirections"
|
||||||
|
"victoria-metrics"
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
|
16
machines/storage01/victoria-metrics.nix
Normal file
16
machines/storage01/victoria-metrics.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
let
|
||||||
|
host = "victoria-metrics.dgnum.eu";
|
||||||
|
port = 9099;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
services.victoriametrics = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
listenAddress = "127.0.0.1:${builtins.toString port}";
|
||||||
|
};
|
||||||
|
|
||||||
|
dgn-web.simpleProxies.victoria-metrics = {
|
||||||
|
inherit host port;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue