Merge pull request #6224 from Roasbeef/prometheus-latency-histograms

monitoring+cfg: add new option to export gRPC perf metrics
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2022-02-16 16:38:51 -08:00
commit 9a50cc95b7
4 files changed
+26

No files matched your search

+6
View File
@@ -13,6 +13,12 @@ type Prometheus struct {
// Enable indicates whether to export lnd gRPC performance metrics to
// Prometheus. Default is false.
Enable bool `long:"enable" description:"enable Prometheus exporting of lnd gRPC performance metrics."`
// PerfHistograms indicates if the additional histogram information for
// latency, and handling time of gRPC calls should be enabled. This
// generates additional data, and consume more memory for the
// Prometheus server.
PerfHistograms bool `long:"perfhistograms" description:"enable additional histogram to track gRPC call processing performance (latency, etc)"`
}
// DefaultPrometheus is the default configuration for the Prometheus metrics