-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.json
176 lines (176 loc) · 5.46 KB
/
dashboard.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"title": "Syslog Dashboard",
"icon": "bar-chart",
"grid_column_count": 12,
"dashboard_account_id": <YOUR_ACCOUNT_ID>,
"widgets": [{
"title": "",
"nrql": "SELECT\n count(*) as 'Emergency (0)'\nFROM Log\nWHERE logType = 'syslog-rfc5424' AND (numeric(pri) - (floor(numeric(pri)/8) * 8)) = 0\n",
"process_as": "billboard",
"width": 1,
"height": 1,
"row": 1,
"column": 1,
"customizations": {
"thresholds": {
"critical": 1
}
}
}, {
"title": "",
"nrql": "SELECT\n count(*) as 'Critical (2)'\nFROM Log\nWHERE logType = 'syslog-rfc5424' AND (numeric(pri) - (floor(numeric(pri)/8) * 8)) = 2\n",
"process_as": "billboard",
"width": 1,
"height": 1,
"row": 1,
"column": 2,
"customizations": {
"thresholds": {
"critical": 1
}
}
}, {
"title": "",
"nrql": "SELECT\n count(*) as 'Warning (4)'\nFROM Log\nWHERE logType = 'syslog-rfc5424' AND (numeric(pri) - (floor(numeric(pri)/8) * 8)) = 4\n",
"process_as": "billboard",
"width": 1,
"height": 1,
"row": 1,
"column": 3,
"customizations": {
"thresholds": {}
}
}, {
"title": "",
"nrql": "SELECT\n count(*) as 'Informational (6)'\nFROM Log\nWHERE logType = 'syslog-rfc5424' AND (numeric(pri) - (floor(numeric(pri)/8) * 8)) = 6\n",
"process_as": "billboard",
"width": 1,
"height": 1,
"row": 1,
"column": 4,
"customizations": {
"thresholds": {}
}
}, {
"title": "Throughput",
"nrql": "SELECT\n rate(count(*), 1 minute) as 'Logs /min',\n count(*) as 'Total'\nFROM Log \nWHERE logType = 'syslog-rfc5424' SINCE 1 hour ago\n",
"process_as": "attribute_sheet",
"width": 2,
"height": 2,
"row": 1,
"column": 5
}, {
"title": "Top Applications",
"nrql": "SELECT\n count(*)\nFROM Log\nWHERE logType = 'syslog-rfc5424'\nFACET app.name\n",
"process_as": "facet_bar_chart",
"width": 2,
"height": 5,
"row": 1,
"column": 7,
"customizations": {
"drilldown": {}
}
}, {
"title": "Top Nodes",
"nrql": "SELECT\n count(*) as 'Logs'\nFROM Log\nWHERE logType = 'syslog-rfc5424'\nFACET hostname\n",
"process_as": "facet_bar_chart",
"width": 2,
"height": 5,
"row": 1,
"column": 9,
"customizations": {
"drilldown": {}
}
}, {
"title": "",
"nrql": null,
"width": 2,
"height": 5,
"row": 1,
"column": 11,
"agent_ids": [],
"customizations": {
"markdown": "### Facilities\n0. kernel messages\n1. user-level messages\n2. mail system\n3. system daemons\n4. security/authorization messages (note 1)\n5. messages generated internally by syslogd\n6. line printer subsystem\n7. network news subsystem\n8. UUCP subsystem\n9. clock daemon (note 2)\n10. security/authorization messages (note 1)\n11. FTP daemon\n12. NTP subsystem\n13. log audit (note 1)\n14. log alert (note 1)\n15. clock daemon (note 2)\n16. to 23. local uses 0 to 7 (local n)\n"
}
}, {
"title": "",
"nrql": "SELECT\n count(*) as 'Alert (1)'\nFROM Log\nWHERE logType = 'syslog-rfc5424' AND (numeric(pri) - (floor(numeric(pri)/8) * 8)) = 1\n",
"process_as": "billboard",
"width": 1,
"height": 1,
"row": 2,
"column": 1,
"customizations": {
"thresholds": {
"critical": 1
}
}
}, {
"title": "",
"nrql": "SELECT\n count(*) as 'Error (3)'\nFROM Log\nWHERE logType = 'syslog-rfc5424' AND (numeric(pri) - (floor(numeric(pri)/8) * 8)) = 3\n",
"process_as": "billboard",
"width": 1,
"height": 1,
"row": 2,
"column": 2,
"customizations": {
"thresholds": {
"warning": 1
}
}
}, {
"title": "",
"nrql": "SELECT\n count(*) as 'Notice (5)'\nFROM Log\nWHERE logType = 'syslog-rfc5424' AND (numeric(pri) - (floor(numeric(pri)/8) * 8)) = 5\n",
"process_as": "billboard",
"width": 1,
"height": 1,
"row": 2,
"column": 3,
"customizations": {
"thresholds": {}
}
}, {
"title": "",
"nrql": "SELECT\n count(*) as 'Debug (7)'\nFROM Log\nWHERE logType = 'syslog-rfc5424' AND (numeric(pri) - (floor(numeric(pri)/8) * 8)) = 7\n",
"process_as": "billboard",
"width": 1,
"height": 1,
"row": 2,
"column": 4,
"customizations": {
"thresholds": {}
}
}, {
"title": "Logs (Emergency + Alert + Critical + Error)",
"nrql": "SELECT\n count(*)\nFROM Log\nWHERE logType = 'syslog-rfc5424' AND (numeric(pri) - (floor(numeric(pri)/8) * 8)) < 4\nTIMESERIES AUTO\n",
"process_as": "line_chart",
"width": 6,
"height": 3,
"row": 3,
"column": 1
}, {
"title": "Logs by Severity",
"nrql": "SELECT\n count(*)\nFROM Log\nWHERE logType = 'syslog-rfc5424'\nFACET string((numeric(pri) - (floor(numeric(pri)/8) * 8))) as 'Severity'\nTIMESERIES AUTO\n",
"process_as": "faceted_line_chart",
"width": 3,
"height": 3,
"row": 6,
"column": 1
}, {
"title": "Logs by Facility",
"nrql": "SELECT\n count(*)\nFROM Log\nWHERE logType = 'syslog-rfc5424'\nFACET floor(numeric(pri)/8) as 'Facility'\nTIMESERIES AUTO\n",
"process_as": "faceted_line_chart",
"width": 3,
"height": 3,
"row": 6,
"column": 4
}, {
"title": "Top 100 Logs",
"nrql": "SELECT\n (numeric(pri) - (floor(numeric(pri)/8) * 8)) as 'Severity',\n app.name as 'Application',\n message\nFROM Log\nWHERE logType = 'syslog-rfc5424' LIMIT 100\n",
"process_as": "event_table",
"width": 6,
"height": 3,
"row": 6,
"column": 7
}]
}