Skip to content

Add config option to disable metrics endpoint#120

Open
Sparronator9999 wants to merge 1 commit into
mollyim:mainfrom
Sparronator9999:metrics-config
Open

Add config option to disable metrics endpoint#120
Sparronator9999 wants to merge 1 commit into
mollyim:mainfrom
Sparronator9999:metrics-config

Conversation

@Sparronator9999

Copy link
Copy Markdown

This pull request adds a new config option:

metrics = true

When set to false, MollySocket will not expose the /metrics endpoint. This is useful if you're not using the metrics for anything, and want to secure them from public access (see #69). The default value is left at true to preserve the previous MollySocket behaviour.

Note that I have almost never written anything in Rust - scrutinize my code accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant