Skip to content

Commit

Permalink
Update k8s dashboards after review (FSI-2341) (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiriamAparicio authored May 17, 2021
1 parent c76f4f0 commit a9a39ca
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 77 deletions.
67 changes: 45 additions & 22 deletions definitions/infra-kubernetes_daemonset/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,61 @@
"column": 1,
"row": 1,
"height": 3,
"width": 4
"width": 6
},
"title": "",
"title": "Summary",
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(k8s.daemonset.createdAt) as 'createdAt'"
"query": "FROM Metric SELECT latest(k8s.clusterName) as 'Cluster Name', latest(k8s.namespaceName) as 'Namespace Name', latest(podsDesired) as 'Pods Desired', latest(podsReady) as 'Pods Ready', latest(podsMissing) as 'Pods Missing' WHERE metricName = 'k8s.daemonset.createdAt'"
}
],
"thresholds": []
}
},
{
"visualization": {
"id": "viz.line"
"id": "viz.billboard"
},
"layout": {
"column": 5,
"column": 7,
"row": 1,
"height": 3,
"width": 4
"width": 6
},
"title": "Scheduled pods",
"title": "Deployment age",
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(k8s.daemonset.createdAt) as 'Created At'"
}
],
"thresholds": []
}
},
{
"visualization": {
"id": "viz.line"
},
"layout": {
"column": 1,
"row": 4,
"height": 3,
"width": 6
},
"title": "Scheduling status",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT max(k8s.daemonset.podsMissing) as 'podsMissing', min(k8s.daemonset.podsScheduled) as 'podsScheduled', latest(k8s.daemonset.podsDesired) as 'podsDesired' TIMESERIES"
"query": "FROM Metric SELECT max(k8s.daemonset.podsUpdatedScheduled) as 'Pods Updated Scheduled', max(k8s.daemonset.podsMisscheduled) as 'Pods Misscheduled' TIMESERIES"
}
],
"yAxisLeft": {
Expand All @@ -59,20 +81,21 @@
"id": "viz.line"
},
"layout": {
"column": 9,
"row": 1,
"column": 7,
"row": 4,
"height": 3,
"width": 4
"width": 6
},
"title": "Scheduling status",
"title": "Pods availability",
"rawConfiguration": {
"dataFormatters": [],
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT max(k8s.daemonset.podsUpdatedScheduled) as 'podsUpdatedScheduled', max(k8s.daemonset.podsMisscheduled) as 'podsMisscheduled' TIMESERIES"
"query": "FROM Metric SELECT min(k8s.daemonset.podsAvailable) as 'Pods Available', min(k8s.daemonset.podsReady) as 'Pods Ready', max(k8s.daemonset.podsUnavailable) as 'Pods Unavailable' TIMESERIES"
}
],
"yAxisLeft": {
Expand All @@ -86,19 +109,19 @@
},
"layout": {
"column": 1,
"row": 4,
"row": 7,
"height": 3,
"width": 4
"width": 6
},
"title": "Pods availability",
"title": "Scheduled pods",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT min(k8s.daemonset.podsAvailable) as 'podsAvailable', min(k8s.daemonset.podsReady) as 'podsReady', max(k8s.daemonset.podsUnavailable) as 'podsUnavailable' TIMESERIES"
"query": "FROM Metric SELECT max(k8s.daemonset.podsMissing) as 'Pods Missing', min(k8s.daemonset.podsScheduled) as 'Pods Scheduled', latest(k8s.daemonset.podsDesired) as 'Pods Desired' TIMESERIES "
}
],
"yAxisLeft": {
Expand All @@ -111,10 +134,10 @@
"id": "viz.line"
},
"layout": {
"column": 5,
"row": 4,
"column": 7,
"row": 7,
"height": 3,
"width": 4
"width": 6
},
"title": "Generation",
"rawConfiguration": {
Expand All @@ -124,7 +147,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT max(k8s.daemonset.metadataGeneration) as 'metadataGeneration' TIMESERIES"
"query": "FROM Metric SELECT max(k8s.daemonset.metadataGeneration) as 'Metadata Generation' TIMESERIES"
}
],
"yAxisLeft": {
Expand All @@ -135,4 +158,4 @@
]
}
]
}
}
69 changes: 49 additions & 20 deletions definitions/infra-kubernetes_deployment/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,65 @@
"layout": {
"column": 1,
"row": 1,
"height": 4,
"height": 3,
"width": 6
},
"title": "",
"title": "Summary",
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(k8s.deployment.createdAt) as 'createdAt'"
"query": "FROM Metric SELECT latest(k8s.clusterName) as 'Cluster Name', latest(k8s.namespaceName) as 'Namespace Name', latest(podsDesired) as 'Pods Desired', latest(podsAvailable) as 'Pods Available', latest(podsMissing) as 'Pods Missing' WHERE metricName = 'k8s.deployment.createdAt'"
}
],
"thresholds": []
}
},
{
"visualization": {
"id": "viz.line"
"id": "viz.billboard"
},
"layout": {
"column": 7,
"row": 1,
"height": 4,
"height": 3,
"width": 6
},
"title": "Pods rollout",
"title": "Deployment age",
"rawConfiguration": {
"dataFormatters": [],
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(k8s.deployment.createdAt) as 'Created At'"
}
],
"thresholds": []
}
},
{
"visualization": {
"id": "viz.line"
},
"layout": {
"column": 1,
"row": 4,
"height": 3,
"width": 4
},
"title": "Pods availability",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(k8s.deployment.podsUpdated) as 'podsUpdated' TIMESERIES"
"query": "FROM Metric SELECT latest(k8s.deployment.podsUnavailable) as 'Pods Unavailable', latest(k8s.deployment.podsMaxUnavailable) as 'Pods Max Unavailable', latest(k8s.deployment.podsAvailable) as 'Pods Available' TIMESERIES"
}
],
"yAxisLeft": {
Expand All @@ -59,20 +84,20 @@
"id": "viz.line"
},
"layout": {
"column": 1,
"row": 5,
"height": 4,
"width": 6
"column": 5,
"row": 4,
"height": 3,
"width": 4
},
"title": "Pods schedule ",
"title": "Pods updated",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(k8s.deployment.podsTotal) as 'podsTotal', latest(k8s.deployment.podsDesired) as 'podsDesired', latest(k8s.deployment.podsMissing) as 'podsMissing' TIMESERIES"
"query": "FROM Metric SELECT latest(k8s.deployment.podsUpdated) as 'Pods Updated' TIMESERIES"
}
],
"yAxisLeft": {
Expand All @@ -85,20 +110,24 @@
"id": "viz.line"
},
"layout": {
"column": 7,
"row": 5,
"height": 4,
"width": 6
"column": 9,
"row": 4,
"height": 3,
"width": 4
},
"title": "Pods availability",
"title": "Pods schedule ",
"rawConfiguration": {
"dataFormatters": [],
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(k8s.deployment.podsUnavailable) as 'podsUnavailable', latest(k8s.deployment.podsMaxUnavailable) as 'podsMaxUnavailable', latest(k8s.deployment.podsAvailable) as 'podsAvailable' TIMESERIES"
"query": "FROM Metric SELECT latest(k8s.deployment.podsTotal) as 'Pods Total', latest(k8s.deployment.podsDesired) as 'Pods Desired', latest(k8s.deployment.podsMissing) as 'Pods Missing' TIMESERIES"
}
],
"yAxisLeft": {
Expand All @@ -109,4 +138,4 @@
]
}
]
}
}
48 changes: 35 additions & 13 deletions definitions/infra-kubernetes_pod/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,37 @@
"column": 1,
"row": 1,
"height": 3,
"width": 4
"width": 6
},
"title": "Summary",
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(k8s.clusterName) as 'Cluster Name', latest(k8s.status) as 'Status', latest(k8s.createdBy) as 'Created By', latest(k8s.createdKind) as 'Created Kind', average(net.errorsPerSecond) as 'Errors Per Second' WHERE metricName = 'k8s.pod.startTime'"
}
],
"thresholds": []
}
},
{
"visualization": {
"id": "viz.billboard"
},
"layout": {
"column": 7,
"row": 1,
"height": 3,
"width": 6
},
"title": "Current status",
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT latest(k8s.status) as 'status', latest(startTime) as 'startTime' WHERE metricName = 'k8s.pod.startTime'"
"query": "FROM Metric SELECT latest(k8s.status) as 'Status', latest(startTime) as 'Start Time' WHERE metricName = 'k8s.pod.startTime'"
}
],
"thresholds": []
Expand All @@ -33,10 +55,10 @@
"id": "viz.line"
},
"layout": {
"column": 5,
"row": 1,
"column": 1,
"row": 4,
"height": 3,
"width": 8
"width": 6
},
"title": "Status over time",
"rawConfiguration": {
Expand All @@ -59,20 +81,20 @@
"id": "viz.line"
},
"layout": {
"column": 1,
"column": 7,
"row": 4,
"height": 3,
"width": 6
},
"title": "Pod readiness & status",
"title": "Network",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT min(k8s.pod.isReady) as 'Ready', min(k8s.pod.isScheduled) as 'Scheduled' TIMESERIES"
"query": "FROM Metric SELECT max(k8s.pod.netRxBytesPerSecond) / 1000 AS 'Received KBps', max(k8s.pod.netTxBytesPerSecond) / 1000 AS 'Transmitted KBps', max(k8s.pod.netErrorsPerSecond) AS 'Errors / sec' TIMESERIES"
}
],
"yAxisLeft": {
Expand All @@ -85,20 +107,20 @@
"id": "viz.line"
},
"layout": {
"column": 7,
"row": 4,
"column": 1,
"row": 7,
"height": 3,
"width": 6
},
"title": "Network",
"title": "Pod readiness & status",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT max(k8s.pod.netRxBytesPerSecond) / 1000 AS 'Received KBps', max(k8s.pod.netTxBytesPerSecond) / 1000 AS 'Transmitted KBps', max(k8s.pod.netErrorsPerSecond) AS 'Errors / sec' TIMESERIES"
"query": "FROM Metric SELECT min(k8s.pod.isReady) as 'Ready', min(k8s.pod.isScheduled) as 'Scheduled' TIMESERIES"
}
],
"yAxisLeft": {
Expand All @@ -109,4 +131,4 @@
]
}
]
}
}
Loading

0 comments on commit a9a39ca

Please sign in to comment.