mirror of
https://github.com/Noratrieb/vps.git
synced 2026-07-12 08:17:45 +02:00
add victoria logs, use both
This commit is contained in:
parent
b49a602213
commit
5a28c30d16
3 changed files with 22 additions and 1 deletions
|
|
@ -117,6 +117,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
declarativePlugins = [
|
||||
pkgs.grafanaPlugins.victoriametrics-logs-datasource
|
||||
];
|
||||
|
||||
provision = {
|
||||
enable = true;
|
||||
datasources.settings = {
|
||||
|
|
@ -144,6 +148,12 @@
|
|||
access = "proxy";
|
||||
url = "http://pyroscope.internal:4040";
|
||||
}
|
||||
{
|
||||
name = "victorialogs";
|
||||
type = "victoriametrics-logs-datasource";
|
||||
access = "proxy";
|
||||
url = "http://loki.internal:9428";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
@ -267,4 +277,8 @@
|
|||
createHome = true;
|
||||
};
|
||||
users.groups.pyroscope = { };
|
||||
|
||||
services.victorialogs = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue