Versions in this module Expand all Collapse all v1 v1.0.0 Mar 2, 2023 Changes in this version + func GetConfigForClientFunc(certFile, keyFile, caCertFile string) func(*tls.ClientHelloInfo) (*tls.Config, error) + func GetServerCertificateFunc(certFile, keyFile string) func(*tls.ClientHelloInfo) (*tls.Certificate, error) + func LoadCAFile(caFile string) (*x509.CertPool, 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 NewRedisExporter(redisURI string, opts Options) (*Exporter, error) + func (e *Exporter) Collect(ch chan<- prometheus.Metric) + func (e *Exporter) CreateClientTLSConfig() (*tls.Config, error) + func (e *Exporter) CreateServerTLSConfig(certFile, keyFile, caCertFile, minVersionString string) (*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 + CheckKeyGroups string + CheckKeys string + CheckKeysBatchSize int64 + CheckSingleKeys string + CheckSingleStreams string + CheckStreams string + ClientCertFile string + ClientKeyFile string + ConfigCommandName string + ConnectionTimeouts time.Duration + CountKeys string + ExportClientList bool + ExportClientsInclPort bool + InclConfigMetrics bool + InclSystemMetrics bool + IsCluster bool + IsTile38 bool + LuaScript map[string][]byte + MaxDistinctKeyGroups int64 + MetricsPath string + Namespace string + Password string + PasswordMap map[string]string + PingOnConnect bool + RedactConfigMetrics bool + RedisMetricsOnly bool + Registry *prometheus.Registry + SetClientName bool + SkipTLSVerification bool + User string