mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 15:00:14 +00:00
add prom scraping to victoriametrics
allows us to not run vmagent when running victoriametrics
This commit is contained in:
@ -38,6 +38,10 @@ in
|
||||
|
||||
config = {
|
||||
|
||||
services.victoriametrics.extraOptions = [
|
||||
"-promscrape.config=${(pkgs.formats.yaml { }).generate "scrape.yml" prometheusConfig}"
|
||||
];
|
||||
|
||||
systemd.services.vmauth = lib.mkIf config.services.victoriametrics.enable {
|
||||
description = "VictoriaMetrics basic auth proxy";
|
||||
after = [ "network.target" ];
|
||||
|
Reference in New Issue
Block a user