Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Namespace for all metrics. Namespace = "custom" // Subsystem(s). Exporter = "exporter" )
Metric name parts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Metrics map[string]MetricsItem
}
type ConfigYaml ¶
type ConfigYaml struct {
Credentials []CredentialsItem `yaml:"credentials"`
Metrics []MetricsItemYaml `yaml:"metrics"`
}
type CredentialsItem ¶
type CredentialsUser ¶
func (CredentialsUser) GidInt ¶
func (c CredentialsUser) GidInt() uint32
func (CredentialsUser) UidInt ¶
func (c CredentialsUser) UidInt() uint32
type MetricsItem ¶
type MetricsItem struct {
Name string
Commands []string
Credential CredentialsItem
Mapping []string
Separator string
Value_name string
Value_type prometheus.ValueType
}
func (MetricsItem) CredentialUser ¶
func (m MetricsItem) CredentialUser() *CredentialsUser
func (MetricsItem) SeparatorValue ¶
func (m MetricsItem) SeparatorValue() string
type MetricsItemYaml ¶
Click to show internal directories.
Click to hide internal directories.