Come join our live training webinar every other Wednesday at 11am PST and hear LogicMonitor experts explain best practices and answer common questions. We understand these are uncertain times, and we are here to help!
For a resource to receive metrics via the Push Metrics REST API, the resource must be associated with a DataSource. The Datasource must be created initially via Push Metrics Rest API. For more information, see Ingesting Metrics with the Push Metrics REST API.
DataSources created by the Push Metrics REST API are stored along with the other DataSources in the LogicMonitor platform and are managed like the existing DataSources.
By default, DataSources created by the Push Metrics REST API are set under the “PushModules” DataSource group. For more information, see Ingesting Metrics with the Push Metrics REST API.
You can override this setting with the API query.
You can manage the DataSources created via Push Metrics REST API from the Settings page. You can also set the thresholds on the DataSource datapoints, which can be referenced in alert rules.
However, the DataSource has a few unique attributes that allow them to support push model data ingestion. These unique attributes and limitations are discussed in the following sections.
DataSources that push metrics to resources will have a designation of “push_modules” as their collection method type (specified by the Collector field in a DataSource designation). You cannot modify the DataSource designation via the interface.
DataSources created by the Push Metrics API support multiple instances. However, you cannot discover the instances by the Active Discovery Method as the DataSource is dependent on the instance information; and the metrics pushed via the API request.
LogicMonitor uses identical logic to disable the other DataSource configurations relevant only for the pull model of data collection.For example, LogicMonitor disables the ability to set a collection interval and the ability to alert on the absence of data (known as No Data alerts).
All DataSources created by the Push Metrics REST API will have an AppliesTo statement that explicitly associates that DataSource with the resource that accompanies it in the API call. For example, if an API call instructs the Push Metrics REST API to ingest metrics for resource A using DataSource B:
The PushDS1cstern DataSource shown in the image has an AppliesTo statement that explicitly associates it with the resource (via the assignment of the system.pushmodules property to the resource) that accompanies it in the API call. This AppliesTo statement is not available for editing.
Datapoints are created by the API request and cannot be modified or deleted from the LogicMonitor interface. In addition, only complex datapoints can be added to the definitions of DataSources created by the Push Metrics REST API. You cannot edit the datapoints created by the API request; however, you can apply thresholds to the datapoints.
Note: LogicMonitor automatically creates graphs for every datapoint created by the API request.
You cannot discover the instances created by the API request using LogicMonitor’s Active Discovery process. In addition, you can manually delete the instances created by a Push Metrics DataSource from the portal interface or delete instances using standard REST API. However, the instances cannot be deleted via the Push Metrics REST API.
Note: The Push Metrics REST API has an endpoint dedicated to updating an instance’s properties. For more information, see Updating Instance Properties with the Push Metrics REST API.
Push Metrics DataSources can be deleted via the LogicMonitor interface in the same manner as other DataSources; you cannot delete Push Metrics DataSources via the Push Metrics REST API. Once deleted, any data pushed to that DataSource is ignored.
In This Article