package
0.0.0-20200304101240-4221fa50f91d
Repository: https://github.com/moee/sql_exporter.git
Documentation: pkg.go.dev
# Functions
Load attempts to parse the given config file and return a Config object.
# Structs
CollectorConfig defines a set of metrics and how they are collected.
Config is a collection of jobs and collectors.
GlobalConfig contains globally applicable defaults.
JobConfig defines a set of collectors to be executed on a set of targets.
MetricConfig defines a Prometheus metric, the SQL query to populate it and the mapping of columns to metric keys/values.
QueryConfig defines a named query, to be referenced by one or multiple metrics.
StaticConfig defines a set of targets and optional labels to apply to the metrics collected from them.
TargetConfig defines a DSN and a set of collectors to be executed on it.
# Type aliases
Secret special type for storing secrets.