Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServerCertificateFunc ¶
func GetServerCertificateFunc(certFile, keyFile string) func(*tls.ClientHelloInfo) (*tls.Certificate, error)
GetServerCertificateFunc returns a function for tls.Config.GetCertificate
func LoadKeyPair ¶
func LoadKeyPair(certFile, keyFile string) (*tls.Certificate, error)
LoadKeyPair reads and parses a public/private key pair from a pair of files. The files must contain PEM encoded data.
Types ¶
type Exporter ¶
func NewKvrocksExporter ¶
NewKvrocksExporter returns a new exporter of Kvrocks metrics.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect fetches new metrics from the KvrocksHost and updates the appropriate metrics.
func (*Exporter) CreateClientTLSConfig ¶
CreateClientTLSConfig verifies configured files and return a prepared tls.Config
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe outputs Redis metric descriptions.
type Options ¶
type Options struct { Password string Namespace string PasswordMap map[string]string ConfigCommandName string ClientCertFile string ClientKeyFile string CaCertFile string InclSystemMetrics bool SkipTLSVerification bool SetClientName bool IsCluster bool ExportClientsInclPort bool ConnectionTimeouts time.Duration MetricsPath string KvrocksMetricsOnly bool PingOnConnect bool Registry *prometheus.Registry BuildInfo BuildInfo }
Click to show internal directories.
Click to hide internal directories.