Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
update api docs url
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik committed Aug 25, 2016
1 parent 9209f37 commit 727268d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ Queue up a metric with a specified source:

queue.add cpu: {source: 'app1', value: 92.6}

A complete [list of metric attributes](http://dev.librato.com/v1/metrics) is available in the [API documentation](http://dev.librato.com/v1).
A complete [list of metric attributes](https://www.librato.com/docs/api/#metric-attributes) is available in the [API documentation](https://www.librato.com/docs/api/).

Send currently queued measurements to Metrics:

queue.submit

## Aggregate Measurements

If you are measuring something very frequently e.g. per-request in a web application (order mS) you may not want to send each individual measurement, but rather periodically send a [single aggregate measurement](http://dev.librato.com/v1/post/metrics#gauge_specific), spanning multiple seconds or even minutes. Use an `Aggregator` for this.
If you are measuring something very frequently e.g. per-request in a web application (order mS) you may not want to send each individual measurement, but rather periodically send a [single aggregate measurement](https://www.librato.com/docs/api/#submit-metrics), spanning multiple seconds or even minutes. Use an `Aggregator` for this.

Aggregate a simple gauge metric named `response_latency`:

Expand Down Expand Up @@ -216,11 +216,12 @@ Get the 5 minute moving average for `temperature` for the last hour, assuming te

data = Librato::Metrics.get_composite 'moving_average(mean(series("temperature", "*"), {size: "5"}))', start_time: Time.now.to_i - 60*60, resolution: 300

There are many more options supported for querying, take a look at the [REST API docs](http://dev.librato.com/v1/get/metrics/:name) or the individual method documentation for more details.
There are many more options supported for querying, take a look at the
[REST API docs](https://www.librato.com/docs/api/#retrieve-metrics) or the individual method documentation for more details.

## Setting Metric Properties

Setting custom [properties](http://dev.librato.com/v1/metrics#metric_properties) on your metrics is easy:
Setting custom [properties](https://www.librato.com/docs/api/#metric-attributes) on your metrics is easy:

# assign a period and default color
Librato::Metrics.update_metric :temperature, period: 15, attributes: { color: 'F00' }
Expand Down

0 comments on commit 727268d

Please sign in to comment.