Skip to content

Conversation

jpds
Copy link
Contributor

@jpds jpds commented May 19, 2024

Currently, the startup logs look like this:

level=info ts=2024-05-19T16:03:41.578Z caller=unbound_exporter.go:551 Startingunbound_exporter=(MISSING)

This change matches the node_exporter code, and looks like this:

level=info ts=2024-05-19T16:23:49.275Z caller=unbound_exporter.go:552 msg="Starting unbound_exporter" version="(version=, branch=, revision=d015a196b8f51a7fca8692db07590e64ecee0eed-modified)"

Version information can be embedded into the Go binary using ldflags: https://github.com/NixOS/nixpkgs/blob/23e46d7bdde6c2e048d490e1de0fb9391034cf6c/pkgs/servers/monitoring/prometheus/node-exporter.nix#L27-L35 - I do not know where to add this to this project.

@pgporada pgporada mentioned this pull request May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants