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
./webpass.nix
./mosquitto.nix
./prometheus
# ./bridge.nix
# ./gha.nix
# ./sync.nix

View file

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