Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessMetrics ¶
func ProcessMetrics(prometheusAPI v1.API, metric string, metricObjects []metrics.MetricObject, dataDir string, timePeriod int, log *zap.Logger, inputOptions ...Option) error
ProcessMetrics queries the Prometheus API with the given metric object and outputs the returned data into CSV files prometheusAPI: the Prometheus client used to make API calls with metric: the current metric group being processed dataDir: the name of the directory that the CSV files will be written to timePeriod: the time, in minutes, to look back, starting from the current time, for the Prometheus query
Types ¶
Click to show internal directories.
Click to hide internal directories.