info

package
v5.6.16 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package info fetches Redis server information and statistics using the Redis INFO command.

The current implementation is tested with redis 3.2.3 More details on all the fields provided by the redis info command can be found here: http://redis.io/commands/INFO

`info.go` uses the Redis `INFO default` command for stats. This allows us to fetch all metrics at once and filter out undesired metrics based on user configuration on the client. The alternative would be to fetch each type as an independent `INFO` call, which has the potential of introducing higher latency (e.g., more round trip Redis calls).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(base mb.BaseMetricSet) (mb.MetricSet, error)

New creates new instance of MetricSet

Types

type MetricSet

type MetricSet struct {
	mb.BaseMetricSet
	// contains filtered or unexported fields
}

MetricSet for fetching Redis server information and statistics.

func (*MetricSet) Fetch

func (m *MetricSet) Fetch() (common.MapStr, error)

Fetch fetches metrics from Redis by issuing the INFO command.

Jump to

Keyboard shortcuts

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