ajouter prometheus à configuration.nix; changer l'adresse d'ecoute

This commit is contained in:
hackens server 2022-04-25 01:26:15 +02:00
parent 63ee851b2d
commit 7ab97c1643
2 changed files with 2 additions and 1 deletions

View file

@ -13,6 +13,7 @@
./wiki.nix ./wiki.nix
./webpass.nix ./webpass.nix
./mosquitto.nix ./mosquitto.nix
./prometheus
# ./bridge.nix # ./bridge.nix
# ./gha.nix # ./gha.nix
# ./sync.nix # ./sync.nix

View file

@ -1,10 +1,10 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
{ {
imports = [ ../modules/mqtt2prometheus ]; imports = [ ../modules/mqtt2prometheus ];
networking.firewall.allowedTCPPorts = [ 9090 ];
services = { services = {
prometheus = { prometheus = {
enable = true; enable = true;
listenAddress = "127.0.0.1";
scrapeConfigs = [ scrapeConfigs = [
{ {
job_name = "mqtt_listener"; job_name = "mqtt_listener";