Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lilic/prometheus-lib-example
Example of how to avoid Prometheus globals in your library.
https://github.com/lilic/prometheus-lib-example
instrumentation library prometheus
Last synced: about 1 month ago
JSON representation
Example of how to avoid Prometheus globals in your library.
- Host: GitHub
- URL: https://github.com/lilic/prometheus-lib-example
- Owner: lilic
- License: apache-2.0
- Created: 2021-05-14T12:49:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-14T13:01:19.000Z (over 3 years ago)
- Last Synced: 2024-06-21T19:55:13.837Z (5 months ago)
- Topics: instrumentation, library, prometheus
- Language: Go
- Homepage:
- Size: 6.55 MB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prometheus-lib-example
This serves as an example of how to register metrics using promauto and new Prometheus registry, as to avoid using the global prometheus registry.
The content in the lib directory is the example of library, and fancy-app is the way one would import that library into the application.