NixOS / hydra

Hydra, the Nix-based continuous build system
http://nixos.org/hydra
GNU General Public License v3.0
1.19k stars 304 forks source link

Prometheus metrics not started #1022

Open pinpox opened 3 years ago

pinpox commented 3 years ago

I followed the manual to enable the prometheus service for hydra-notify, but don't get any metrics. The relevant configuration looks like this:

    services.hydra.extraConfig = ''
      <hydra_notify>
        <prometheus>
          listen_address = 127.0.0.1
          port = 9199
        </prometheus>
      </hydra_notify>
    '';

I checked with netstat -tulpn on the host running hydra, but there is nothing listening on port 9199. Is this a bug or is additional configuration needed to get metrics?

grahamc commented 2 years ago

Hi there, what version of Hydra did you deploy? You may need to deploy Hydra directly from this repository.