mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
grafana: Add victoriametrics dashboard
This commit is contained in:
parent
8a45686da7
commit
d7d28fa19f
3 changed files with 31 additions and 9 deletions
|
|
@ -42,7 +42,13 @@ in
|
|||
|
||||
services.victoriametrics = {
|
||||
enable = true;
|
||||
package = pkgs-unstable.victoriametrics;
|
||||
# The victoriametrics grafana-dashboard expects the version label to have the format `victoria-metrics-*`
|
||||
package = pkgs-unstable.victoriametrics.overrideAttrs (
|
||||
_: previousAttrs: {
|
||||
version = "victoria-metrics-" + previousAttrs.version;
|
||||
__intentionallyOverridingVersion = true;
|
||||
}
|
||||
);
|
||||
listenAddress = "localhost:${builtins.toString cfg.port}";
|
||||
extraOptions = [ "-selfScrapeInterval=15s" ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue