Skip to content

Commit

Permalink
Merge pull request #2224 from obrahc/obrahc/nodejs-to-events
Browse files Browse the repository at this point in the history
NodeJS Quickstart infrastructure queries back to events
  • Loading branch information
zstix authored Jan 16, 2024
2 parents b0476bc + ef4a1e6 commit 900a419
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dashboards/nodejs/nodejs.json
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@
"nrqlQueries": [
{
"accountIds": [],
"query": "SELECT average(host.cpuPercent) AS 'CPU used' FROM Metric WHERE host.hostname = {{hostname}} TIMESERIES"
"query": "SELECT average(cpuPercent) AS `CPU used` FROM SystemSample WHERE (hostname = {{hostname}}) TIMESERIES AUTO"
}
],
"platformOptions": {
Expand Down Expand Up @@ -829,7 +829,7 @@
"nrqlQueries": [
{
"accountIds": [],
"query": "SELECT average(host.memoryUsedPercent) AS 'Memory used' FROM Metric WHERE host.hostname = {{hostname}} TIMESERIES auto"
"query": "SELECT average(memoryUsedPercent) AS `Memory used` FROM SystemSample WHERE (hostname = {{hostname}}) TIMESERIES AUTO"
}
],
"platformOptions": {
Expand Down Expand Up @@ -859,7 +859,7 @@
"nrqlQueries": [
{
"accountIds": [],
"query": "SELECT average(host.disk.usedPercent) as 'Storage used' FROM Metric WHERE host.hostname = {{hostname}} TIMESERIES auto"
"query": "SELECT average(diskUsedPercent) AS `Storage used` FROM StorageSample WHERE (hostname = {{hostname}}) TIMESERIES AUTO"
}
],
"platformOptions": {
Expand Down Expand Up @@ -889,7 +889,7 @@
"nrqlQueries": [
{
"accountIds": [],
"query": "SELECT average(host.net.transmitBytesPerSecond) AS 'Transmit bytes per second', average(host.net.receiveBytesPerSecond) AS 'Receive bytes per second' FROM Metric WHERE host.hostname = {{hostname}} TIMESERIES auto"
"query": "SELECT average(transmitBytesPerSecond) AS `Transmit bytes per second`, average(receiveBytesPerSecond) AS `Receive bytes per second` FROM NetworkSample WHERE (hostname = {{hostname}}) TIMESERIES AUTO"
}
],
"platformOptions": {
Expand Down Expand Up @@ -919,7 +919,7 @@
"nrqlQueries": [
{
"accountIds": [],
"query": "SELECT average(host.loadAverageOneMinute) AS '1 minute', average(host.loadAverageFiveMinute) AS '5 minutes', average(host.loadAverageFifteenMinute) AS '15 minutes' FROM Metric WHERE host.hostname = {{hostname}} TIMESERIES "
"query": "SELECT average(loadAverageOneMinute) AS `1 minute`, average(loadAverageFiveMinute) AS `5 minutes`, average(loadAverageFifteenMinute) AS `15 minutes` FROM SystemSample WHERE (hostname = {{hostname}}) TIMESERIES AUTO "
}
],
"platformOptions": {
Expand All @@ -946,7 +946,7 @@
"nrqlQueries": [
{
"accountIds": [],
"query": "SELECT latest(host.process.cpuPercent) as 'CPU %', latest(host.process.threadCount) as 'Threads' FROM Metric FACET processId, processDisplayName WHERE host.hostname = {{hostname}} ORDER BY cpuPercent asc LIMIT 100"
"query": "SELECT latest(cpuPercent) AS `CPU %`, latest(threadCount) AS `Threads` FROM ProcessSample WHERE (hostname = {{hostname}}) FACET tuple(processId, processDisplayName) LIMIT 100"
}
],
"platformOptions": {
Expand Down

0 comments on commit 900a419

Please sign in to comment.