/
Eyer Push API - test & validate your custom Eyer mapping

Eyer Push API - test & validate your custom Eyer mapping

POST https://eyer-prod-api-data-ne-stage.azurewebsites.net/api/mapping/test

Add an “authenticate” field to the request header, with you apiTokenPush as value.

Also add “Content-Type” = “application/json”

To understand how you create a mapping from your custom data format to the Eyer internal format, please see the following article.

Once you have your mapping and output ready, you can test the mapping. As a response, you will get the Eyer internal format back with your own data, so you can validate the data structure (Eyer will have a “node → metrics” structure as internal format).

 

Request body main structure:

{ "mapping": { The JSON mapping goes in here }, "data": [ The JSON test output goes in here ] }

 

Example request with “mapping” and “data” populated. You can test this example as a request to have a look at the response and the Eyer internal format.

{ "mapping": { "_id": { "$oid": "673df8a2f7229f00f1184dee" }, "selector": [ "tags.host", "tags.instance", "timestamp" ], "type": "telegraf.waitstats", "id_selector": "tags.instance", "root": "metrics", "system": "tags.host", "mappings": [ { "type": "telegraf.waitstats.waits", "guid": "16e41dba-e6a4-4427-b753-cf6eee41e384", "name": "Database waits", "timestamp": "timestamp", "fields": [ { "name": "fields.disk_reads_mean", "display": "Disk reads", "type": "float", "aggregation": "avg", "guid": "9ed41a78-3094-4e41-98b5-b1f98f63dc3a" }, { "name": "fields.disk_writes_per_sec_mean", "display": "Disk writes per second", "type": "float", "aggregation": "avg", "guid": "1203a428-0b80-4240-8c1b-f7fa2665ec22" }, { "name": "fields.log_bytes_flushed_mean", "display": "Log bytes flushed", "type": "float", "aggregation": "avg", "guid": "2add293a-446a-468e-91c3-8f164fe697c8" }, { "name": "fields.logical_reads_mean", "display": "Logical reads", "type": "float", "aggregation": "avg", "guid": "7acb184d-c4ce-4287-ab4a-f63f15976bac" }, { "name": "fields.total_sessions_mean", "display": "Total sessions", "type": "int", "aggregation": "avg", "guid": "30c71236-48ad-4fa8-b282-f587ffe8b4b9" }, { "name": "fields.waits_total_mean", "display": "Waits total", "type": "float", "aggregation": "avg", "guid": "1f2a5a97-338b-4a92-8846-f27cd9f6b71f" } ], "name_map": "tags.instance" } ], "skip_merge": true }, "data": { "metrics": [ { "fields": { "disk_reads_mean": 1.0121461361787716, "disk_writes_per_sec_mean": 0.8571885607181682, "last_Run_mean": 1740047577489, "log_bytes_flushed_mean": 3.9596305549082618, "logical_reads_mean": 914.9966524003087, "total_sessions_mean": 14, "waits_total": 0, "waits_total_mean": 7.3 }, "name": "dbwatch", "tags": { "host": "testmachine1", "instance": "Database1", "url": "http://localhost:8080/dashboard/dbWatch%2001/data/HkRmUaLz0Z.telegraf.json" }, "timestamp": 1740047760 } ] } }

 

Related content

README FIRST
More like this
Eyer internal data format & structure
Eyer internal data format & structure
More like this
Microsoft Azure monitoring - agent install guide
Microsoft Azure monitoring - agent install guide
More like this
Map your custom data source
Map your custom data source
More like this
Grafana - Get started and setup of data sources for Eyer
Grafana - Get started and setup of data sources for Eyer
More like this
Eyer Query API - List all nodes in your Eyer environment
Eyer Query API - List all nodes in your Eyer environment
More like this