Skip to content

Commit

Permalink
Merge pull request #2061 from brettj-newrelic/k8s-node-nrql
Browse files Browse the repository at this point in the history
fix: K8s Node NRQL syntax
  • Loading branch information
zstix authored Sep 28, 2023
2 parents f1f422c + 2b2395d commit 46a4897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboards/kubernetes/kubernetes.json
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric select filter(uniqueCount(k8s.podName), where k8s.status = 'Running') as 'Running Pods', filter(uniqueCount(k8s.podName), where k8s.status = 'Pending') as 'Pending Pods', (average(k8s.node.cpuUsedCores) / average(k8s.node.allocatableCpuCores) * 100) as 'CPU %', (average(k8s.node.memoryWorkingSetBytes) / average(k8s.node.allocatableMemoryBytes) * 100) as 'Mem %', (average(k8s.node.fsUsedBytes) / average(k8s.node.fsCapacityBytes) * 100) as 'Disk Util %' where metricName = 'k8s.pod.createdAt' nodeName is not null facet nodeName limit 2000 since 30 minutes ago"
"query": "FROM Metric select filter(uniqueCount(k8s.podName), where k8s.status = 'Running') as 'Running Pods', filter(uniqueCount(k8s.podName), where k8s.status = 'Pending') as 'Pending Pods', (average(k8s.node.cpuUsedCores) / average(k8s.node.allocatableCpuCores) * 100) as 'CPU %', (average(k8s.node.memoryWorkingSetBytes) / average(k8s.node.allocatableMemoryBytes) * 100) as 'Mem %', (average(k8s.node.fsUsedBytes) / average(k8s.node.fsCapacityBytes) * 100) as 'Disk Util %' where metricName = 'k8s.pod.createdAt' and nodeName is not null facet nodeName limit 2000 since 30 minutes ago"
}
]
}
Expand Down

0 comments on commit 46a4897

Please sign in to comment.