Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCloudFoundryRedisBindings ¶
func GetCloudFoundryRedisBindings() (addrs, passwords, aliases []string)
func LoadRedisArgs ¶
loadRedisArgs loads the configuration for which redis hosts to monitor from either the environment or as passed from program arguments. Returns the list of host addrs, passwords, and their aliases.
Types ¶
type Exporter ¶
Exporter implements the prometheus.Exporter interface, and exports Redis metrics.
func NewRedisExporter ¶
func NewRedisExporter(host RedisHost, namespace, checkSingleKeys, checkKeys string) (*Exporter, error)
NewRedisExporter returns a new exporter of Redis metrics. note to self: next time we add an argument, instead add a RedisExporter struct
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect fetches new metrics from the RedisHost and updates the appropriate metrics.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe outputs Redis metric descriptions.
Click to show internal directories.
Click to hide internal directories.