pushgateway

This commit is contained in:
Luj 2023-07-16 16:08:20 +02:00
parent 6c832ca6cb
commit 20ac2a1ff5
8 changed files with 29 additions and 735 deletions

View file

@ -129,7 +129,7 @@ in
pkgs.nix-output-monitor
];
environment.PYTHONPATH = "${python.withPackages (_: [package])}/${python.sitePackages}";
environment.MASTER_URL = ''tcp:host=localhost:port=9989'';
environment.MASTER_URL = ''tcp:host=127.0.0.1:port=9989'';
environment.BUILDBOT_DIR = buildbotDir;
environment.WORKER_PASSWORD_FILE = config.sops.secrets.buildbot-nix-worker-password.path;

View file

@ -269,7 +269,7 @@ def build_config() -> dict[str, Any]:
c["db"] = {"db_url": os.environ.get("DB_URL", "sqlite:///state.sqlite")}
c["protocols"] = {"pb": {"port": "tcp:9989:interface=\\:\\:"}}
c["protocols"] = {"pb": {"port": "tcp:9989:interface=127.0.0.1"}}
c["buildbotURL"] = BUILDBOT_URL
c["collapseRequests"] = False