About the Push Metrics REST API

Last updated on 12 January, 2022

You can use the LogicMonitor Push Metrics REST API to programmatically push metrics for multiple instances associated with a single resource and DataSource. You can also manage some aspects of the associated resource and DataSource.

Base URL:
Where ACCOUNTNAME is replaced with your LogicMonitor account name.


The Push Metrics REST API requires API token authentication. LogicMonitor REST API uses the same API token authentication. For more information, see Using LogicMonitor’s REST API.

Note: At a minimum, the role associated with the API-only user account must have permissions to manage resources and manage LogicModules. For more information on creating roles and API-only user accounts, see Roles and Users respectively.

Aggregation Interval

The Push Metrics REST API pushes datapoint metrics to instances once per minute. If data is sent frequently (sub-minute intervals), the values are cached, then aggregated using the aggregation method specified. The aggregated value is stored as the datapoint value.

LogicMonitor supports the following aggregation methods:

  • Average
  • Sum
  • Min
  • Max
  • Percentile
  • None (This is the latest value)

The behavior of each aggregation method when data is pushed at sub-minute intervals is exemplified in the following table.

Sub-minute Collection Time/Data SetStored Value for Each Aggregation Method
12:00:05 = 101
12:00:25 = 101
12:00:45 = 128
110330101128Dependent on the percentileValue specified*128
12:01:05 = 125
12:01:25 = 107
12:01:45 = 101
111333101125Dependent on the percentileValue specified*101
12:02:05 = 100
12:02:25 = 101
12:02:45 = 105
102306100105Dependent on the percentileValue specified*105
* If you specify “80” for the percentileValue and send 10 values within the minute (1, 2, 3, 4, 5, 6, 7, 8,10, 91), then the expected output is “8.4”.

For the gauge metric, these values will be stored as-is. For the counter metric, since it is calculating rate per second, the rate is based on the time difference between the prior and current timestamps.

The aggregation method is determined by the dataPointAggregationType field specified in the API request. For more information, see Ingesting Metrics with the Push Metrics REST API.

Metric data time limit can be up to ten minutes in the past to one minute in the future between the API caller and LogicMonitor. Data with timestamps outside this window are ignored. In addition, you cannot send data for an instance with a timestamp previous to any data already ingested by that instance.


The Push Metrics REST API consists of three endpoints:

Status Codes

The status codes returned by the Push Metrics REST API are detailed in About REST API v2.

In This Article