Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( ProvidePrometheusConfig, ProvidePrometheusExporter, ProvideMeter, )
View Source
var ServerSet = wire.NewSet( NewTelemetryServer, )
Functions ¶
func ProvideMeter ¶
func ProvideMeter(exporter *prometheus.Exporter) *metric.Meter
func ProvidePrometheusConfig ¶
func ProvidePrometheusConfig() prometheus.Config
func ProvidePrometheusExporter ¶
func ProvidePrometheusExporter(config prometheus.Config) (*prometheus.Exporter, error)
Types ¶
type TelemetryServer ¶
type TelemetryServer struct {
// contains filtered or unexported fields
}
func NewTelemetryServer ¶
func NewTelemetryServer(exporter *prometheus.Exporter, cfg *opt.Config) *TelemetryServer
func (*TelemetryServer) ServeHTTP ¶
func (ts *TelemetryServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.