mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 07:35:38 +00:00
add prom scraping to victoriametrics
allows us to not run vmagent when running victoriametrics
This commit is contained in:
parent
1d405e1828
commit
c7de16b14c
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user