Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created May 4, 2020 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LnL7/7666af126198abad8959f74f4274dadb to your computer and use it in GitHub Desktop.
Save LnL7/7666af126198abad8959f74f4274dadb to your computer and use it in GitHub Desktop.
{
systemd.services."prometheus-rabbitmq-exporter".serviceConfig.ExecStart = "${pkgs.prometheus-rabbitmq-exporter}/bin/rabbitmq_exporter";
systemd.services."prometheus-rabbitmq-exporter".wantedBy = [ "multi-user.target" ];
systemd.services."prometheus-rabbitmq-exporter".serviceConfig.User = "node-exporter";
systemd.services."prometheus-rabbitmq-exporter".serviceConfig.Group = "node-exporter";
systemd.services."prometheus-rabbitmq-exporter".environment.PUBLISH_PORT = "9419";
systemd.services."prometheus-rabbitmq-exporter".environment.RABBIT_CAPABILITIE = "bert,no_sort";
systemd.services."prometheus-rabbitmq-exporter".environment.RABBIT_EXPORTERS = "connections,exchange,node,queue";
systemd.services."prometheus-rabbitmq-exporter".environment.RABBIT_USER = "node-exporter";
systemd.services."prometheus-rabbitmq-exporter".environment.RABBIT_PASSWORD_FILE = "/run/keys/rabbitmq_exporter";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment