add prom scraping to victoriametrics

allows us to not run vmagent when running victoriametrics
This commit is contained in:
Noah Masur 2024-06-29 01:22:59 +00:00
parent 1d405e1828
commit c7de16b14c
No known key found for this signature in database

View File

@ -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" ];