Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to publish metrics on service startup #746

Open
nep7un opened this issue Nov 3, 2022 · 0 comments
Open

how to publish metrics on service startup #746

nep7un opened this issue Nov 3, 2022 · 0 comments

Comments

@nep7un
Copy link

nep7un commented Nov 3, 2022

We have a registry class like in the example docs: https://www.app-metrics.io/getting-started/fundamentals/recording-metrics/
We injected IMetrics to all class where a metrics is updated, and referencing the static metrics options from the registry.

We would like to publish all the registry entries to /metrics during our ASP.NET service bootstrap, is there an easy way to do it?

Somehow we need to publish all the metrics, to make sure they exists, even if no event is recorded.

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

No branches or pull requests

1 participant