diff --git a/definitions/ext-unix_host/dashboard.json b/definitions/ext-unix_host/dashboard.json new file mode 100644 index 000000000..83550aaac --- /dev/null +++ b/definitions/ext-unix_host/dashboard.json @@ -0,0 +1,47 @@ +{ + "title": "Unix Host status", + "icon": "line-chart", + "grid_column_count": 12, + "filter": null, + "widgets": [ + { + "title": "CPU Utilization (%)", + "nrql": "SELECT 100-latest(cpu.idle) FROM `unixMonitor:Stats`", + "process_as": "billboard", + "width": 4, + "height": 3, + "row": 1, + "column": 1, + "event_types": null, + "facet": null, + "customizations": null, + "notes": null + }, + { + "title": "Memory Utilization (%)", + "nrql": "SELECT (latest(memory.total) - latest(memory.free))/latest(memory.total) * 100 FROM `unixMonitor:Stats`", + "process_as": "billboard", + "width": 4, + "height": 3, + "row": 1, + "column": 5, + "event_types": null, + "facet": null, + "customizations": null, + "notes": null + }, + { + "title": "Disk Utilization (%)", + "nrql": "SELECT max(percentUsed) FROM `unixMonitor:Disk` FACET mountedOn", + "process_as": "billboard", + "width": 4, + "height": 3, + "row": 1, + "column": 9, + "event_types": null, + "facet": null, + "customizations": null, + "notes": null + } + ] +} \ No newline at end of file diff --git a/definitions/ext-unix_host/definition.yml b/definitions/ext-unix_host/definition.yml index a000ebc9b..7454b2fd4 100644 --- a/definitions/ext-unix_host/definition.yml +++ b/definitions/ext-unix_host/definition.yml @@ -1,5 +1,6 @@ domain: EXT type: UNIX_HOST + synthesis: name: hostname identifier: hostname @@ -7,6 +8,10 @@ synthesis: - attribute: eventType prefix: "unixMonitor:" +dashboardTemplates: + newRelic: + template: dashboard.json + compositeMetrics: goldenMetrics: - golden_metrics.yml