mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
grafana: Patch victoria* dashboards to use nixpkgs' version format
This commit is contained in:
parent
797651e316
commit
9448690045
3 changed files with 29 additions and 39 deletions
|
|
@ -1,9 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.custom.web-services.victoriametrics;
|
||||
in
|
||||
|
|
@ -42,13 +37,6 @@ in
|
|||
|
||||
services.victoriametrics = {
|
||||
enable = true;
|
||||
# The victoriametrics grafana-dashboard expects the version label to have the format `victoria-metrics-*`
|
||||
package = pkgs.victoriametrics.overrideAttrs (
|
||||
_: previousAttrs: {
|
||||
version = "victoria-metrics-${previousAttrs.version}";
|
||||
__intentionallyOverridingVersion = true;
|
||||
}
|
||||
);
|
||||
listenAddress = "localhost:${toString cfg.port}";
|
||||
extraOptions = [
|
||||
"-selfScrapeInterval=15s"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue