get_series_tags: Get unique series tags for the metric.

Description Usage Arguments Value Examples

View source: R/get_series_tags.R

Description

The function determines time series collected for a given metric. For each time series it lists tags associated with the series, and last time the series was updated. The list of fetched time series is based on data stored on disk for the last 24 hours.

Usage

1
get_series_tags(metric, entity = NA, verbose = TRUE)

Arguments

metric

Required string argument. The name of the metric you want to get data for. For example, metric = "disk_used_percent".
To obtain a list of metrics collected by ATSD use the get_metrics function.

entity

Optional string argument. The name of the entity you want to get data for. If not provided, then data for all entities will be fetched for the specified metric. Obtain the list of entities and their tags with the get_entities function.

verbose

Optional boolean argument. If verbose = FALSE then all console output will be suppressed. By default, verbose = TRUE.

Value

A data frame. Each row of the data frame corresponds to a time series, and contains the series unique tags, and last time the series was updated. For more information view the package vignette: browseVignettes(package = "atsd").

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# get all time series and their tags collected by ATSD for the "disk_used_percent" metric
get_series_tags(metric = "disk_used_percent")

# get all time series and their tags for the "disk_used_percent" metric
# end "nurswgvml007" entity
get_series_tags(metric = "disk_used_percent", entity = "nurswgvml007")

## End(Not run)

atsd documentation built on May 2, 2019, 4:06 p.m.