Exposing Metrics
Let’s learn how to expose our application’s metrics.
We'll cover the following
Collecting metrics is a totally different task from exposing them for Prometheus to collect them. This lesson shows how to make the metrics available for collection.
Coding example
The code of samplePro.go
is as follows:
Get hands-on with 1400+ tech skills courses.