You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
783 B
25 lines
783 B
// +build !monitoring |
|
|
|
package monitoring |
|
|
|
import ( |
|
"fmt" |
|
|
|
"google.golang.org/grpc" |
|
|
|
"github.com/lightningnetwork/lnd/lncfg" |
|
) |
|
|
|
// GetPromInterceptors returns the set of interceptors for Prometheus |
|
// monitoring if monitoring is enabled, else empty slices. Monitoring is |
|
// currently disabled. |
|
func GetPromInterceptors() ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor) { |
|
return []grpc.UnaryServerInterceptor{}, []grpc.StreamServerInterceptor{} |
|
} |
|
|
|
// ExportPrometheusMetrics is required for lnd to compile so that Prometheus |
|
// metric exporting can be hidden behind a build tag. |
|
func ExportPrometheusMetrics(_ *grpc.Server, _ lncfg.Prometheus) error { |
|
return fmt.Errorf("lnd must be built with the monitoring tag to " + |
|
"enable exporting Prometheus metrics") |
|
}
|
|
|