ops/nixos: enable bird-exporter-lfty

This commit is contained in:
Luke Granger-Brown 2021-08-31 02:26:50 +00:00
parent f7fbfa5436
commit 2d0a607383
2 changed files with 10 additions and 1 deletions

View file

@ -233,7 +233,7 @@ in {
WorkingDirectory = "/tmp";
SupplementaryGroups = "bird2";
ExecStart = ''
${pkgs.prometheus-bird-exporter}/bin/bird_exporter \
${depot.pkgs.prometheus-bird-exporter-lfty}/bin/bird_exporter \
-web.listen-address 0.0.0.0:9325 \
-bird.socket /var/run/bird-wg-endpoint.ctl \
-bird.v2=true \
@ -241,6 +241,7 @@ in {
'';
};
};
my.prometheus.additionalExporterPorts.bird-wg-endpoint-exporter = 9325;
services.lukegbgp.config.export = {
v4Extra = ''
route 92.118.30.0/24 via 92.118.28.252;

View file

@ -505,5 +505,13 @@ in {
'';
};
systemd.services.prometheus-bird-exporter.serviceConfig.ExecStart = ''
${depot.pkgs.prometheus-bird-exporter-lfty}/bin/bird_exporter \
-web.listen-address 0.0.0.0:9324 \
-bird.socket /var/run/bird.ctl \
-bird.v2=true \
-format.new=true
'';
system.stateVersion = "21.03";
}