# Functions
Return the DSN as specified by the DATA_SOURCE* env vars, reading the appropriate configmap files for username and password.
NewDBContainerMonitor prepares a monitor that can be passed to prometheus as a Collector to collect container system(memory/CPU) metrics.
NewMonitor prepares a monitor that can be passed to prometheus as a Collector.
ReadConfig all agents should use ReadConfig or StartExporting which uses this function to ensure their MetricSet is parsed correctly and validated.
No description provided by the author
StartExportingContainerMetrics starts an metric exporter for cgroup and disk stats.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
DBContainerMonitor metrics followed http://google3/configs/monitoring/cloud_pulse_monarch/kubernetes/metrics_def_core this is a workaround if a platform does not provide system metrics(container CPU/memory, volumes) to DB users.
Specifies a metric within the MetricSet, its Name (which is also the column name that will provide its value), the Usage determines what kind of Metric this portion of the query represents
When specifying a histogram metric the defined column name will be used as the base name of buckets+2 columns that must be in the MetricSet's query.
A set of metrics that will be reported to prometheus Metrics/labels are derived from the columns of the query.
No description provided by the author
VolumeInfo provides required information to expose pod volume metrics.
VolumeMetrics specifies a pod volume metrics.
# Interfaces
Allow users to pass in the driver specific db connector without this code needing a direct dependency to potential C code.
# Type aliases
How a column value should be used.