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
|
./wiki.nix
|
||||||
./webpass.nix
|
./webpass.nix
|
||||||
./mosquitto.nix
|
./mosquitto.nix
|
||||||
|
./prometheus
|
||||||
# ./bridge.nix
|
# ./bridge.nix
|
||||||
# ./gha.nix
|
# ./gha.nix
|
||||||
# ./sync.nix
|
# ./sync.nix
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Add table
Reference in a new issue