Skip to content

Commit

Permalink
Merge pull request #2226 from obrahc/obrahc/postfix-to-events
Browse files Browse the repository at this point in the history
Postfix Quickstart infrastructure queries back to events
  • Loading branch information
zstix authored Jan 16, 2024
2 parents 5cd59e1 + f64ece3 commit d37ae0e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dashboards/postfix/postfix.json
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@
"nrqlQueries": [
{
"accountIds": [],
"query": "FROM Metric SELECT latest(host.cpuPercent) AS 'CPU Usage (%)', latest(host.cpuIdlePercent) AS 'CPU Idle (%)' WHERE host.hostname = {{hostname}} TIMESERIES AUTO"
"query": "SELECT latest(cpuPercent) AS `CPU Usage (%)`, latest(cpuIdlePercent) AS `CPU Idle (%)` FROM SystemSample WHERE (hostname = {{hostname}}) TIMESERIES AUTO"
}
],
"platformOptions": {
Expand Down Expand Up @@ -1394,7 +1394,7 @@
"nrqlQueries": [
{
"accountIds": [],
"query": "FROM Metric SELECT latest(host.memoryUsedPercent) AS 'Memory Used (%)', latest(host.memoryFreePercent) AS 'Memory Free (%)' WHERE host.hostname = {{hostname}} TIMESERIES AUTO"
"query": "SELECT latest(memoryUsedPercent) AS `Memory Used (%)`, latest(memoryFreePercent) AS `Memory Free (%)` FROM SystemSample WHERE (hostname = {{hostname}}) TIMESERIES AUTO"
}
],
"platformOptions": {
Expand Down Expand Up @@ -1424,7 +1424,7 @@
"nrqlQueries": [
{
"accountIds": [],
"query": "FROM Metric SELECT latest(host.disk.usedPercent) AS 'Storage Used (%)', latest(host.disk.freePercent) AS 'Storage Free (%)' WHERE host.hostname = {{hostname}} TIMESERIES AUTO"
"query": "SELECT latest(diskUsedPercent) AS `Storage Used (%)`, latest(diskFreePercent) AS `Storage Free (%)` FROM StorageSample WHERE (hostname = {{hostname}}) TIMESERIES AUTO"
}
],
"platformOptions": {
Expand Down Expand Up @@ -1454,7 +1454,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 @@ -1484,7 +1484,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 auto"
"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 @@ -1511,7 +1511,7 @@
"nrqlQueries": [
{
"accountIds": [],
"query": "SELECT latest(host.process.cpuPercent) as 'CPU %', latest(host.process.threadCount) as 'Threads' FROM Metric WHERE host.hostname = {{hostname}} FACET processId, processDisplayName 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 d37ae0e

Please sign in to comment.