exporter_shared

package module
v0.7.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 15 Imported by: 8

README

exporter_shared

GoDoc Go Report Card CLA assistant

Shared code for Percona Prometheus exporters.

Documentation

Overview

Package exporter_shared provides shared code for Percona Prometheus exporters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMetricsHandler added in v0.2.0

func DefaultMetricsHandler() http.Handler

DefaultMetricsHandler returns metrics handler for default Prometheus gatherer/registerer with logging and continuing on error. Handler is not protected by HTTP basic authentication - it is done by RunServer.

func RunServer

func RunServer(name, addr, path string, handler http.Handler)

RunServer runs server for exporter with given name (it is used on landing page) on given address, with HTTP basic authentication (if configured) and with given HTTP handler (that should be created with DefaultMetricsHandler or manually). Function never returns.

func TLSConfig added in v0.5.0

func TLSConfig() *tls.Config

TLSConfig returns a new tls.Config instance configured according to Percona's security baseline.

Types

This section is empty.

Directories

Path Synopsis
Package helpers provides test helpers for Prometheus exporters.
Package helpers provides test helpers for Prometheus exporters.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL