Skip to content

Commit

Permalink
fix: removing unnecessary filters from nrql (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
thezackm committed Feb 14, 2022
1 parent cb31498 commit 1e37b4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions definitions/ext-firewall/cisco-firepower-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(device_name) AS 'Device Name',latest(src_addr) AS 'Device IP', latest(SysObjectID) AS 'SysObjectID', latest(entity.type) AS 'Entity Type', latest(instrumentation.name) AS 'Ktranslate Profile', latest(kentik.snmp.Uptime)/8640000 AS 'Uptime (Days)', latest(timestamp) AS 'Last Update', latest(PollingHealth) AS 'Polling Health' WHERE provider = 'kentik-firepower' AND device_name = 'AWS-NPHUB-NGFW4-AZ1'"
"query": "FROM Metric SELECT latest(device_name) AS 'Device Name',latest(src_addr) AS 'Device IP', latest(SysObjectID) AS 'SysObjectID', latest(entity.type) AS 'Entity Type', latest(instrumentation.name) AS 'Ktranslate Profile', latest(kentik.snmp.Uptime)/8640000 AS 'Uptime (Days)', latest(timestamp) AS 'Last Update', latest(PollingHealth) AS 'Polling Health' WHERE provider = 'kentik-firepower'"
}
],
"thresholds": []
Expand All @@ -50,7 +50,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(kentik.snmp.CPU) AS 'Current CPU Utilization %' WHERE provider = 'kentik-firepower' AND device_name = 'AWS-NPHUB-NGFW4-AZ1'"
"query": "FROM Metric SELECT latest(kentik.snmp.CPU) AS 'Current CPU Utilization %' WHERE provider = 'kentik-firepower'"
}
],
"thresholds": [
Expand Down Expand Up @@ -81,7 +81,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(kentik.snmp.MemoryUtilization) AS 'Current Memory Utilization %' WHERE provider = 'kentik-firepower' AND device_name = 'AWS-NPHUB-NGFW4-AZ1'"
"query": "FROM Metric SELECT latest(kentik.snmp.MemoryUtilization) AS 'Current Memory Utilization %' WHERE provider = 'kentik-firepower'"
}
],
"thresholds": [
Expand Down Expand Up @@ -114,7 +114,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT min(kentik.snmp.CPU) AS 'Min CPU', max(kentik.snmp.CPU) AS 'Max CPU', average(kentik.snmp.CPU) AS 'Average CPU' WHERE provider = 'kentik-firepower' AND device_name = 'AWS-NPHUB-NGFW4-AZ1' TIMESERIES 5 MINUTES"
"query": "FROM Metric SELECT min(kentik.snmp.CPU) AS 'Min CPU', max(kentik.snmp.CPU) AS 'Max CPU', average(kentik.snmp.CPU) AS 'Average CPU' WHERE provider = 'kentik-firepower' TIMESERIES 5 MINUTES"
}
],
"yAxisLeft": {
Expand Down Expand Up @@ -142,7 +142,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT min(kentik.snmp.MemoryUtilization) AS 'Min Memory', max(kentik.snmp.MemoryUtilization) AS 'Max Memory', average(kentik.snmp.MemoryUtilization) AS 'Average Memory' WHERE provider = 'kentik-firepower' AND device_name = 'AWS-NPHUB-NGFW4-AZ1' TIMESERIES 5 MINUTES"
"query": "FROM Metric SELECT min(kentik.snmp.MemoryUtilization) AS 'Min Memory', max(kentik.snmp.MemoryUtilization) AS 'Max Memory', average(kentik.snmp.MemoryUtilization) AS 'Average Memory' WHERE provider = 'kentik-firepower' TIMESERIES 5 MINUTES"
}
],
"yAxisLeft": {
Expand Down
2 changes: 1 addition & 1 deletion definitions/ext-web_gateway/fireeye-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(device_name) AS 'Device Name', latest(src_addr) AS 'Device IP', latest(SysObjectID) AS 'SysObjectID', latest(hardware_model) AS 'Hardware Model', latest(serial_number) AS 'Serial Number', latest(entity.type) AS 'NR Entity Type', latest(instrumentation.name) AS 'Ktranslate Profile', latest(kentik.snmp.Uptime)/8640000 AS 'Uptime (Days)', latest(timestamp) AS 'Last Update', latest(PollingHealth) AS 'Polling Health', WHERE instrumentation.name = 'fireeye'"
"query": "FROM Metric SELECT latest(device_name) AS 'Device Name', latest(src_addr) AS 'Device IP', latest(SysObjectID) AS 'SysObjectID', latest(hardware_model) AS 'Hardware Model', latest(serial_number) AS 'Serial Number', latest(entity.type) AS 'NR Entity Type', latest(instrumentation.name) AS 'Ktranslate Profile', latest(kentik.snmp.Uptime)/8640000 AS 'Uptime (Days)', latest(timestamp) AS 'Last Update', latest(PollingHealth) AS 'Polling Health' WHERE instrumentation.name = 'fireeye'"
}
],
"thresholds": []
Expand Down

0 comments on commit 1e37b4a

Please sign in to comment.