Getting specific datapoints using the REST API
In this post: https://community.logicmonitor.com/archive-13/getting-datapoint-data-via-rest-api-1249 … @Sarah Terry provides information on how to get data for just specific datapoints, reducing load on the API, minimizing network traffic and reducing deserialization load on the client. While this is VERY useful, it is not currently possible to do this for graph data. An example of such a call would be: {{logicmonitor_url}}/device/devicedatasourceinstances/229505122/graphs/-1/data?datapoints=sentpkts …which brings back the default graph data (all datapoints), though this would also work for a specific graph. The advantage of this approach to data fetch is that it permits the retrieval of virtual datapoints. In order to achieve the same benefits, we (Panoramic Data) request that the same datapoint filtering is added to the {{logicmonitor_url}}/device/devicedatasourceinstances/{instanceId}/graphs/{graphId}/data endpoint. Of lesser importance would be other graph API endpoints (e.g. the website graph API endpoint) Thanks in advance! David39Views15likes0CommentsCan the API get the alert rule associated to a datapoint on a DS instance?
I have been hunting through the swagger docs, and I can’t seem to find a way to get the alert rule or alert routing being applied to a specific datapoint on a specific datasource instance. I’ve looked for routing, tuning, etc and I’m not seeing anything. I want to write a script that looks through every resource, snags the Host Status instance specific to that object, looks at the idleInterval datapoint, and then shows me the Alert Routing information. We found an old alert rule that was set up wrong and accidentally was letting idleInterval alerts slip through. So I want to write a script that shows me what they all are. I can drill down to the specific host status instance on the resource, but nothing actually shows me the alert routing, that I can find. There is an alertsettings and a config call one can make against the datasource, but they dont show the actual routing. Is there an API call I’ve overlooked? Or is this something you can’t pull back via API? Thanks!Solved74Views14likes5Commentsparam not found error in datapoint mapping
Hello, I am new to LogicMonitor and need some help. I was working on creating a datasource where the groovy script returns line based output like: QueueDepth.Queue_Name_1=24 QueueDepth.Queue_Name_2=20 The datapoints are created like: Queue_Name_1 →Key- ##WILDVALUE##.Queue_Name_1 Queue_Name_2 →Key-##WILDVALUE##.Queue_Name_2 However, when the data gets polled, it is unable to retrieve it: NaN param not found in output - (method=namevalue, param=.Queue_Name_1) Can someone please let me know what I am missing here. Regards, Shivam210Views8likes9Commentshow to construct Regex datapoint statements
I am not finding much documentation on how to construct regex statements for a datapoint other than this: https://www.logicmonitor.com/support/logicmodules/datasources/datapoints/normal-datapoints My goal is to convert a string from an SNMP walk. I currently can return the OID and receive the raw value. My attempts so far have resulted in NaN: datapointName:\[^\\d]", "” datapointName:\"-.*", "" OID is .1.3.6.1.4.1.9.9.156.1.1.2.1.4.1 Raw value is 12.5.1.16900-48 Thanks for any assistance.Solved337Views8likes6CommentsAlert Thresholds - Changing units Free Space datapoint on Volume Capacity
Hi All, I wanted to put a question to you all to see if you have any recommendations. We have several drives that we are monitoring where it doesn’t make sense to track the % used datapoint due to the very large (or in a couple of cases, very small) total capacity of the drive. As such, we configured the Free Space datapoint for alerts instead. This is working well, however because the Free Space datapoint tracks “available storage capacity of the volume in bytes” it is difficult to quickly understand the potential impact of the alert when it triggers and error for < 268435456000 bytes remaining. Is there any way to change this datapoint so that it reports in a larger unit? GB would be preferred, but even MB would be helpful.Solved99Views8likes4CommentsLogicMonitor "Application ELB" Datasource returns NoData instead of metric for ELB 5XX
We have noticed "HTTPCode_ELB_5XX_Count” Datapoint from"AWS_Application_ELB” Datasource configured to collect"Raw Data” from AWS ELB following the Metric path "AWS/ApplicationELB>LoadBalancer:##system.aws.resourceid##>HTTPCode_ELB_5XX_Count>Sum” and whenever it detectsCloudwatch metrics has value, it returns value in Logicmonitor datapoint as well Example: (When Cloudwatch has metrics for 5XX, below displays in poll) HTTPCode_ELB_5XX_Count 18.0 (When Cloudwatch has empty/null metrics, below displays in poll) HTTPCode_ELB_5XX_Count NoData But after we resolve the5XX error, Cloudwatch metrics value will be empty/null in awsthat reflectsNoData for the Datapoint in LogicMonitor. Our Requirement: We should not get NoData even if the CloudWatch metrics empty/null Could someone please suggest a solution for this requirementSolved99Views4likes3Commentsdatapoint categories/classification
I'd like to suggest the possibility of adding a "category" to the datapoints. This would assist in alerting and metrics around what types of alerts are occuring. Adding a field to the datapoint would allow us to categorize the type of datapoint for automatic correlation of the events in other systems and as well as provide additional logic for dashboards where you can show alerts based on category type. My idea of default categories would be (not exhaustive, I'd like to see these customizable in the admin area for these to make since for everyone's organization): Capacity Configuration Other Outage/Uptime Performance I've been toying with the idea of adding these just to the alert message template for every alert we have configured and just stripping it out in my automation, but I'm sure there are others that would love to see this as well to help classify the types of alerts that are generated.4Views2likes2Comments