Skip to content

Commit

Permalink
Add dashboard for unix host (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
IreneMLC authored Apr 1, 2021
1 parent 42752b7 commit 6978aaf
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
47 changes: 47 additions & 0 deletions definitions/ext-unix_host/dashboard.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
5 changes: 5 additions & 0 deletions definitions/ext-unix_host/definition.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
domain: EXT
type: UNIX_HOST

synthesis:
name: hostname
identifier: hostname
conditions:
- attribute: eventType
prefix: "unixMonitor:"

dashboardTemplates:
newRelic:
template: dashboard.json

compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down

0 comments on commit 6978aaf

Please sign in to comment.