Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabelRename ¶
type LabelRename struct { MatchRegex string `json:"matchRegex"` RenameLabel string `json:"renameLabel"` Pattern regexp.Regexp }
LabelRename struct
type Metric ¶
type Metric struct { PromDesc PromDesc `json:"promDesc"` PromType string `json:"promType"` ResultKey string `json:"resultKey"` OkValue string `json:"okValue"` ResultPath string `json:"resultPath"` Page string `json:"page"` Service string `json:"service"` Action string `json:"action"` ActionArgument *ActionArg `json:"actionArgument"` Desc *prometheus.Desc Type prometheus.ValueType Value float64 MetricResult []map[string]interface{} //filled during collect PromResult []*PrometheusResult // contains filtered or unexported fields }
Metric struct
type MetricsFile ¶
type MetricsFile struct { LabelRenames []*LabelRename `json:"labelRenames"` Metrics []*Metric `json:"metrics"` }
MetricsFile struct
type PromDesc ¶
type PromDesc struct { FqName string `json:"fqName"` Help string `json:"help"` VarLabels []string `json:"varLabels"` FixedLabels map[string]string `json:"fixedLabels"` }
PromDesc struct
type PrometheusResult ¶
type PrometheusResult struct { PromDesc *prometheus.Desc PromValueType prometheus.ValueType Value float64 LabelValues []string }
Click to show internal directories.
Click to hide internal directories.