Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Interval int `json:"interval"`
}
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func NewExporter ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics() *Metrics
func (*Metrics) GetSwitch ¶
func (m *Metrics) GetSwitch(key string) *SwitchMetrics
type NsdpValues ¶
type NsdpValues map[string]interface{}
type SwitchMetrics ¶
type SwitchMetrics struct {
Metric map[string]prometheus.Gauge
}
func NewSwitchMetrics ¶
func NewSwitchMetrics() *SwitchMetrics
func (*SwitchMetrics) AddMetric ¶
func (sm *SwitchMetrics) AddMetric(name, help, pretty string)
func (*SwitchMetrics) AddPortMetric ¶
func (sm *SwitchMetrics) AddPortMetric(name, help, pretty string, port int)
func (*SwitchMetrics) SetMetric ¶
func (sm *SwitchMetrics) SetMetric(name string, value uint64)
func (*SwitchMetrics) SetPortMetric ¶
func (sm *SwitchMetrics) SetPortMetric(name string, port int, value uint64)
Click to show internal directories.
Click to hide internal directories.