Versions in this module Expand all Collapse all v1 v1.0.1 Oct 25, 2022 v1.0.0 Nov 21, 2021 Changes in this version + func GetServerCertificateFunc(certFile, keyFile string) func(*tls.ClientHelloInfo) (*tls.Certificate, error) + func LoadKeyPair(certFile, keyFile string) (*tls.Certificate, error) + func LoadPwdFile(passwordFile string) (map[string]string, error) + type BuildInfo struct + CommitSha string + Date string + Version string + type Exporter struct + func NewKvrocksExporter(kvrocksURI string, opts Options) (*Exporter, error) + func (e *Exporter) Collect(ch chan<- prometheus.Metric) + func (e *Exporter) CreateClientTLSConfig() (*tls.Config, error) + func (e *Exporter) Describe(ch chan<- *prometheus.Desc) + func (e *Exporter) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Options struct + BuildInfo BuildInfo + CaCertFile string + ClientCertFile string + ClientKeyFile string + ConfigCommandName string + ConnectionTimeouts time.Duration + ExportClientsInclPort bool + InclSystemMetrics bool + IsCluster bool + KvrocksMetricsOnly bool + MetricsPath string + Namespace string + Password string + PasswordMap map[string]string + PingOnConnect bool + Registry *prometheus.Registry + SetClientName bool + SkipTLSVerification bool