Documentation
¶
Index ¶
- func BuildMetrics(dir, configPath, pollerName string, opts *Options, ...) (map[string]Counter, conf.Remote)
- func CategorizeCounters(counters map[string]Counter) (map[string]Counter, map[string]Counter)
- func FetchAndCategorizePrometheusMetrics(promURL string) (map[string]bool, map[string]bool, error)
- func GenerateCiscoSwitchCounterTemplate(counters map[string]Counter, version string)
- func GenerateCounters(dir string, counters map[string]Counter, collectorName string, ...) map[string]Counter
- func GenerateESeriesCounterTemplate(counters map[string]Counter, version string)
- func GenerateOntapCounterTemplate(counters map[string]Counter, version string)
- func GenerateStorageGridCounterTemplate(counters map[string]Counter, version string)
- func LogErrAndExit(err error)
- func MergeCounters(restCounters map[string]Counter, zapiCounters map[string]Counter) map[string]Counter
- func ProcessExternalCounters(dir string, counters map[string]Counter, metricsPanelMap map[string]PanelData) map[string]Counter
- func ProcessRestCounters(dir string, client *rest.Client, metricsPanelMap map[string]PanelData) map[string]Counter
- func ProcessZapiCounters(dir string, client *zapi.Client, metricsPanelMap map[string]PanelData) map[string]Counter
- func ValidateMetrics(documentedRest, documentedZapi map[string]Counter, ...) error
- type Counter
- type CounterMetaData
- type CounterTemplate
- type Counters
- type MetricDef
- type Options
- type PanelData
- type PanelDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMetrics ¶
func CategorizeCounters ¶
func GenerateCounters ¶
func LogErrAndExit ¶
func LogErrAndExit(err error)
func MergeCounters ¶
func ProcessExternalCounters ¶
func ProcessRestCounters ¶
func ProcessRestCounters(dir string, client *rest.Client, metricsPanelMap map[string]PanelData) map[string]Counter
ProcessRestCounters parse rest and restperf templates
Types ¶
type Counter ¶
type Counter struct {
Object string `yaml:"-"`
Name string `yaml:"Name"`
Description string `yaml:"Description"`
APIs []MetricDef `yaml:"APIs"`
Panels []PanelDef `yaml:"Panels"`
Labels []string `yaml:"Labels"`
}
func (Counter) PanelHeader ¶
type CounterMetaData ¶
type CounterTemplate ¶
type CounterTemplate struct {
Counters []Counter
CounterMetaData CounterMetaData
}
type MetricDef ¶
type MetricDef struct {
API string `yaml:"API"`
Endpoint string `yaml:"Endpoint"`
ONTAPCounter string `yaml:"ONTAPCounter"`
CiscoCounter string `yaml:"CiscoCounter"`
SGCounter string `yaml:"SGCounter"`
ESeriesCounter string `yaml:"ESeriesCounter"`
Template string `yaml:"Template"`
Unit string `yaml:"Unit"`
Type string `yaml:"Type"`
BaseCounter string `yaml:"BaseCounter"`
}
Click to show internal directories.
Click to hide internal directories.