Skip to content

Commit 4f0af37

Browse files
committed
another take at nr
1 parent 8b8d075 commit 4f0af37

1 file changed

Lines changed: 22 additions & 44 deletions

File tree

‎server/scripts/nr_dashboard.json‎

Lines changed: 22 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,81 +8,74 @@
88
{
99
"title": "Station Scrape Latency P95 (ms)",
1010
"layout": { "column": 1, "row": 1, "width": 8, "height": 3 },
11-
"linkedEntityGuids": null,
1211
"visualization": { "id": "viz.line" },
1312
"rawConfiguration": {
1413
"facet": { "showOtherSeries": false },
1514
"legend": { "enabled": true },
16-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT percentile(durationMs, 95) FROM ServerMetric WHERE measurement = 'SourceScrape' FACET sourceId TIMESERIES AUTO LIMIT 50" }],
15+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT percentile(durationMs, 95) FROM ServerMetric WHERE measurement = 'SourceScrape' FACET sourceId TIMESERIES AUTO LIMIT 50" }],
1716
"platformOptions": { "ignoreTimeRange": false }
1817
}
1918
},
2019
{
2120
"title": "Station Scrape Error Rate (%)",
2221
"layout": { "column": 9, "row": 1, "width": 4, "height": 3 },
23-
"linkedEntityGuids": null,
2422
"visualization": { "id": "viz.bar" },
2523
"rawConfiguration": {
2624
"facet": { "showOtherSeries": false },
27-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT percentage(count(*), WHERE success = 0) AS 'Error %' FROM ServerMetric WHERE measurement = 'SourceScrape' FACET sourceId SINCE 1 hour ago LIMIT 50" }],
25+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT percentage(count(*), WHERE success = 0) AS 'Error %' FROM ServerMetric WHERE measurement = 'SourceScrape' FACET sourceId SINCE 1 hour ago LIMIT 50" }],
2826
"platformOptions": { "ignoreTimeRange": false }
2927
}
3028
},
3129
{
3230
"title": "Track Updated Events per Station",
3331
"layout": { "column": 1, "row": 4, "width": 8, "height": 3 },
34-
"linkedEntityGuids": null,
3532
"visualization": { "id": "viz.area" },
3633
"rawConfiguration": {
3734
"facet": { "showOtherSeries": false },
3835
"legend": { "enabled": true },
39-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT count(*) FROM ServerMetric WHERE measurement = 'StationTrackUpdated' FACET station TIMESERIES AUTO LIMIT 50" }],
36+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT count(*) FROM ServerMetric WHERE measurement = 'StationTrackUpdated' FACET station TIMESERIES AUTO LIMIT 50" }],
4037
"platformOptions": { "ignoreTimeRange": false }
4138
}
4239
},
4340
{
4441
"title": "Station Crawl Cycle Duration (ms)",
4542
"layout": { "column": 9, "row": 4, "width": 4, "height": 3 },
46-
"linkedEntityGuids": null,
4743
"visualization": { "id": "viz.line" },
4844
"rawConfiguration": {
4945
"legend": { "enabled": true },
50-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT average(durationMs) AS 'avg', max(durationMs) AS 'max' FROM ServerMetric WHERE measurement = 'StationCrawlCycle' TIMESERIES AUTO" }],
46+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT average(durationMs) AS 'avg', max(durationMs) AS 'max' FROM ServerMetric WHERE measurement = 'StationCrawlCycle' TIMESERIES AUTO" }],
5147
"platformOptions": { "ignoreTimeRange": false }
5248
}
5349
},
5450
{
5551
"title": "Crawl Cycle – Updated vs Errors",
5652
"layout": { "column": 1, "row": 7, "width": 6, "height": 3 },
57-
"linkedEntityGuids": null,
5853
"visualization": { "id": "viz.area" },
5954
"rawConfiguration": {
6055
"legend": { "enabled": true },
61-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT sum(updatedCount) AS 'Updated', sum(errorCount) AS 'Errors' FROM ServerMetric WHERE measurement = 'StationCrawlCycle' TIMESERIES AUTO" }],
56+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT sum(updatedCount) AS 'Updated', sum(errorCount) AS 'Errors' FROM ServerMetric WHERE measurement = 'StationCrawlCycle' TIMESERIES AUTO" }],
6257
"platformOptions": { "ignoreTimeRange": false }
6358
}
6459
},
6560
{
6661
"title": "Scrape Retry Rate (avg attempts)",
6762
"layout": { "column": 7, "row": 7, "width": 6, "height": 3 },
68-
"linkedEntityGuids": null,
6963
"visualization": { "id": "viz.line" },
7064
"rawConfiguration": {
7165
"facet": { "showOtherSeries": false },
7266
"legend": { "enabled": true },
73-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT average(attempts) FROM ServerMetric WHERE measurement = 'SourceScrape' FACET sourceId TIMESERIES AUTO LIMIT 50" }],
67+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT average(attempts) FROM ServerMetric WHERE measurement = 'SourceScrape' FACET sourceId TIMESERIES AUTO LIMIT 50" }],
7468
"platformOptions": { "ignoreTimeRange": false }
7569
}
7670
},
7771
{
7872
"title": "History Chart New Tracks Discovered",
7973
"layout": { "column": 1, "row": 10, "width": 12, "height": 3 },
80-
"linkedEntityGuids": null,
8174
"visualization": { "id": "viz.area" },
8275
"rawConfiguration": {
8376
"facet": { "showOtherSeries": false },
8477
"legend": { "enabled": true },
85-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT sum(newTrackCount) FROM ServerMetric WHERE measurement = 'HistoryChartNewTracks' FACET station TIMESERIES AUTO LIMIT 50" }],
78+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT sum(newTrackCount) FROM ServerMetric WHERE measurement = 'HistoryChartNewTracks' FACET station TIMESERIES AUTO LIMIT 50" }],
8679
"platformOptions": { "ignoreTimeRange": false }
8780
}
8881
}
@@ -94,79 +87,72 @@
9487
{
9588
"title": "Spotify API Latency P95 per Method (ms)",
9689
"layout": { "column": 1, "row": 1, "width": 8, "height": 3 },
97-
"linkedEntityGuids": null,
9890
"visualization": { "id": "viz.line" },
9991
"rawConfiguration": {
10092
"facet": { "showOtherSeries": false },
10193
"legend": { "enabled": true },
102-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT percentile(durationMs, 95) FROM ServerMetric WHERE measurement = 'SpotifyApiCall' FACET method TIMESERIES AUTO LIMIT 20" }],
94+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT percentile(durationMs, 95) FROM ServerMetric WHERE measurement = 'SpotifyApiCall' FACET method TIMESERIES AUTO LIMIT 20" }],
10395
"platformOptions": { "ignoreTimeRange": false }
10496
}
10597
},
10698
{
10799
"title": "Spotify API Error Rate per Method (%)",
108100
"layout": { "column": 9, "row": 1, "width": 4, "height": 3 },
109-
"linkedEntityGuids": null,
110101
"visualization": { "id": "viz.bar" },
111102
"rawConfiguration": {
112103
"facet": { "showOtherSeries": false },
113-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT percentage(count(*), WHERE success = 0) AS 'Error %' FROM ServerMetric WHERE measurement = 'SpotifyApiCall' FACET method SINCE 1 hour ago LIMIT 20" }],
104+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT percentage(count(*), WHERE success = 0) AS 'Error %' FROM ServerMetric WHERE measurement = 'SpotifyApiCall' FACET method SINCE 1 hour ago LIMIT 20" }],
114105
"platformOptions": { "ignoreTimeRange": false }
115106
}
116107
},
117108
{
118109
"title": "Spotify API Call Volume per Method",
119110
"layout": { "column": 1, "row": 4, "width": 6, "height": 3 },
120-
"linkedEntityGuids": null,
121111
"visualization": { "id": "viz.area" },
122112
"rawConfiguration": {
123113
"facet": { "showOtherSeries": false },
124114
"legend": { "enabled": true },
125-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT count(*) FROM ServerMetric WHERE measurement = 'SpotifyApiCall' FACET method TIMESERIES AUTO LIMIT 20" }],
115+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT count(*) FROM ServerMetric WHERE measurement = 'SpotifyApiCall' FACET method TIMESERIES AUTO LIMIT 20" }],
126116
"platformOptions": { "ignoreTimeRange": false }
127117
}
128118
},
129119
{
130120
"title": "Search Cache Hit Rate (%)",
131121
"layout": { "column": 7, "row": 4, "width": 3, "height": 3 },
132-
"linkedEntityGuids": null,
133122
"visualization": { "id": "viz.billboard" },
134123
"rawConfiguration": {
135-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT percentage(count(*), WHERE hit = 1) AS 'Cache Hit %' FROM ServerMetric WHERE measurement = 'SpotifySearchCache' SINCE 1 hour ago" }],
124+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT percentage(count(*), WHERE hit = 1) AS 'Cache Hit %' FROM ServerMetric WHERE measurement = 'SpotifySearchCache' SINCE 1 hour ago" }],
136125
"platformOptions": { "ignoreTimeRange": false }
137126
}
138127
},
139128
{
140129
"title": "Search Cache Hits vs Misses",
141130
"layout": { "column": 10, "row": 4, "width": 3, "height": 3 },
142-
"linkedEntityGuids": null,
143131
"visualization": { "id": "viz.pie" },
144132
"rawConfiguration": {
145133
"facet": { "showOtherSeries": false },
146-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT count(*) FROM ServerMetric WHERE measurement = 'SpotifySearchCache' FACET cases(WHERE hit = 1 AS 'Hit', WHERE hit = 0 AS 'Miss') SINCE 1 hour ago" }],
134+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT count(*) FROM ServerMetric WHERE measurement = 'SpotifySearchCache' FACET cases(WHERE hit = 1 AS 'Hit', WHERE hit = 0 AS 'Miss') SINCE 1 hour ago" }],
147135
"platformOptions": { "ignoreTimeRange": false }
148136
}
149137
},
150138
{
151139
"title": "Cache Lookup Latency – Hit vs Miss (ms)",
152140
"layout": { "column": 1, "row": 7, "width": 6, "height": 3 },
153-
"linkedEntityGuids": null,
154141
"visualization": { "id": "viz.line" },
155142
"rawConfiguration": {
156143
"facet": { "showOtherSeries": false },
157144
"legend": { "enabled": true },
158-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT average(durationMs) FROM ServerMetric WHERE measurement = 'SpotifySearchCache' FACET cases(WHERE hit = 1 AS 'Hit', WHERE hit = 0 AS 'Miss') TIMESERIES AUTO" }],
145+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT average(durationMs) FROM ServerMetric WHERE measurement = 'SpotifySearchCache' FACET cases(WHERE hit = 1 AS 'Hit', WHERE hit = 0 AS 'Miss') TIMESERIES AUTO" }],
159146
"platformOptions": { "ignoreTimeRange": false }
160147
}
161148
},
162149
{
163150
"title": "Spotify API Avg Latency per Method (ms)",
164151
"layout": { "column": 7, "row": 7, "width": 6, "height": 3 },
165-
"linkedEntityGuids": null,
166152
"visualization": { "id": "viz.bar" },
167153
"rawConfiguration": {
168154
"facet": { "showOtherSeries": false },
169-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT average(durationMs) FROM ServerMetric WHERE measurement = 'SpotifyApiCall' FACET method SINCE 1 hour ago LIMIT 20" }],
155+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT average(durationMs) FROM ServerMetric WHERE measurement = 'SpotifyApiCall' FACET method SINCE 1 hour ago LIMIT 20" }],
170156
"platformOptions": { "ignoreTimeRange": false }
171157
}
172158
}
@@ -178,92 +164,84 @@
178164
{
179165
"title": "Chart Collection Latency (ms)",
180166
"layout": { "column": 1, "row": 1, "width": 8, "height": 3 },
181-
"linkedEntityGuids": null,
182167
"visualization": { "id": "viz.line" },
183168
"rawConfiguration": {
184169
"facet": { "showOtherSeries": false },
185170
"legend": { "enabled": true },
186-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT average(durationMs) FROM ServerMetric WHERE measurement = 'ChartCollection' FACET chartKey TIMESERIES AUTO LIMIT 30" }],
171+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT average(durationMs) FROM ServerMetric WHERE measurement = 'ChartCollection' FACET chartKey TIMESERIES AUTO LIMIT 30" }],
187172
"platformOptions": { "ignoreTimeRange": false }
188173
}
189174
},
190175
{
191176
"title": "Chart Collection Success Rate (%)",
192177
"layout": { "column": 9, "row": 1, "width": 4, "height": 3 },
193-
"linkedEntityGuids": null,
194178
"visualization": { "id": "viz.bar" },
195179
"rawConfiguration": {
196180
"facet": { "showOtherSeries": false },
197-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT percentage(count(*), WHERE success = 1) AS 'Success %' FROM ServerMetric WHERE measurement = 'ChartCollection' FACET chartKey SINCE 7 days ago LIMIT 30" }],
181+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT percentage(count(*), WHERE success = 1) AS 'Success %' FROM ServerMetric WHERE measurement = 'ChartCollection' FACET chartKey SINCE 7 days ago LIMIT 30" }],
198182
"platformOptions": { "ignoreTimeRange": false }
199183
}
200184
},
201185
{
202186
"title": "Tracks Collected vs Spotify Resolved",
203187
"layout": { "column": 1, "row": 4, "width": 6, "height": 3 },
204-
"linkedEntityGuids": null,
205188
"visualization": { "id": "viz.bar" },
206189
"rawConfiguration": {
207190
"facet": { "showOtherSeries": false },
208-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT sum(trackCount) AS 'Total Tracks', sum(spotifyResolvedCount) AS 'Spotify Resolved' FROM ServerMetric WHERE measurement = 'ChartCollection' FACET chartKey SINCE 30 days ago LIMIT 30" }],
191+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT sum(trackCount) AS 'Total Tracks', sum(spotifyResolvedCount) AS 'Spotify Resolved' FROM ServerMetric WHERE measurement = 'ChartCollection' FACET chartKey SINCE 30 days ago LIMIT 30" }],
209192
"platformOptions": { "ignoreTimeRange": false }
210193
}
211194
},
212195
{
213196
"title": "Spotify Resolution Rate per Chart (%)",
214197
"layout": { "column": 7, "row": 4, "width": 6, "height": 3 },
215-
"linkedEntityGuids": null,
216198
"visualization": { "id": "viz.bar" },
217199
"rawConfiguration": {
218200
"facet": { "showOtherSeries": false },
219-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT sum(spotifyResolvedCount) / sum(trackCount) * 100 AS 'Resolution %' FROM ServerMetric WHERE measurement = 'ChartCollection' AND trackCount > 0 FACET chartKey SINCE 30 days ago LIMIT 30" }],
201+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT sum(spotifyResolvedCount) / sum(trackCount) * 100 AS 'Resolution %' FROM ServerMetric WHERE measurement = 'ChartCollection' AND trackCount > 0 FACET chartKey SINCE 30 days ago LIMIT 30" }],
220202
"platformOptions": { "ignoreTimeRange": false }
221203
}
222204
},
223205
{
224206
"title": "Chart Spotify Sync Latency (ms)",
225207
"layout": { "column": 1, "row": 7, "width": 8, "height": 3 },
226-
"linkedEntityGuids": null,
227208
"visualization": { "id": "viz.line" },
228209
"rawConfiguration": {
229210
"facet": { "showOtherSeries": false },
230211
"legend": { "enabled": true },
231-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT average(durationMs) FROM ServerMetric WHERE measurement = 'ChartSpotifySync' FACET chartKey TIMESERIES AUTO LIMIT 30" }],
212+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT average(durationMs) FROM ServerMetric WHERE measurement = 'ChartSpotifySync' FACET chartKey TIMESERIES AUTO LIMIT 30" }],
232213
"platformOptions": { "ignoreTimeRange": false }
233214
}
234215
},
235216
{
236217
"title": "Chart Sync – Tracks Pushed to Spotify",
237218
"layout": { "column": 9, "row": 7, "width": 4, "height": 3 },
238-
"linkedEntityGuids": null,
239219
"visualization": { "id": "viz.bar" },
240220
"rawConfiguration": {
241221
"facet": { "showOtherSeries": false },
242-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT latest(trackCount) AS 'Tracks Synced' FROM ServerMetric WHERE measurement = 'ChartSpotifySync' AND success = 1 FACET chartKey SINCE 7 days ago LIMIT 30" }],
222+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT latest(trackCount) AS 'Tracks Synced' FROM ServerMetric WHERE measurement = 'ChartSpotifySync' AND success = 1 FACET chartKey SINCE 7 days ago LIMIT 30" }],
243223
"platformOptions": { "ignoreTimeRange": false }
244224
}
245225
},
246226
{
247227
"title": "Chart Collection Skipped (week exists)",
248228
"layout": { "column": 1, "row": 10, "width": 6, "height": 3 },
249-
"linkedEntityGuids": null,
250229
"visualization": { "id": "viz.area" },
251230
"rawConfiguration": {
252231
"facet": { "showOtherSeries": false },
253232
"legend": { "enabled": true },
254-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT count(*) FROM ServerMetric WHERE measurement = 'ChartCollectionSkipped' FACET chartKey TIMESERIES AUTO LIMIT 30" }],
233+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT count(*) FROM ServerMetric WHERE measurement = 'ChartCollectionSkipped' FACET chartKey TIMESERIES AUTO LIMIT 30" }],
255234
"platformOptions": { "ignoreTimeRange": false }
256235
}
257236
},
258237
{
259238
"title": "Chart Sync Errors",
260239
"layout": { "column": 7, "row": 10, "width": 6, "height": 3 },
261-
"linkedEntityGuids": null,
262240
"visualization": { "id": "viz.area" },
263241
"rawConfiguration": {
264242
"facet": { "showOtherSeries": false },
265243
"legend": { "enabled": true },
266-
"nrqlQueries": [{ "accountIds": [0], "query": "SELECT count(*) FROM ServerMetric WHERE measurement = 'ChartSpotifySync' AND success = 0 FACET chartKey TIMESERIES AUTO LIMIT 30" }],
244+
"nrqlQueries": [{ "accountId": 0, "query": "SELECT count(*) FROM ServerMetric WHERE measurement = 'ChartSpotifySync' AND success = 0 FACET chartKey TIMESERIES AUTO LIMIT 30" }],
267245
"platformOptions": { "ignoreTimeRange": false }
268246
}
269247
}

0 commit comments

Comments
 (0)