Skip to content

feat: move metrics server config to the policy file#1572

Merged
Xe merged 8 commits intomainfrom
Xe/metrics-policy-file
Apr 21, 2026
Merged

feat: move metrics server config to the policy file#1572
Xe merged 8 commits intomainfrom
Xe/metrics-policy-file

Conversation

@Xe
Copy link
Copy Markdown
Contributor

@Xe Xe commented Apr 21, 2026

This changes how the metrics server works so that it's defined in the policy file instead of in command line flags. As a transition mechanism, command line flags will be translated to the internal values the policy file parser creates.

Binding to a TCP socket looks like this:

metrics:
  bind: ":9090"
  network: "tcp"

If you want to bind metrics to a Unix socket, make sure to set the network to unix and add a socket mode:

metrics:
  bind: "/tmp/anubis_metrics.sock"
  network: unix
  socketMode: "0700" # must be a string

Checklist:

  • Added a description of the changes to the [Unreleased] section of docs/docs/CHANGELOG.md
  • Added test cases to the relevant parts of the codebase
  • Ran integration tests npm run test:integration (unsupported on Windows, please use WSL)
  • All of my commits have verified signatures

Xe added 7 commits April 21, 2026 14:05
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe self-assigned this Apr 21, 2026
Comment thread internal/setuplistener.go Fixed
Comment thread internal/setuplistener_test.go Fixed
Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe merged commit d5ccf9c into main Apr 21, 2026
23 checks passed
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.

2 participants