Prometheus
LigningUserVault integrates with Prometheus via the gin-metrics middleware to provide real-time metrics about the application's performance and usage.
π Default Metrics
Metric
Type
Description
βοΈ Custom Metrics
goCopy codegaugeMetric := &ginmetrics.Metric{
Type: ginmetrics.Gauge,
Name: "example_gauge_metric",
Description: "an example of gauge type metric",
Labels: []string{"label1"},
}
// Add metric to global monitor object
_ = ginmetrics.GetMonitor().AddMetric(gaugeMetric)π Accessing Metrics
Last updated