Skip to content

Commit

Permalink
add template vars to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
natwilkinson committed Jan 16, 2025
1 parent df8a4ff commit 7aa1f2b
Showing 1 changed file with 51 additions and 21 deletions.
72 changes: 51 additions & 21 deletions oke/assets/dashboards/oci_oke_overview.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "OKE Overview",
"description": "Oracle Kubernetes Engine metrics help you monitor Kubernetes clusters, along with node pools and individual worker nodes. You can use metrics data to diagnose and troubleshoot cluster and node pool issues.\n\nTo learn more about best practices, including instructions for deploying the Datadog Agent into your OKE clusters for even deeper container-level visibility, see:\n\n- [Monitoring Kubernetes with Datadog](https://www.datadoghq.com/blog/monitoring-kubernetes-with-datadog/)\n- [Monitor OKE with Datadog](https://www.datadoghq.com/blog/monitor-oracle-kubernetes-engine/)\n- [Kubernetes agent documentation](https://docs.datadoghq.com/agent/kubernetes/)\n- [Cluster agent documentation](https://docs.datadoghq.com/agent/cluster_agent/) \n\n",
"title": "Oracle Kubernetes Engine (OKE) Overview",
"description": "Oracle Kubernetes Engine metrics help you monitor Kubernetes clusters, along with node pools and individual worker nodes. You can use metrics data to diagnose and troubleshoot cluster and node pool issues.\n\nTo learn more about best practices, including instructions for deploying the Datadog Agent into your OKE clusters for even deeper container-level visibility see:\n\n- [Monitoring Kubernetes with Datadog](https://www.datadoghq.com/blog/monitoring-kubernetes-with-datadog/)\n- [Monitor OKE with Datadog](https://www.datadoghq.com/blog/monitor-oracle-kubernetes-engine/)\n- [Kubernetes agent documentation](https://docs.datadoghq.com/agent/kubernetes/)\n- [Cluster agent documentation](https://docs.datadoghq.com/agent/cluster_agent/) \n\n",
"widgets": [
{
"id": 2405112297671218,
Expand All @@ -15,7 +15,7 @@
"id": 2807847512540782,
"definition": {
"type": "note",
"content": "This dashboard provides you with immediate visibility into the health and performance of your OKE clusters, node pools, and nodes.\n\nThis dashboard uses a mix of metrics from the `oci_oke` [namespace](https://docs.oracle.com/en-us/iaas/Content/ContEng/Reference/contengmetrics.htm) and the `oci_computeagent` [namespace](https://docs.oracle.com/en-us/iaas/Content/Compute/References/computemetrics.htm#Availabl).\n\nTo learn more about best practices, including instructions for deploying the Datadog Agent into your OKE clusters for even deeper container-level visibility, see:\n\n- [Monitoring Kubernetes with Datadog](https://www.datadoghq.com/blog/monitoring-kubernetes-with-datadog/)\n- [Monitor OKE with Datadog](https://www.datadoghq.com/blog/monitor-oracle-kubernetes-engine/)\n- [Kubernetes agent documentation](https://docs.datadoghq.com/agent/kubernetes/)\n- [Cluster agent documentation](https://docs.datadoghq.com/agent/cluster_agent/) ",
"content": "This dashboard provides you with immediate visibility into the health and performance of your OKE clusters, node pools, and nodes.\n\nThis dashboard uses a mix of metrics from the `oci_oke` [namespace](https://docs.oracle.com/en-us/iaas/Content/ContEng/Reference/contengmetrics.htm) and the `oci_computeagent` [namespace](https://docs.oracle.com/en-us/iaas/Content/Compute/References/computemetrics.htm#Availabl).\n\nTo learn more about best practices, including instructions for deploying the Datadog Agent into your OKE clusters for even deeper container-level visibility see:\n\n- [Monitoring Kubernetes with Datadog](https://www.datadoghq.com/blog/monitoring-kubernetes-with-datadog/)\n- [Monitor OKE with Datadog](https://www.datadoghq.com/blog/monitor-oracle-kubernetes-engine/)\n- [Kubernetes Agent documentation](https://docs.datadoghq.com/agent/kubernetes/)\n- [Cluster Agent documentation](https://docs.datadoghq.com/agent/cluster_agent/) ",
"background_color": "white",
"font_size": "14",
"text_align": "left",
Expand Down Expand Up @@ -93,7 +93,7 @@
{
"data_source": "metrics",
"name": "query1",
"query": "avg:oci.oke.node_state{*} by {node_pool_id}",
"query": "avg:oci.oke.node_state{$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name} by {node_pool_id}",
"aggregator": "sum"
}
],
Expand Down Expand Up @@ -136,7 +136,7 @@
],
"queries": [
{
"query": "sum:oci.computeagent.cpu_utilization{name:oke-c*} by {name}.weighted()",
"query": "sum:oci.computeagent.cpu_utilization{name:oke-c*,$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name} by {name}.weighted()",
"data_source": "metrics",
"name": "query1"
}
Expand Down Expand Up @@ -177,7 +177,7 @@
{
"data_source": "metrics",
"name": "query1",
"query": "avg:oci.oke.node_state{*} by {cluster_id}",
"query": "avg:oci.oke.node_state{$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name} by {cluster_id}",
"aggregator": "sum"
}
],
Expand Down Expand Up @@ -271,7 +271,7 @@
],
"queries": [
{
"query": "sum:oci.oke.apiserver_request_count{*}.as_count()",
"query": "sum:oci.oke.apiserver_request_count{$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name}.as_count()",
"data_source": "metrics",
"name": "query1"
}
Expand Down Expand Up @@ -316,7 +316,7 @@
],
"queries": [
{
"query": "sum:oci.oke.apiserver_response_count{*}.as_count()",
"query": "sum:oci.oke.apiserver_response_count{$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name}.as_count()",
"data_source": "metrics",
"name": "query1"
}
Expand Down Expand Up @@ -349,7 +349,7 @@
{
"queries": [
{
"query": "sum:oci.oke.unschedulable_pods{*}",
"query": "sum:oci.oke.unschedulable_pods{$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name}",
"data_source": "metrics",
"name": "query1"
}
Expand Down Expand Up @@ -423,7 +423,7 @@
{
"queries": [
{
"query": "avg:oci.oke.node_state{*} by {node_pool_id,node_state,node_condition,cluster_id,compartment_name}",
"query": "avg:oci.oke.node_state{$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name} by {node_pool_id,node_state,node_condition,cluster_id,compartment_name}",
"data_source": "metrics",
"name": "query1",
"aggregator": "last"
Expand Down Expand Up @@ -490,7 +490,7 @@
{
"data_source": "metrics",
"name": "query1",
"query": "avg:oci.computeagent.cpu_utilization{*} by {okenode_pool_name}"
"query": "avg:oci.computeagent.cpu_utilization{$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name} by {okenode_pool_name}"
}
],
"response_format": "timeseries",
Expand Down Expand Up @@ -538,7 +538,7 @@
{
"data_source": "metrics",
"name": "query1",
"query": "avg:oci.computeagent.memory_utilization{*} by {okenode_pool_name}"
"query": "avg:oci.computeagent.memory_utilization{$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name} by {okenode_pool_name}"
}
],
"response_format": "timeseries",
Expand All @@ -563,7 +563,7 @@
},
"layout": {
"x": 0,
"y": 0,
"y": 15,
"width": 12,
"height": 7,
"is_column_break": true
Expand Down Expand Up @@ -602,7 +602,7 @@
{
"queries": [
{
"query": "avg:oci.oke.node_state{*} by {name,node_condition,node_state,node_pool_id,compartment_name}",
"query": "avg:oci.oke.node_state{$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name} by {name,node_condition,node_state,node_pool_id,compartment_name}",
"data_source": "metrics",
"name": "query1",
"aggregator": "last"
Expand Down Expand Up @@ -679,7 +679,7 @@
{
"data_source": "metrics",
"name": "query1",
"query": "avg:oci.computeagent.cpu_utilization{name:oke-c*} by {name}"
"query": "avg:oci.computeagent.cpu_utilization{name:oke-c*,$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name} by {name}"
}
],
"response_format": "timeseries",
Expand Down Expand Up @@ -713,7 +713,7 @@
{
"data_source": "metrics",
"name": "query1",
"query": "avg:oci.computeagent.cpu_utilization{name:oke-c*} by {name}",
"query": "avg:oci.computeagent.cpu_utilization{name:oke-c*,$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name} by {name}",
"aggregator": "avg"
}
],
Expand Down Expand Up @@ -762,7 +762,7 @@
{
"data_source": "metrics",
"name": "query1",
"query": "avg:oci.computeagent.memory_utilization{name:oke-c*} by {name}",
"query": "avg:oci.computeagent.memory_utilization{name:oke-c*,$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name} by {name}",
"aggregator": "avg"
}
],
Expand Down Expand Up @@ -804,15 +804,14 @@
"title": "OKE Nodes with Highest Network Egress (bytes)",
"title_size": "16",
"title_align": "left",
"time": {},
"type": "toplist",
"requests": [
{
"queries": [
{
"data_source": "metrics",
"name": "query1",
"query": "sum:oci.computeagent.networks_bytes_out{name:oke-c*} by {name}.as_count()",
"query": "sum:oci.computeagent.networks_bytes_out{name:oke-c*,$tenancy_name,$oke_node_pool_name,$region,$resource_name,$compartment_name} by {name}.as_count()",
"aggregator": "avg"
}
],
Expand Down Expand Up @@ -852,13 +851,44 @@
},
"layout": {
"x": 0,
"y": 7,
"y": 22,
"width": 12,
"height": 11
}
}
],
"template_variables": [],
"template_variables": [
{
"name": "tenancy_name",
"prefix": "tenancy_name",
"available_values": [],
"default": "*"
},
{
"name": "compartment_name",
"prefix": "compartment_name",
"available_values": [],
"default": "*"
},
{
"name": "region",
"prefix": "region",
"available_values": [],
"default": "*"
},
{
"name": "resource_name",
"prefix": "name",
"available_values": [],
"default": "*"
},
{
"name": "oke_node_pool_name",
"prefix": "okenode_pool_name",
"available_values": [],
"default": "*"
}
],
"layout_type": "ordered",
"notify_list": [],
"reflow_type": "fixed"
Expand Down

0 comments on commit 7aa1f2b

Please sign in to comment.