ajouter prometheus à configuration.nix; changer l'adresse d'ecoute
This commit is contained in:
parent
63ee851b2d
commit
7ab97c1643
2 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
|||
./wiki.nix
|
||||
./webpass.nix
|
||||
./mosquitto.nix
|
||||
./prometheus
|
||||
# ./bridge.nix
|
||||
# ./gha.nix
|
||||
# ./sync.nix
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue