k9_post_metric: Posts a metric value to Datadog

Description Usage Arguments Details See Also

Description

This end point allows you to post time-series data that can be graphed on Datadog’s dashboards or queried from any time period.

Usage

1
k9_post_metric(metric, metric_type, value, tags = list(), interval = NULL)

Arguments

metric

the name of the time series

metric_type

type of your metric either: gauge, rate, or count. Optional, default=gauge

value

the numeric value to post

tags

a list of tags associated with the metric.

interval

if the type of the metric is rate or count, define the corresponding interval. Optional, default=None

Details

The Datadog API uses resource-oriented URLs, uses status codes to indicate the success or failure of requests and returns JSON from all requests. With this method you can post counters, gauges to measure the value of a particular thing over time and rates that represent the derivative of a metric, it’s the value variation of a metric on a defined time interval.

See Also

http://docs.datadoghq.com/api/?lang=console#metrics http://docs.datadoghq.com/graphing/ https://docs.datadoghq.com/developers/metrics/#metric-types


datadogr documentation built on May 2, 2019, 6:04 a.m.