diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..663c67b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,57 @@ +.DS_Store + +#### +## Ignore PEM files +#### + +**.pem + +#### +## gitignore for terraform artifacts +#### + +# Local .terraform directories +**/.terraform/* + +## Terraform Locck files +*.terraform.lock.hcl + +# .tfstate filesdas +*.tfstate +*.tfstate.* + +# Crash log files +crash.log +crash.*.log + +# Exclude all .tfvars files, which are likely to contain sensitive data, such as +# password, private keys, and other secrets. These should not be part of version +# control as they are data points which are potentially sensitive and subject +# to change depending on the environment. +*.tfvars +*.tfvars.json + +# Include sample tfvars +!terraform-sample.tfvars + +# Ignore override files as they are usually used to override resources locally and so +# are not checked in +override.tf +override.tf.json +*_override.tf +*_override.tf.json + +# Include override files you do wish to add to version control using negated pattern +# !example_override.tf + +# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan +# example: *tfplan* + +# Ignore CLI configuration files +.terraformrc +terraform.rc + +# Ignore util dir +logan/util/* + + diff --git a/CHANGELOG.md b/CHANGELOG.md index 50a11d68..61f6639e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 2022-02-07 +### Added +- Create a new mount (rw) using the value provided for baseDir. +- Expose "encoding" parameter of Fluentd's tail plugin as part of values.yaml, which allows users to override default encoding (ASCII-8BIT) for applicable logs/log types. +- Partial CRI logs handling. +- Oracle Resource Manager / Terraform support for deploying the solution. +### Changed +- Modified /var/log to mount as readonly by default, except when /var/log is set as baseDir (to store Fluentd state, buffer etc.,). +### Breaking Changes +- Logging Analytics Fluentd Output plugin log location will be derived using baseDir instead using value of fluentd:ociLoggingAnalyticsOutputPlugin:plugin_log_location. The default value still remains unchanged and is a non breaking change except if it was modified to a different value. + ## 2022-08-30 ### Added - Helm chart templatisation/parameterisation to provide granular level control on the chart and its values. diff --git a/README.md b/README.md index fb9ec9fa..013272e4 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,13 @@ This provides an end-to-end monitoring solution for Oracle Container Engine for Kubernetes (OKE) and other forms of Kubernetes Clusters using Logging Analytics, Monitoring and other Oracle Cloud Infrastructure (OCI) Services. -![Sample Services Dashboard](https://user-images.githubusercontent.com/80283985/153080889-62b30482-5a9c-4244-92e3-e7a4df5ba33e.png) +![Kubernetes Cluster Summary Dashboard](logan/images/kubernetes-cluster-summary-dashboard.png) +![Kubernetes Nodes Dashboard](logan/images/kubernetes-nodes-dashboard.png) -![Topology Based Exploration](https://user-images.githubusercontent.com/80283985/153081174-f22dcf71-d994-4dc5-ad42-9f424c3f1573.png) +![Kubernetes Workloads Dashboard](logan/images/kubernetes-workloads-dashboard.png) + +![Kubernetes Pods Dashboard](logan/images/kubernetes-pods-dashboard.png) ## Logs @@ -75,6 +78,26 @@ The following are the list of objects supported at present: ## Installation Instructions +### Deploy using Oracle Resource Manager + +> **_NOTE:_** If you aren't already signed in, when prompted, enter the tenancy and user credentials. Review and accept the terms and conditions. If you aren't on-boarded to OCI Logging Analytics, refer to [Pre-requisites](#pre-requisites) section to enable Logging Analytics in the region where you want to deploy the stack. The default container image available through the deployment is only for demo/non-production use-cases, we recommend you to refer [Docker Image](#docker-image) section to build your own image. + +- Click to deploy the stack + + [![Deploy to Oracle Cloud][orm_button]][oci_kubernetes_monitoring_stack] + +- Select the region and compartment where you want to deploy the stack. + +- Follow the on-screen prompts and instructions to create the stack. + +- After creating the stack, click Terraform Actions, and select Plan. + +- Wait for the job to be completed, and review the plan. + +- To make any changes, return to the Stack Details page, click Edit Stack, and make the required changes. Then, run the Plan action again. + +- If no further changes are necessary, return to the Stack Details page, click Terraform Actions, and select Apply. + ### Pre-requisites - Logging Analytics Service must be enabled in the given OCI region before trying out the following Solution. Refer [Logging Analytics Quick Start](https://docs.oracle.com/en-us/iaas/logging-analytics/doc/quick-start.html) for details. @@ -393,3 +416,105 @@ subjects: name: namespace: ``` + +### How to set encoding for logs ? + +**Note**: This is supported only through the helm chart based deployment. + +By default Fluentd tail plugin that is being used to collect various logs has default encoding set to ASCII-8BIT. To overrided the default encoding, use one of the following approaches. + +#### Global level + +Set value for encoding under fluentd:tailPlugin section of values.yaml, which applies to all the logs being collected from the cluster. + +``` +fluentd: + ... + ... + tailPlugin: + ... + ... + encoding: +``` + +#### Specific log type level + +The encoding can be set at invidivual log types like kubernetesSystem, linuxSystem, genericContainerLogs, which applies to all the logs under the specific log type. + +``` +fluentd: + ... + ... + kubernetesSystem: + ... + ... + encoding: +``` + +``` +fluentd: + ... + ... + genericContainerLogs: + ... + ... + encoding: +``` + +#### Specific log level + +The encoding can be set at individual log level too, which takes precedence over all others. + +``` +fluentd: + ... + ... + kubernetesSystem: + ... + ... + logs: + kube-proxy: + encoding: +``` + +``` +fluentd: + ... + ... + customLogs: + custom-log1: + ... + ... + encoding: + ... + ... +``` + +## Importing Logging Analytics Kubernetes Dashboards + +The Dashboards are imported as part of deploying the Kubernetes solution using [Oracle Resource Manager stack](#deploy-using-oracle-resource-manager). The following steps can be used to import the Dashboards manually to your tenancy. + +1. Download and configure [OCI CLI](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm) or open cloud-shell where OCI CLI is pre-installed. Alternative methods like REST API, SDK, Terraform etc can also be used. +1. Find the **OCID** of compartment, where the dashboards need to be imported. +1. Download the dashboard JSONs from [here](logan/terraform/oke/modules/dashboards/dashboards_json/). +1. **Replace** all the instances of the keyword - "`${compartment_ocid}`" in the JSONs with the **Compartment OCID** identified in STEP 2. + - Following are the set of commands for quick reference that can be used in a linux/cloud-shell envirnment : + + ``` + sed -i "s/\${compartment_ocid}//g" file://cluster.json + sed -i "s/\${compartment_ocid}//g" file://node.json + sed -i "s/\${compartment_ocid}//g" file://workload.json + sed -i "s/\${compartment_ocid}//g" file://pod.json + ``` +1. Run the following commands to import the dashboards. + + ``` + oci management-dashboard dashboard import --from-json file://cluster.json + oci management-dashboard dashboard import --from-json file://node.json + oci management-dashboard dashboard import --from-json file://workload.json + oci management-dashboard dashboard import --from-json file://pod.json + ``` + +[orm_button]: https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg + +[oci_kubernetes_monitoring_stack]: https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle-quickstart/oci-kubernetes-monitoring/releases/latest/download/oci-kubernetes-monitoring-stack.zip diff --git a/logan/helm-chart/Chart.yaml b/logan/helm-chart/Chart.yaml index 99ccfd82..d7e9f64f 100644 --- a/logan/helm-chart/Chart.yaml +++ b/logan/helm-chart/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 2.0.0 +version: 2.0.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/logan/helm-chart/templates/configmap-logs.yaml b/logan/helm-chart/templates/configmap-logs.yaml index c548f88c..05cd22e1 100644 --- a/logan/helm-chart/templates/configmap-logs.yaml +++ b/logan/helm-chart/templates/configmap-logs.yaml @@ -46,7 +46,7 @@ data: config_file_location {{ .Values.oci.path }}/{{ .Values.oci.file }} profile_name "{{ .Values.fluentd.ociLoggingAnalyticsOutputPlugin.profile_name }}" {{- end }} - plugin_log_location "{{ .Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_location }}" + plugin_log_location "{{ .Values.fluentd.baseDir }}" plugin_log_level "{{ .Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_level }}" plugin_log_file_size "{{ .Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_file_size }}" plugin_log_file_count "{{ .Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_file_count }}" @@ -90,6 +90,13 @@ data: pos_file {{ $.Values.fluentd.baseDir }}/oci_la_fluentd_outplugin/pos/{{ $name }}.logs.pos tag oci.oke.{{ $name }}.* read_from_head "{{ $.Values.fluentd.tailPlugin.readFromHead }}" + {{- if $logDefinition.encoding }} + encoding {{ $logDefinition.encoding }} + {{- else if $.Values.fluentd.kubernetesSystem.encoding }} + encoding {{ $.Values.fluentd.kubernetesSystem.encoding }} + {{- else if $.Values.fluentd.tailPlugin.encoding }} + encoding {{ $.Values.fluentd.tailPlugin.encoding }} + {{- end }} {{- if eq $runtime "docker" }} @type json @@ -134,6 +141,20 @@ data: tag ${tag} + # Concat filter to handle partial logs in CRI/ContainerD + # Docker can also have partial logs but handling is different for different docker versions. Considering Kubernetes/OKE moved to ContainerD/CRI since last 4-5 releases, ignoring docker handling. + # This filter can not be clubbed with concat filter for multiline as both are mutually exclusive. + {{- if eq $runtime "cri" }} + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + # timeout scenario should not occur in general for partial logs handling + timeout_label "@NORMAL" + + {{- end }} {{- if $logDefinition.multilineStartRegExp }} # Concat filter to handle multi-line log records. @@ -159,6 +180,13 @@ data: pos_file {{ $.Values.fluentd.baseDir }}/oci_la_fluentd_outplugin/pos/{{ $name }}.logs.pos tag oci.oke.{{ $name }}.* read_from_head "{{ $.Values.fluentd.tailPlugin.readFromHead }}" + {{- if $logDefinition.encoding }} + encoding {{ $logDefinition.encoding }} + {{- else if $.Values.fluentd.linuxSystem.encoding }} + encoding {{ $.Values.fluentd.linuxSystem.encoding }} + {{- else if $.Values.fluentd.tailPlugin.encoding }} + encoding {{ $.Values.fluentd.tailPlugin.encoding }} + {{- end }} {{- if $logDefinition.multilineStartRegExp }} @type multiline @@ -217,6 +245,13 @@ data: pos_file {{ .Values.fluentd.baseDir }}/oci_la_fluentd_outplugin/pos/syslog.logs.pos tag oci.oke.syslog.messages.** read_from_head "{{ .Values.fluentd.tailPlugin.readFromHead }}" + {{- if .Values.fluentd.linuxSystem.logs.syslog.encoding }} + encoding {{ .Values.fluentd.linuxSystem.logs.syslog.encoding }} + {{- else if .Values.fluentd.linuxSystem.encoding }} + encoding {{ .Values.fluentd.linuxSystem.encoding }} + {{- else if .Values.fluentd.tailPlugin.encoding }} + encoding {{ .Values.fluentd.tailPlugin.encoding }} + {{- end }} @type multiline format_firstline {{ .Values.fluentd.linuxSystem.logs.syslog.multilineStartRegExp }} @@ -325,6 +360,11 @@ data: pos_file {{ $.Values.fluentd.baseDir }}/oci_la_fluentd_outplugin/pos/{{ $name }}.logs.pos tag oci.oke.{{ $name }}.* read_from_head "{{ $.Values.fluentd.tailPlugin.readFromHead }}" + {{- if $logDefinition.encoding }} + encoding {{ $logDefinition.encoding }} + {{- else if $.Values.fluentd.tailPlugin.encoding }} + encoding {{ $.Values.fluentd.tailPlugin.encoding }} + {{- end }} {{- if eq "false" ($logDefinition.isContainerLog | toString) }} {{- if $logDefinition.multilineStartRegExp }} @@ -368,7 +408,20 @@ data: tag ${tag} - + # Concat filter to handle partial logs in CRI/ContainerD + # Docker can also have partial logs but handling is different for different docker versions. Considering Kubernetes/OKE moved to ContainerD/CRI since last 4-5 releases, ignoring docker handling. + # This filter can not be clubbed with concat filter for multiline as both are mutually exclusive. + {{- if and (ne "false" ($logDefinition.isContainerLog | toString)) (eq $runtime "cri") }} + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + # timeout scenario should not occur in general for partial logs handling + timeout_label "@NORMAL" + + {{- end }} {{- if and (ne "false" ($logDefinition.isContainerLog | toString)) ($logDefinition.multilineStartRegExp) }} # Concat filter to handle multi-line log records. @@ -397,6 +450,11 @@ data: read_from_head "{{ .Values.fluentd.tailPlugin.readFromHead }}" # Modify the exclude path once a specific container log config is explictly defined to avoid duplicate collection. exclude_path [{{ $excludePath }}] + {{- if .Values.fluentd.genericContainerLogs.encoding }} + encoding {{ .Values.fluentd.genericContainerLogs.encoding }} + {{- else if .Values.fluentd.tailPlugin.encoding }} + encoding {{ .Values.fluentd.tailPlugin.encoding }} + {{- end }} {{- if eq $runtime "docker" }} @type json @@ -449,6 +507,21 @@ data: {{- end }} + # Concat filter to handle partial logs in CRI/ContainerD + # Docker can also have partial logs but handling is different for different docker versions. Considering Kubernetes/OKE moved to ContainerD/CRI since last 4-5 releases, ignoring docker handling. + # This filter can not be clubbed with concat filter for multiline as both are mutually exclusive. + {{- if eq $runtime "cri" }} + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + # timeout scenario should not occur in general for partial logs handling + timeout_label "@NORMAL" + + {{- end }} + #customFluentd config {{- if .Values.fluentd.customFluentdConf }} {{- include "common.tplvalues.render" (dict "value" .Values.fluentd.customFluentdConf "context" $) | nindent 4 }} diff --git a/logan/helm-chart/templates/configmap-objects.yaml b/logan/helm-chart/templates/configmap-objects.yaml index 18d39f91..ffa3bf46 100644 --- a/logan/helm-chart/templates/configmap-objects.yaml +++ b/logan/helm-chart/templates/configmap-objects.yaml @@ -18,7 +18,7 @@ data: config_file_location {{ .Values.oci.path }}/{{ .Values.oci.file }} profile_name "{{ .Values.fluentd.ociLoggingAnalyticsOutputPlugin.profile_name }}" {{- end }} - plugin_log_location "{{ .Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_location }}" + plugin_log_location "{{ .Values.fluentd.baseDir }}" plugin_log_level "{{ .Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_level }}" plugin_log_file_size "{{ .Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_file_size }}" plugin_log_file_count "{{ .Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_file_count }}" @@ -103,4 +103,4 @@ data: tag ${tag} - {{- end }} \ No newline at end of file + {{- end }} diff --git a/logan/helm-chart/templates/fluentd-daemonset.yaml b/logan/helm-chart/templates/fluentd-daemonset.yaml index 2b9ad5c0..d20c6807 100644 --- a/logan/helm-chart/templates/fluentd-daemonset.yaml +++ b/logan/helm-chart/templates/fluentd-daemonset.yaml @@ -67,15 +67,23 @@ spec: resources: {{- toYaml .Values.resources | nindent 10 }} {{- end }} volumeMounts: + # Mount all relevant locations depending on where the actual logs presents. - name: varlog mountPath: /var/log - # Mount all relevant locations depending on where the actual logs presents. + {{- if ne .Values.fluentd.baseDir "/var/log" }} + readOnly: true + {{- end }} - name: dockercontainerlogdirectory mountPath: {{ .Values.volumes.podsHostPath }} readOnly: true - name: dockercontainerdatadirectory mountPath: {{ .Values.volumes.containerdataHostPath }} - readOnly: true + readOnly: true + # RW mount to store pos files, buffer and output plugin logs (if baseDir is not /var/log) + {{- if ne .Values.fluentd.baseDir "/var/log" }} + - name: basedir + mountPath: {{ .Values.fluentd.baseDir }} + {{- end }} {{- if eq $authtype "config" }} # Mount directory where oci config exists - name: ociconfigdir @@ -94,16 +102,22 @@ spec: {{- if .Values.extraVolumes }} {{- toYaml .Values.extraVolumes | nindent 6 }} {{- end }} + # Mount all relevant locations depending on where the actual logs presents. - name: varlog hostPath: path: /var/log - # Mount all relevant locations depending on where the actual logs presents. - name: dockercontainerlogdirectory hostPath: path: {{ .Values.volumes.podsHostPath }} - name: dockercontainerdatadirectory hostPath: - path: {{ .Values.volumes.containerdataHostPath }} + path: {{ .Values.volumes.containerdataHostPath }} + # RW mount to store tail plugin pos files, output plugin buffer and logs (if baseDir is not /var/log) + {{- if ne .Values.fluentd.baseDir "/var/log" }} + - name: basedir + hostPath: + path: {{ .Values.fluentd.baseDir }} + {{- end }} {{- if eq $authtype "config" }} # Mount directory where oci config exists - name: ociconfigdir diff --git a/logan/helm-chart/templates/fluentd-deployment.yaml b/logan/helm-chart/templates/fluentd-deployment.yaml index b4a147d7..ebbf4f5b 100644 --- a/logan/helm-chart/templates/fluentd-deployment.yaml +++ b/logan/helm-chart/templates/fluentd-deployment.yaml @@ -64,8 +64,9 @@ spec: resources: {{- toYaml .Values.resources | nindent 10 }} {{- end }} volumeMounts: - - name: varlog - mountPath: /var/log + # RW mount to store tail plugin output plugin buffer and logs + - name: basedir + mountPath: {{ .Values.fluentd.baseDir }} {{- if eq $authtype "config" }} # Mount directory where oci config exists - name: ociconfigdir @@ -84,9 +85,10 @@ spec: {{- if .Values.extraVolumes }} {{- toYaml .Values.extraVolumes | nindent 6 }} {{- end }} - - name: varlog + # RW mount to store tail plugin output plugin buffer and logs + - name: basedir hostPath: - path: /var/log + path: {{ .Values.fluentd.baseDir }} {{- if eq $authtype "config" }} # Mount directory where oci config exists - name: ociconfigdir diff --git a/logan/helm-chart/values.schema.json b/logan/helm-chart/values.schema.json index f4673916..42275ec3 100644 --- a/logan/helm-chart/values.schema.json +++ b/logan/helm-chart/values.schema.json @@ -41,6 +41,17 @@ }, "ociLALogGroupID": { "type": "string" + }, + "fluentd": { + "type": "object", + "required": [ + "baseDir" + ], + "properties": { + "baseDir": { + "type": "string" + } + } } } -} \ No newline at end of file +} diff --git a/logan/helm-chart/values.yaml b/logan/helm-chart/values.yaml index ad02b8c0..44220fcc 100644 --- a/logan/helm-chart/values.yaml +++ b/logan/helm-chart/values.yaml @@ -95,14 +95,11 @@ fluentd: path: /var/opt/conf # fluentd config file name file: fluent.conf - # Base directory on the node (with read write permission) to store fluentd plugin related data. - # If this path is modified, then the corresponding volume and mount has to be created using extraVolumes and extraVolumeMounts sections. + # Base directory on the node (with read write permission) to store fluentd plugins related data. baseDir: /var/log # Configuration for oci-logging-analytics output plugin ociLoggingAnalyticsOutputPlugin: profile_name: 'DEFAULT' - # File path for Output plugin to write its logs. Make sure that the path exists and is accessible - plugin_log_location: '/var/log/' # Output plugin logging level: DEBUG < INFO < WARN < ERROR < FATAL < UNKNOWN plugin_log_level: 'info' # The maximum log file size at which point the log file to be rotated, for example, 1KB, 1MB, etc. @@ -153,6 +150,9 @@ fluentd: readFromHead: true # Frequency of flushing the chunks to output plugin. flushInterval: 60 # seconds + # Specifies the encoding of logs. By default, in_tail emits string value as ASCII-8BIT encoding. If encoding is specified, in_tail changes string to given encoding. + # When encoding is set at this level, it gets applied to all the logs being collected. Instead, it can also be set at individual logs under sections like kubernetesSystem, genericContainerLogs, customLogs etc. + # encoding: # Configuration for Kubernetes System specific logs like Kube Flannel, Kube Proxy etc. kubernetesSystem: # Setting the following properties will override the default/generic configuration and applies to all Kubernetes system logs @@ -162,6 +162,7 @@ fluentd: #"Environment": "Production" #"Third Key": "Third Value" #ociLAEntityID: + #encoding: logs: # Configuration specific to Kube Proxy logs kube-proxy: @@ -177,6 +178,7 @@ fluentd: #"Third Key": "Third Value" #ociLAEntityID: #ociLALogGroupID: + #encoding: # Configuration specific to Kube Flannel logs kube-flannel: diff --git a/logan/images/kubernetes-cluster-summary-dashboard.png b/logan/images/kubernetes-cluster-summary-dashboard.png new file mode 100644 index 00000000..faf66313 Binary files /dev/null and b/logan/images/kubernetes-cluster-summary-dashboard.png differ diff --git a/logan/images/kubernetes-nodes-dashboard.png b/logan/images/kubernetes-nodes-dashboard.png new file mode 100644 index 00000000..0228c217 Binary files /dev/null and b/logan/images/kubernetes-nodes-dashboard.png differ diff --git a/logan/images/kubernetes-pods-dashboard.png b/logan/images/kubernetes-pods-dashboard.png new file mode 100644 index 00000000..7052f7cd Binary files /dev/null and b/logan/images/kubernetes-pods-dashboard.png differ diff --git a/logan/images/kubernetes-workloads-dashboard.png b/logan/images/kubernetes-workloads-dashboard.png new file mode 100644 index 00000000..acc87ec5 Binary files /dev/null and b/logan/images/kubernetes-workloads-dashboard.png differ diff --git a/logan/kubernetes-resources/logs-collection/configmap-cri.yaml b/logan/kubernetes-resources/logs-collection/configmap-cri.yaml index b068c65e..c12d64f9 100644 --- a/logan/kubernetes-resources/logs-collection/configmap-cri.yaml +++ b/logan/kubernetes-resources/logs-collection/configmap-cri.yaml @@ -96,7 +96,19 @@ data: tag ${tag} - + + # Concat filter to handle partial logs in CRI/ContainerD + # This filter can not be clubbed with concat filter for multiline as both are mutually exclusive. + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + # timeout scenario should not occur in general for partial logs handling + timeout_label "@NORMAL" + + # Concat filter to handle multi-line log records. @type concat @@ -135,6 +147,18 @@ data: + # Concat filter to handle partial logs in CRI/ContainerD + # This filter can not be clubbed with concat filter for multiline as both are mutually exclusive. + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + # timeout scenario should not occur in general for partial logs handling + timeout_label "@NORMAL" + + # Concat filter to handle multi-line log records. @type concat @@ -173,6 +197,18 @@ data: + # Concat filter to handle partial logs in CRI/ContainerD + # This filter can not be clubbed with concat filter for multiline as both are mutually exclusive. + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + # timeout scenario should not occur in general for partial logs handling + timeout_label "@NORMAL" + + # Concat filter to handle multi-line log records. @type concat @@ -211,6 +247,18 @@ data: + # Concat filter to handle partial logs in CRI/ContainerD + # This filter can not be clubbed with concat filter for multiline as both are mutually exclusive. + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + # timeout scenario should not occur in general for partial logs handling + timeout_label "@NORMAL" + + # Concat filter to handle multi-line log records. @type concat @@ -248,6 +296,18 @@ data: tag ${tag} + + # Concat filter to handle partial logs in CRI/ContainerD + # This filter can not be clubbed with concat filter for multiline as both are mutually exclusive. + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + # timeout scenario should not occur in general for partial logs handling + timeout_label "@NORMAL" + # Config for Proxymux Logs Collection # Source config section to collect Proxymux logs from /var/log/containers/proxymux-client-*.log using Fluentd tail plugin. @@ -276,6 +336,18 @@ data: tag ${tag} + + # Concat filter to handle partial logs in CRI/ContainerD + # This filter can not be clubbed with concat filter for multiline as both are mutually exclusive. + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + # timeout scenario should not occur in general for partial logs handling + timeout_label "@NORMAL" + # Config for Cluster Autoscalar Logs Collection # Source config section to collect Cluster Autoscalar logs from /var/log/containers/cluster-autoscaler-*.log using Fluentd tail plugin. @@ -305,6 +377,18 @@ data: + # Concat filter to handle partial logs in CRI/ContainerD + # This filter can not be clubbed with concat filter for multiline as both are mutually exclusive. + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + # timeout scenario should not occur in general for partial logs handling + timeout_label "@NORMAL" + + # Concat filter to handle multi-line log records. @type concat @@ -596,3 +680,16 @@ data: tag ${tag} + + # Concat filter to handle partial logs in CRI/ContainerD + # This filter can not be clubbed with concat filter for multiline as both are mutually exclusive. + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + # timeout scenario should not occur in general for partial logs handling + timeout_label "@NORMAL" + + diff --git a/logan/terraform/oke/helm-chart b/logan/terraform/oke/helm-chart new file mode 120000 index 00000000..e42d5f72 --- /dev/null +++ b/logan/terraform/oke/helm-chart @@ -0,0 +1 @@ +../../helm-chart \ No newline at end of file diff --git a/logan/terraform/oke/inputs.tf b/logan/terraform/oke/inputs.tf index fd445729..90745790 100644 --- a/logan/terraform/oke/inputs.tf +++ b/logan/terraform/oke/inputs.tf @@ -1,59 +1,156 @@ -# When defined in the Terraform configuration, the following variables automatically prepopulate with values on the Console pages used to create and edit the stack. -# The stack's values are used when you select the Terraform actions Plan, Apply, and Destroy. -# - tenancy_ocid (tenancy OCID) -# - region (region) -# -# Ref - https://docs.oracle.com/en-us/iaas/Content/ResourceManager/Concepts/terraformconfigresourcemanager_topic-schema.htm#console-howto__prepop - - -variable "tenancy_ocid" { - type = string -} - -variable "region" { - type = string -} - -#### -## Inputs for deploying helm-chart -#### - -# OKE Cluster Compartment -variable "oke_cluster_compartment" { - type = string -} - -# OKE Cluster OCID -variable "oke_cluster_ocid" { - type = string -} - -# OKE Cluster Name -variable "oke_cluster_name" { - type = string -} - -# OCI LA Fluentd Container Image -variable "container_image_url" { - type = string -} - -# Kubernetes Namespace -variable "kubernetes_namespace" { - type = string -} - -# Fluentd Base Directory -variable "fluentd_baseDir_path" { - type = string -} - -# OCI Logging Analytics Namespace -variable "oci_la_namespace" { - type = string -} - -# OCI Logging Analytics LogGroup OCID -variable "oci_la_logGroup_id" { - type = string -} \ No newline at end of file +# When defined in the Terraform configuration, the following variables automatically prepopulate with values on the Console pages used to create and edit the stack. +# The stack's values are used when you select the Terraform actions Plan, Apply, and Destroy. +# - tenancy_ocid (tenancy OCID) +# - region (region) +# +# Ref - https://docs.oracle.com/en-us/iaas/Content/ResourceManager/Concepts/terraformconfigresourcemanager_topic-schema.htm#console-howto__prepop + +#### +## Provider Variables +#### + +variable "tenancy_ocid" { + type = string +} + +variable "region" { + type = string +} + +variable "user_ocid" { + type = string + default = "" +} + +variable "private_key_path" { + type = string + default = "" +} + +variable "fingerprint" { + type = string + default = "" +} + +#### +## Stack Variable +#### + +// Auto-pupulated while running RM Stack +variable "compartment_ocid" { + type = string + default = "" +} + +#### +## Boat configuration +#### + +variable "boat_auth" { + type = bool + default = false +} + +variable "boat_tenancy_ocid" { + type = string + default = "" +} + +#### +## Switches +#### + +variable "enable_helm_release" { + type = bool + default = true +} + +variable "enable_helm_debugging" { + type = bool + default = false +} + +variable "enable_dashboard_import" { + type = bool + default = true +} + +#### +## Dynamic Group and Policies +#### + +# Option to create Dynamic Group and Policies +variable "opt_create_dynamicGroup_and_policies" { + type = bool + default = false +} + +#### +## OKE Cluster Information +#### + +# OKE Cluster Compartment +variable "oke_compartment_ocid" { + type = string + default = "" +} + +# OKE Cluster OCID +variable "oke_cluster_ocid" { + type = string +} + +# Kubernetes Namespace +variable "kubernetes_namespace" { + type = string +} + +# Option to create Kubernetes Namespace +variable "opt_create_kubernetes_namespace" { + type = bool + default = true +} + +#### +## OCI Logging Analytics Information +#### + +# Compartment for creating logging analytics LogGroup and Dashboards +variable "oci_la_compartment_ocid" { + type = string + default = "" +} + +# Option to create Logging Analytics +variable "opt_create_new_la_logGroup" { + type = bool + default = false +} + +# OCI Logging Analytics LogGroup OCID +variable "oci_la_logGroup_id" { + type = string + default = "" +} + +# New Log Group to collect Kubernetes data +variable "oci_la_logGroup_name" { + type = string + default = "" +} + +#### +## Fluentd Configuration +#### + +# OCI LA Fluentd Container Image +variable "container_image_url" { + type = string +} + +# Fluentd Base Directory +variable "fluentd_baseDir_path" { + type = string + default = "/var/log" +} + diff --git a/logan/terraform/oke/main.tf b/logan/terraform/oke/main.tf new file mode 100644 index 00000000..a727d66d --- /dev/null +++ b/logan/terraform/oke/main.tf @@ -0,0 +1,57 @@ +// Import Kubernetes Dashboards +module "import_kubernetes_dashbords" { + source = "./modules/dashboards" + compartment_ocid = var.oci_la_compartment_ocid + + count = var.enable_dashboard_import ? 1 : 0 +} + +// Create Required Polcies and Dynamic Group +// Needs to be called with OCI Home Region Provider +module "policy_and_dynamic-group" { + source = "./modules/iam" + root_compartment_ocid = var.tenancy_ocid + oci_la_logGroup_compartment_ocid = var.oci_la_compartment_ocid + oke_compartment_ocid = var.oke_compartment_ocid + oke_cluster_ocid = var.oke_cluster_ocid + + count = var.opt_create_dynamicGroup_and_policies ? 1 : 0 + + providers = { + oci = oci.home_region + } +} + +// Create Logging Analytics Resorces +module "loggingAnalytics" { + source = "./modules/logan" + tenancy_ocid = var.tenancy_ocid + create_new_logGroup = var.opt_create_new_la_logGroup + new_logGroup_name = var.oci_la_logGroup_name + compartment_ocid = var.oci_la_compartment_ocid + existing_logGroup_id = var.oci_la_logGroup_id +} + + +// deploy oke-monitoring solution (helm release) +// always call this module +// - if enable_helm_release is set to false, helm release won't be deployed +// - We still need to call this, for the stack to avoid errors when enable_helm_release is set as false +module "helm_release" { + source = "./modules/helm" + + enable_helm_release = var.enable_helm_release + enable_helm_debugging = var.enable_helm_debugging + + opt_create_kubernetes_namespace = var.opt_create_kubernetes_namespace + oke_compartment_ocid = var.oke_compartment_ocid + oke_cluster_ocid = var.oke_cluster_ocid + container_image_url = var.container_image_url + kubernetes_namespace = var.kubernetes_namespace + + oci_la_logGroup_id = module.loggingAnalytics.oci_la_logGroup_ocid + oci_la_namespace = module.loggingAnalytics.oci_la_namespace + + fluentd_baseDir_path = var.fluentd_baseDir_path + +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/dashboards/dashboard.tf b/logan/terraform/oke/modules/dashboards/dashboard.tf new file mode 100644 index 00000000..56965339 --- /dev/null +++ b/logan/terraform/oke/modules/dashboards/dashboard.tf @@ -0,0 +1,8 @@ +locals { + dashboards = ["cluster.json", "node.json", "pod.json", "workload.json"] +} + +resource "oci_management_dashboard_management_dashboards_import" "multi_management_dashboards_import" { + for_each = toset(local.dashboards) + import_details = templatefile(format("%s/%s/%s", "${path.module}", "dashboards_json", each.value), { "compartment_ocid" : "${var.compartment_ocid}" }) +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/dashboards/dashboards_json/cluster.json b/logan/terraform/oke/modules/dashboards/dashboards_json/cluster.json new file mode 100644 index 00000000..52dcf371 --- /dev/null +++ b/logan/terraform/oke/modules/dashboards/dashboards_json/cluster.json @@ -0,0 +1,4001 @@ +{ + "dashboards": [ + { + "dashboardId": "ocid1.managementdashboard.oc1..aaaaaaaadnw772mvlk53iwvddekioympvddwfi7o23e6w7y4jijudm7jto6p", + "providerId": "log-analytics", + "providerName": "Logging Analytics", + "providerVersion": "3.0.0", + "tiles": [ + { + "displayName": "Events", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaayr7isdv55kdwvkac6rvwrveyiuhz245ulm5cpyu4ubhxo2ivauja", + "row": 15, + "column": 0, + "height": 3, + "width": 3, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Events Trend", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaavbqe5ti6eskwld5p45s5bw3ogqjse4hitzksqedw5ukzfovjjz6q", + "row": 15, + "column": 7, + "height": 3, + "width": 5, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "OS logs", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa77ykmdked5hxtgivn3tp6bfeurzktkmygpsfv3deviabdtf6nzeq", + "row": 12, + "column": 0, + "height": 3, + "width": 3, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Pods Running", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa22wdx45h3jee2s3bolb2odlozncgwobe3hvsz4euxkon3ulrrupq", + "row": 0, + "column": 7, + "height": 3, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Namespaces", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaz2t6olofn3gtksbhrreiudcf2fycyuxh4h3jhjjwnriyaf3dboia", + "row": 0, + "column": 5, + "height": 3, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Container States", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaafkiwdx7pz74snh2vuof2xeo2ui45n7ypgbnlnh4gdvj4rgnvayzq", + "row": 0, + "column": 9, + "height": 3, + "width": 3, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "OS Logs Trend", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaak6nbelmnppu7hu3s4oupbabamy6cl3zg6kwrxw5cknwlseau35a", + "row": 12, + "column": 7, + "height": 3, + "width": 5, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Container Logs", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaajclgqoy2k3l34novbxyzegk4vpsigqctrvbdovc24d7oicvm7ubq", + "row": 6, + "column": 0, + "height": 3, + "width": 3, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Container Logs Trend", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaafgmi4c3fb6yr7fyrw7pxlhr5tc6xxm4n5dn2aybqrxxsrgqyv4qa", + "row": 6, + "column": 7, + "height": 3, + "width": 5, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Kubernetes System Logs - Potential Issues", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaavjyl6y44necdvdditb7y3hsyjce37kxmcknh74da27xd5dppi73a", + "row": 9, + "column": 3, + "height": 3, + "width": 4, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Container Logs - Potential Issues", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaadpqs7ige2dnzz7ctryswljz7lp2q43syikbpczcrjdpyrrcwnl3a", + "row": 6, + "column": 3, + "height": 3, + "width": 4, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Kubernetes System Logs", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaanaexkcv2a3ep7fykd74uk7y56xtzawfsl2l47jikrxg6e4hco73q", + "row": 9, + "column": 0, + "height": 3, + "width": 3, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Kubernetes System Logs Trend", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaahivhwx2w43iyvomxzllkqulevtl4il5r2nsuv2hewfy4abl6k4dq", + "row": 9, + "column": 7, + "height": 3, + "width": 5, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "OS Logs - Potential Issues", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaho4toqwp6nxubjwqkjdhwyw7dowdz67i5mbl3lud3tpv4a7f7xxq", + "row": 12, + "column": 3, + "height": 3, + "width": 4, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Nodes Status", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaakbvlra6dtdo7sw73jqusmg4zg2zru4uq7kzlw5xtujlttql7nnsa", + "row": 0, + "column": 2, + "height": 3, + "width": 3, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Deployments Status", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa2g2ac3m7gq3uyki4bvjhl6qzion3t4xizwoq7rkbmxrhdwusqo3a", + "row": 3, + "column": 0, + "height": 3, + "width": 3, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "DaemonSets Status", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaad4szbz4qbmdd25lmp4nwiyc46qhd3br5uscfd3nnole4w2itl5kq", + "row": 3, + "column": 3, + "height": 3, + "width": 3, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "StatefulSets Status", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaap25vvfbomijoomm3naxqs5bleiva6sxrz3bkz4tculd2d3t46lga", + "row": 3, + "column": 6, + "height": 3, + "width": 3, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Jobs State", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaahmwfbdwzawxx3vlqk5pcfpcaaxm4u3bjp2jmsajomzrindx6oj2a", + "row": 3, + "column": 9, + "height": 3, + "width": 3, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Clusters", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaah2ucotridihloxymwasfoljtqpq7y6eezuoxqgrwqzegwncyqleq", + "row": 0, + "column": 0, + "height": 3, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + }, + { + "displayName": "Warning Events", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaam6h4rdc6kl7lood6l4kqesogk5t4n6xlyfvuyyj46gfp4uz7llca", + "row": 15, + "column": 3, + "height": 3, + "width": 4, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + } + } + ], + "displayName": "Kubernetes Cluster Summary", + "description": "Kubernetes Cluster Summary", + "compartmentId": "${compartment_ocid}", + "isOobDashboard": false, + "isShowInHome": false, + "metadataVersion": "2.0", + "isShowDescription": true, + "screenImage": "todo: provide value[mandatory]", + "nls": {}, + "uiConfig": { + "isFilteringEnabled": false, + "isRefreshEnabled": true, + "isTimeRangeEnabled": true + }, + "dataConfig": [], + "type": "normal", + "isFavorite": false, + "savedSearches": [ + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaavbqe5ti6eskwld5p45s5bw3ogqjse4hitzksqedw5ukzfovjjz6q", + "displayName": "Events Trend", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OKE Events Trend", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "line", + "visualizationOptions": { + "customVizOpt": { + "primaryFieldDname": "Original Log Content", + "primaryFieldIname": "mbody" + }, + "showLogScale": false + }, + "queryString": "'Log Source' = 'Kubernetes Event Object Logs' | timestats count as logrecords by Reason | sort -logrecords", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaavbqe5ti6eskwld5p45s5bw3ogqjse4hitzksqedw5ukzfovjjz6q", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaak6nbelmnppu7hu3s4oupbabamy6cl3zg6kwrxw5cknwlseau35a", + "displayName": "OS Logs Trend", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OS Logs Trend", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "line", + "visualizationOptions": {}, + "queryString": "'Log Source' in ('Linux Syslog Logs', 'Linux Secure Logs', 'Linux Cron Logs', 'Linux Mail Delivery Logs', 'Linux YUM Logs', 'Ksplice Logs', 'Linux Audit Logs') | timestats count as 'Log Records' by 'Log Source'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaakbvlra6dtdo7sw73jqusmg4zg2zru4uq7kzlw5xtujlttql7nnsa", + "displayName": "Nodes Ready Status", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Nodes Ready Status", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "pie", + "visualizationOptions": { + "customVizOpt": { + "primaryFieldDname": "Original Log Content", + "primaryFieldIname": "mbody" + }, + "hideLabel": true, + "changeLabel": "", + "formatNumber": false + }, + "queryString": "Time > dateRelative(15minute) and 'Log Source' = 'Kubernetes Node Object Logs' | eval Status = if('Ready Status' = true, 'Ready ', 'Not Ready') | stats distinctcount(Node) as 'Worker Node' by Status", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaakbvlra6dtdo7sw73jqusmg4zg2zru4uq7kzlw5xtujlttql7nnsa", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa22wdx45h3jee2s3bolb2odlozncgwobe3hvsz4euxkon3ulrrupq", + "displayName": "Pods Running", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Pods Running in last 15 mins", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "numUnits": 60, + "units": "MINUTES", + "timePeriod": "relative" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "changeLabel": "", + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Container States": { + "chartHeight": 295, + "chartType": [ + "trend" + ], + "classifyColorPalette": { + "1": "default", + "6": "udfs143", + "7": "service_status", + "8": null, + "9": null, + "10": null, + "11": "color1" + }, + "classifyColorPaletteCustom": { + "6": {}, + "7": { + "degraded performance|degraded": "waiting", + "major outage": "terminated", + "normal performance|operational": "runninng" + }, + "8": {}, + "9": {}, + "10": {}, + "11": {} + }, + "classifyFilters": { + "classifyNarrowResults": [ + "on" + ], + "selectAllFilters": [ + "on" + ], + "selectedClassifyFilters": [ + 6, + 7 + ], + "showClassifyFilters": [] + }, + "colorColumn": 9, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "drilldown": "on", + "groupAlias": "Groups", + "groupAliasS": "Group", + "showAnomaly": [ + "off" + ], + "showBaseline": [ + null + ], + "showDimensions": [ + "on" + ], + "sizeColumn": 11, + "swapXY": [ + "off" + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ] + } + } + }, + "formatNumber": false, + "hideLabel": true + }, + "queryString": "'Log Source' = 'Kubernetes Pod Object Logs' and 'Pod Phase' = running | stats latest('Pod Phase') as Status by Pod", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaa22wdx45h3jee2s3bolb2odlozncgwobe3hvsz4euxkon3ulrrupq", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaayr7isdv55kdwvkac6rvwrveyiuhz245ulm5cpyu4ubhxo2ivauja", + "displayName": "Events", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OKE Events Summary", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "enableWidgetInApp": true, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaayr7isdv55kdwvkac6rvwrveyiuhz245ulm5cpyu4ubhxo2ivauja", + "queryString": "'Log Source' = 'Kubernetes Event Object Logs' | stats count as logrecords by Reason | sort -logrecords", + "scopeFilters": { + "Entity": { + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "type": "Entity", + "values": [] + }, + "LogGroup": { + "flags": { + "IncludeSubCompartments": true + }, + "type": "LogGroup", + "values": [ + { + "label": "###### (root)/LogAnalytics", + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + } + ] + }, + "filters": [ + { + "flags": { + "IncludeSubCompartments": true + }, + "type": "LogGroup", + "values": [ + { + "label": "###### (root)/LogAnalytics", + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + } + ] + }, + { + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "type": "Entity", + "values": [] + } + ], + "isGlobal": false + }, + "showTitle": true, + "timeSelection": { + "timePeriod": "l24hr" + }, + "visualizationOptions": {}, + "visualizationType": "pie", + "vizType": "lxSavedSearchWidgetType" + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa77ykmdked5hxtgivn3tp6bfeurzktkmygpsfv3deviabdtf6nzeq", + "displayName": "OS logs", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OS logs from OKE Cluster", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "queryString": "'Log Source' in ('Linux Syslog Logs', 'Linux Secure Logs', 'Linux Cron Logs', 'Linux Mail Delivery Logs', 'Linux YUM Logs', 'Ksplice Logs', 'Linux Audit Logs') | stats count as logrecords by 'Log Source' | sort -logrecords", + "scopeFilters": { + "Entity": { + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "type": "Entity", + "values": [] + }, + "LogGroup": { + "flags": { + "IncludeSubCompartments": true + }, + "type": "LogGroup", + "values": [ + { + "label": "###### (root)/LogAnalytics", + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + } + ] + }, + "LogSet": { + "flags": {}, + "type": "LogSet", + "values": [] + }, + "MetricCompartment": { + "flags": {}, + "type": "MetricCompartment", + "values": [ + { + "label": "datascience", + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + } + ] + }, + "ResourceCompartment": { + "flags": { + "IncludeSubCompartments": true + }, + "type": "ResourceCompartment", + "values": [ + { + "label": "datascience", + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + } + ] + }, + "filters": [ + { + "flags": { + "IncludeSubCompartments": true + }, + "type": "LogGroup", + "values": [ + { + "label": "###### (root)/LogAnalytics", + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + } + ] + }, + { + "flags": {}, + "type": "MetricCompartment", + "values": [ + { + "label": "datascience", + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + } + ] + }, + { + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "type": "Entity", + "values": [] + }, + { + "flags": {}, + "type": "LogSet", + "values": [] + }, + { + "flags": { + "IncludeSubCompartments": true + }, + "type": "ResourceCompartment", + "values": [ + { + "label": "datascience", + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + } + ] + } + ], + "isGlobal": false + }, + "showTitle": true, + "timeSelection": { + "numUnits": 60, + "timePeriod": "relative", + "units": "MINUTES" + }, + "visualizationOptions": {}, + "visualizationType": "pie" + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaz2t6olofn3gtksbhrreiudcf2fycyuxh4h3jhjjwnriyaf3dboia", + "displayName": "Namespace Count", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Reported namespaces", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "numUnits": 60, + "units": "MINUTES", + "timePeriod": "relative" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "changeLabel": "", + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Container States": { + "chartHeight": 295, + "chartType": [ + "trend" + ], + "classifyColorPalette": { + "1": "default", + "6": "udfs143", + "7": "service_status", + "8": null, + "9": null, + "10": null, + "11": "color1" + }, + "classifyColorPaletteCustom": { + "6": {}, + "7": { + "degraded performance|degraded": "waiting", + "major outage": "terminated", + "normal performance|operational": "runninng" + }, + "8": {}, + "9": {}, + "10": {}, + "11": {} + }, + "classifyFilters": { + "classifyNarrowResults": [ + "on" + ], + "selectAllFilters": [ + "on" + ], + "selectedClassifyFilters": [ + 6, + 7 + ], + "showClassifyFilters": [] + }, + "colorColumn": 9, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "drilldown": "on", + "groupAlias": "Groups", + "groupAliasS": "Group", + "showAnomaly": [ + "off" + ], + "showBaseline": [ + null + ], + "showDimensions": [ + "on" + ], + "sizeColumn": 11, + "swapXY": [ + "off" + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ] + } + } + }, + "formatNumber": false, + "hideLabel": true + }, + "queryString": "'Log Source' = 'Kubernetes Namespace Object Logs' | stats latest(Status) as Status by Namespace", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaaz2t6olofn3gtksbhrreiudcf2fycyuxh4h3jhjjwnriyaf3dboia", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaadpqs7ige2dnzz7ctryswljz7lp2q43syikbpczcrjdpyrrcwnl3a", + "displayName": "Container Logs - Potential Issues", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Container Logs - Potential Issues", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l14day" + }, + "showTitle": true, + "visualizationType": "link", + "visualizationOptions": { + "showLogScale": true, + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Potential Issues": { + "drilldown": "on", + "chartType": "trend", + "showDimensions": [ + "on" + ], + "chartHeight": 200, + "swapXY": [ + "off" + ], + "showAnomaly": [ + null + ], + "showBaseline": [ + "off" + ], + "groupAlias": "Groups", + "groupAliasS": "Group", + "sizeColumn": 8, + "colorColumn": 8, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ], + "classifyColorPalette": { + "1": "default", + "7": "func1_unique_msrcid", + "8": "default" + }, + "classifyColorPaletteCustom": { + "7": {} + }, + "classifyFilters": { + "selectAllFilters": [ + "on" + ], + "showClassifyFilters": [], + "selectedClassifyFilters": [ + 6, + 7 + ], + "classifyNarrowResults": [ + "on" + ] + } + } + } + } + }, + "queryString": "'Log Source' not like 'Kubernetes % Object Logs' and 'Log Source' not in ('Kubernetes Container Status Logs', 'Kubernetes Core DNS Logs', 'OKE Proxymux Client Logs', 'Kubernetes Flannel Logs', 'Kubernetes Proxy Logs', 'Kubernetes CSI Node Driver Logs', 'Kubernetes DNS Autoscaler Logs', 'Kubernetes Autoscaler Logs') and Pod != null | link Node, Pod, cluster() | where 'Potential Issue' = '1' | stats unique('Log Source') as 'Log Source' | rename 'Cluster Sample' as Issue | nlp keywords(Issue) as 'Issue Keywords' | classify topcount = 300 'Start Time', 'Log Source', Count as 'Potential Issues' | fields -'Potential Issue'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaanaexkcv2a3ep7fykd74uk7y56xtzawfsl2l47jikrxg6e4hco73q", + "displayName": "Kubernetes System Logs", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes System Logs", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "pie", + "visualizationOptions": {}, + "queryString": "'Log Source' in ('Kubernetes Kubelet Logs', 'Kubernetes Core DNS Logs', 'OKE Proxymux Client Logs', 'Kubernetes Flannel Logs', 'Kubernetes Proxy Logs', 'Kubernetes CSI Node Driver Logs', 'Kubernetes DNS Autoscaler Logs') | stats count as logrecords by 'Log Source' | sort -logrecords", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaavjyl6y44necdvdditb7y3hsyjce37kxmcknh74da27xd5dppi73a", + "displayName": "Kubernetes System Logs - Potential Issues", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes System Logs - Potential Issues", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l8hr" + }, + "showTitle": true, + "visualizationType": "link", + "visualizationOptions": { + "showLogScale": true, + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Potential Issues": { + "drilldown": "on", + "chartType": "trend", + "showDimensions": [ + "on" + ], + "chartHeight": 200, + "swapXY": [ + "off" + ], + "showAnomaly": [ + null + ], + "showBaseline": [ + "off" + ], + "groupAlias": "Groups", + "groupAliasS": "Group", + "sizeColumn": 8, + "colorColumn": 8, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ], + "classifyColorPalette": { + "1": "default", + "7": "func1_unique_msrcid", + "8": "default" + }, + "classifyColorPaletteCustom": { + "7": {} + }, + "classifyFilters": { + "selectAllFilters": [ + "on" + ], + "showClassifyFilters": [], + "selectedClassifyFilters": [ + 6, + 7 + ], + "classifyNarrowResults": [ + "on" + ] + } + } + } + } + }, + "queryString": "'Log Source' in ('Kubernetes Kubelet Logs', 'Kubernetes Core DNS Logs', 'OKE Proxymux Client Logs', 'Kubernetes Flannel Logs', 'Kubernetes Proxy Logs', 'Kubernetes CSI Node Driver Logs', 'Kubernetes DNS Autoscaler Logs') | link Node, Pod, cluster() | where 'Potential Issue' = '1' | stats unique('Log Source') as 'Log Source' | rename 'Cluster Sample' as Issue | nlp keywords(Issue) as 'Issue Keywords' | classify topcount = 300 'Start Time', 'Log Source', Count as 'Potential Issues' | fields -'Potential Issue'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaavjyl6y44necdvdditb7y3hsyjce37kxmcknh74da27xd5dppi73a", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaafkiwdx7pz74snh2vuof2xeo2ui45n7ypgbnlnh4gdvj4rgnvayzq", + "displayName": "Running Containers", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OKE total number of running containers", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "pie", + "visualizationOptions": { + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Container States": { + "chartHeight": 295, + "chartType": [ + "trend" + ], + "classifyColorPalette": { + "1": "default", + "6": "udfs143", + "7": "service_status", + "8": null, + "9": null, + "10": null, + "11": "color1" + }, + "classifyColorPaletteCustom": { + "6": {}, + "7": { + "degraded performance|degraded": "waiting", + "major outage": "terminated", + "normal performance|operational": "runninng" + }, + "8": {}, + "9": {}, + "10": {}, + "11": {} + }, + "classifyFilters": { + "classifyNarrowResults": [ + "on" + ], + "selectAllFilters": [ + "on" + ], + "selectedClassifyFilters": [ + 6, + 7 + ], + "showClassifyFilters": [] + }, + "colorColumn": 9, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "drilldown": "on", + "groupAlias": "Groups", + "groupAliasS": "Group", + "showAnomaly": [ + "off" + ], + "showBaseline": [ + null + ], + "showDimensions": [ + "on" + ], + "sizeColumn": 11, + "swapXY": [ + "off" + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ] + } + } + } + }, + "queryString": "Time > dateRelative(15minute) and 'Log Source' = 'Kubernetes Container Status Logs' | stats distinctcount('Container ID') as Containers by Status", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaafkiwdx7pz74snh2vuof2xeo2ui45n7ypgbnlnh4gdvj4rgnvayzq", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaajclgqoy2k3l34novbxyzegk4vpsigqctrvbdovc24d7oicvm7ubq", + "displayName": "Container Logs", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l14day" + }, + "showTitle": true, + "visualizationType": "pie", + "visualizationOptions": {}, + "queryString": "'Log Source' not like 'Kubernetes % Object Logs' and 'Log Source' not in ('Kubernetes Container Status Logs', 'Kubernetes Core DNS Logs', 'OKE Proxymux Client Logs', 'Kubernetes Flannel Logs', 'Kubernetes Proxy Logs', 'Kubernetes CSI Node Driver Logs', 'Kubernetes DNS Autoscaler Logs', 'Kubernetes Autoscaler Logs') and Pod != null | stats count as logrecords by 'Log Source'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaafgmi4c3fb6yr7fyrw7pxlhr5tc6xxm4n5dn2aybqrxxsrgqyv4qa", + "displayName": "Container Logs Trend", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Container Logs Trend", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l14day" + }, + "showTitle": true, + "visualizationType": "line", + "visualizationOptions": {}, + "queryString": "'Log Source' not like 'Kubernetes % Object Logs' and 'Log Source' not in ('Kubernetes Container Status Logs', 'Kubernetes Core DNS Logs', 'OKE Proxymux Client Logs', 'Kubernetes Flannel Logs', 'Kubernetes Proxy Logs', 'Kubernetes CSI Node Driver Logs', 'Kubernetes DNS Autoscaler Logs', 'Kubernetes Autoscaler Logs') and Pod != null | timestats count as 'Log Records' by 'Log Source'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaahivhwx2w43iyvomxzllkqulevtl4il5r2nsuv2hewfy4abl6k4dq", + "displayName": "Kubernetes System Logs Trend", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes System Logs Trend", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "line", + "visualizationOptions": {}, + "queryString": "'Log Source' in ('Kubernetes Kubelet Logs', 'Kubernetes Core DNS Logs', 'OKE Proxymux Client Logs', 'Kubernetes Flannel Logs', 'Kubernetes Proxy Logs', 'Kubernetes CSI Node Driver Logs', 'Kubernetes DNS Autoscaler Logs') | timestats count as 'Log Records' by 'Log Source'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaap25vvfbomijoomm3naxqs5bleiva6sxrz3bkz4tculd2d3t46lga", + "displayName": "StatefulSets Status", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "StatefulSets Status", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "pie", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes StatefulSet Object Logs' | stats latest('Desired Replicas') as Desired, latest('Ready Replicas') as Ready by StatefulSet | eval ex = Desired - Ready = 0 | eval Status = if(ex = 1, Available, 'Not Available') | stats distinctcount(StatefulSet) as StatefulSets by Status", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaap25vvfbomijoomm3naxqs5bleiva6sxrz3bkz4tculd2d3t46lga", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaah2ucotridihloxymwasfoljtqpq7y6eezuoxqgrwqzegwncyqleq", + "displayName": "Kubernetes Clusters", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes Clusters", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "hideLabel": true, + "changeLabel": "", + "formatNumber": false, + "customVizOpt": { + "primaryFieldDname": "Original Log Content", + "primaryFieldIname": "mbody" + } + }, + "queryString": "* | stats distinctcount('Kubernetes Cluster Name') as Clusters", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaho4toqwp6nxubjwqkjdhwyw7dowdz67i5mbl3lud3tpv4a7f7xxq", + "displayName": "OS Logs - Potential Issues", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OS Logs - Potential Issues", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "numUnits": 59, + "units": "MINUTES", + "timePeriod": "relative" + }, + "showTitle": true, + "visualizationType": "link", + "visualizationOptions": { + "showLogScale": true, + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Potential Issues": { + "drilldown": "on", + "chartType": "trend", + "showDimensions": [ + "on" + ], + "chartHeight": 200, + "swapXY": [ + "off" + ], + "showAnomaly": [ + null + ], + "showBaseline": [ + "off" + ], + "groupAlias": "Groups", + "groupAliasS": "Group", + "sizeColumn": 8, + "colorColumn": 8, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ], + "classifyColorPalette": { + "1": "default", + "7": "func1_unique_msrcid", + "8": "default" + }, + "classifyColorPaletteCustom": { + "7": {} + }, + "classifyFilters": { + "selectAllFilters": [ + "on" + ], + "showClassifyFilters": [], + "selectedClassifyFilters": [ + 6, + 7 + ], + "classifyNarrowResults": [ + "on" + ] + } + } + } + } + }, + "queryString": "'Log Source' in ('Linux Syslog Logs', 'Linux Secure Logs', 'Linux Cron Logs', 'Linux Mail Delivery Logs', 'Linux YUM Logs', 'Ksplice Logs', 'Linux Audit Logs') | link Node, cluster() | where 'Potential Issue' = '1' | stats unique('Log Source') as 'Log Source' | rename 'Cluster Sample' as Issue | nlp keywords(Issue) as 'Issue Keywords' | classify topcount = 300 'Start Time', 'Log Source', Count as 'Potential Issues' | fields -'Potential Issue'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaahmwfbdwzawxx3vlqk5pcfpcaaxm4u3bjp2jmsajomzrindx6oj2a", + "displayName": "Jobs State", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Jobs State", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "pie", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes Job Object Logs' | stats distinctcount(Job) as Jobs by Status", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaad4szbz4qbmdd25lmp4nwiyc46qhd3br5uscfd3nnole4w2itl5kq", + "displayName": "DaemonSets Status", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "DaemonSets Status", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "pie", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes DaemonSet Object Logs' | stats latest('Desired Number Scheduled') as Desired, latest('Current Scheduled') as 'Current Scheduled', latest('Ready Count') as Ready by DaemonSet | eval ex = Desired - Ready = 0 | eval Status = if(ex = 1, Available, 'Not Available') | stats distinctcount(DaemonSet) as DaemonSets by Status", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaad4szbz4qbmdd25lmp4nwiyc46qhd3br5uscfd3nnole4w2itl5kq", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaam6h4rdc6kl7lood6l4kqesogk5t4n6xlyfvuyyj46gfp4uz7llca", + "displayName": "Warning Events", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Warning type Events", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "summary_table", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes Event Object Logs' and 'Event Type' = warning | rename Reason as Event | stats count, trend by Event | sort -Count", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa2g2ac3m7gq3uyki4bvjhl6qzion3t4xizwoq7rkbmxrhdwusqo3a", + "displayName": "Deployments Status", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Deployments Status", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "pie", + "visualizationOptions": { + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Container States": { + "chartHeight": 295, + "chartType": [ + "trend" + ], + "classifyColorPalette": { + "1": "default", + "6": "udfs143", + "7": "service_status", + "8": null, + "9": null, + "10": null, + "11": "color1" + }, + "classifyColorPaletteCustom": { + "6": {}, + "7": { + "degraded performance|degraded": "waiting", + "major outage": "terminated", + "normal performance|operational": "runninng" + }, + "8": {}, + "9": {}, + "10": {}, + "11": {} + }, + "classifyFilters": { + "classifyNarrowResults": [ + "on" + ], + "selectAllFilters": [ + "on" + ], + "selectedClassifyFilters": [ + 6, + 7 + ], + "showClassifyFilters": [] + }, + "colorColumn": 9, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "drilldown": "on", + "groupAlias": "Groups", + "groupAliasS": "Group", + "showAnomaly": [ + "off" + ], + "showBaseline": [ + null + ], + "showDimensions": [ + "on" + ], + "sizeColumn": 11, + "swapXY": [ + "off" + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ] + } + } + } + }, + "queryString": "'Log Source' = 'Kubernetes Deployment Object Logs' | eval Status = if('Available Status' = true, Available, 'Not Available') | stats distinctcount(Deployment) as Deployments by Status", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaa2g2ac3m7gq3uyki4bvjhl6qzion3t4xizwoq7rkbmxrhdwusqo3a", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + } + ], + "parametersConfig": [ + { + "savedSearchId": "OOBSS-management-dashboard-filter-4a", + "displayName": "Log Group Compartment", + "state": "DEFAULT", + "uiConfig": { + "internalKey": "OOBSS-management-dashboard-filter-4a", + "filterName": "log-analytics-loggroup-filter", + "vizFilterType": "lxLogGroupDashFilterType", + "defaultWidth": 3, + "minWidth": 3 + }, + "parametersMap": { + "isStoreInLocalStorage": true + }, + "name": "log-analytics-loggroup-filter", + "localStorageKey": "log-analytics-loggroup-filter" + }, + { + "savedSearchId": "OOBSS-management-dashboard-filter-2a", + "displayName": "Entity", + "width": 6, + "state": "DEFAULT", + "uiConfig": { + "internalKey": "OOBSS-management-dashboard-filter-2a", + "filterName": "log-analytics-entity-filter", + "vizFilterType": "lxEntityDashFilterType", + "defaultWidth": 6, + "minWidth": 6 + }, + "parametersMap": { + "isStoreInLocalStorage": true + }, + "name": "log-analytics-entity-filter", + "localStorageKey": "log-analytics-entity-filter" + }, + { + "savedSearchId": "OOBSS-management-dashboard-filter-xlog", + "displayName": "Kubernetes Cluster", + "state": "DEFAULT", + "parametersMap": { + "isStoreInLocalStorage": true, + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "logFieldName": "Kubernetes Cluster Name" + }, + "name": "log-analytics-log-field-filter", + "localStorageKey": "logField_Kubernetes Cluster Name" + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "src": "$(context.time)" + } + ], + "drilldownConfig": [], + "freeformTags": {}, + "definedTags": {} + } + ] +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/dashboards/dashboards_json/node.json b/logan/terraform/oke/modules/dashboards/dashboards_json/node.json new file mode 100644 index 00000000..117a914a --- /dev/null +++ b/logan/terraform/oke/modules/dashboards/dashboards_json/node.json @@ -0,0 +1,1793 @@ +{ + "dashboards": [ + { + "dashboardId": "ocid1.managementdashboard.oc1..aaaaaaaan2ahtswhhusn6uv7az4cbhod6dsct5gxdhmcb6dj7gikcuqpfdba", + "providerId": "log-analytics", + "providerName": "Logging Analytics", + "providerVersion": "3.0.0", + "tiles": [ + { + "displayName": "Node Status", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaacssfzpcndlua7r55j5oxy7b2an27n5l73mnxn727rgbc2ayi6bzq", + "row": 0, + "column": 2, + "height": 3, + "width": 10, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Node": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Node Info", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaikzelasbh22yodsk2lap6ppu5rfix5ngyogflfximvlwoygu4vnq", + "row": 3, + "column": 0, + "height": 4, + "width": 7, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Node": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Logs", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa3d7t5vgw3ldws56oi7smqfq3boxdtvfxnz7du67rixxo4q6v3mnq", + "row": 3, + "column": 7, + "height": 4, + "width": 5, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Node": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Pods running on a Node", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa6vyyh6wc3v7kevjri7gsi2vf7hmczodf3ykhwivcntt2xhkyavca", + "row": 7, + "column": 0, + "height": 3, + "width": 8, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Node": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Node Capacity", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa6qerumqq6hxye3w5sg6zb4w2mcesa35kgwqnqr5n7br4ayyxy7ya", + "row": 10, + "column": 0, + "height": 3, + "width": 6, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Node": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Node Allocatable", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaibkjhz6mejrjhu2fn5efazcwyekb54kb4dcscobuv7lxxpe52bhq", + "row": 10, + "column": 6, + "height": 3, + "width": 6, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Node": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Nodes", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa4j4ts5oplk2fxcvv7qp26krpmnysk7amh2chgh335ctf26oiuyfq", + "row": 0, + "column": 0, + "height": 3, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Node": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Failed/Pending Pods per Node", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaamaaktdzvahebkwy6ljzrvdftycauaihk57ytvmts654w74k5hzeq", + "row": 7, + "column": 8, + "height": 3, + "width": 4, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Node": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + } + ], + "displayName": "Kubernetes Nodes", + "description": "Kubernetes Nodes", + "compartmentId": "${compartment_ocid}", + "isOobDashboard": false, + "isShowInHome": false, + "metadataVersion": "2.0", + "isShowDescription": true, + "screenImage": "todo: provide value[mandatory]", + "nls": {}, + "uiConfig": { + "isFilteringEnabled": false, + "isRefreshEnabled": true, + "isTimeRangeEnabled": true + }, + "dataConfig": [], + "type": "normal", + "isFavorite": false, + "savedSearches": [ + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaikzelasbh22yodsk2lap6ppu5rfix5ngyogflfximvlwoygu4vnq", + "displayName": "Node Info", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OKE Node Info", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "numUnits": 60, + "units": "MINUTES", + "timePeriod": "relative" + }, + "showTitle": true, + "visualizationType": "summary_table", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes Node Object Logs' | stats latest(Architecture) as Arch, latest('Operating System Image') as 'OS Image', latest('Kernel Version') as Kernel, latest('Container Runtime Version') as 'Container Runtime', latest('Kubelet Version') as Kubelet, latest('KubeProxy Version') as KubeProxy by Node", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaaikzelasbh22yodsk2lap6ppu5rfix5ngyogflfximvlwoygu4vnq", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa6qerumqq6hxye3w5sg6zb4w2mcesa35kgwqnqr5n7br4ayyxy7ya", + "displayName": "Node Capacity", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OKE Node Capacity", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "numUnits": 60, + "units": "MINUTES", + "timePeriod": "relative" + }, + "showTitle": true, + "visualizationType": "summary_table", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes Node Object Logs' | stats latest('CPU Capacity') as CPU, latest('Memory Capacity') as 'Memory (Ki)', latest('Storage Capacity') as 'Storage (Ki)', latest('Pods Capacity') as Pods by Node", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics", + "pos": 0 + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics", + "pos": 0 + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaa6qerumqq6hxye3w5sg6zb4w2mcesa35kgwqnqr5n7br4ayyxy7ya", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaamaaktdzvahebkwy6ljzrvdftycauaihk57ytvmts654w74k5hzeq", + "displayName": "Failed/Pending Pods per Node", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Running Pods per Node", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l24hr" + }, + "showTitle": true, + "visualizationType": "treemap", + "visualizationOptions": { + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Pods over time": { + "chartHeight": 200, + "chartType": [ + "bubble" + ], + "classifyColorPalette": { + "1": "default", + "7": "default", + "8": "udfs84" + }, + "classifyColorPaletteCustom": { + "8": {} + }, + "classifyFilters": { + "classifyNarrowResults": [ + "on" + ], + "selectAllFilters": [ + "on" + ], + "selectedClassifyFilters": [ + 6, + 7, + 8 + ], + "showClassifyFilters": [] + }, + "colorColumn": 8, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "drilldown": "on", + "groupAlias": "Groups", + "groupAliasS": "Group", + "showAnomaly": [ + "on" + ], + "showBaseline": [ + "off" + ], + "showDimensions": [ + "on" + ], + "sizeColumn": 1, + "swapXY": [ + "off" + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ] + }, + "Pods per Nod": { + "chartHeight": 200, + "chartType": [ + "treemap" + ], + "classifyColorPalette": { + "1": "default", + "6": "func2_latest_udfs84", + "7": "default" + }, + "classifyColorPaletteCustom": { + "6": {} + }, + "classifyFilters": { + "classifyNarrowResults": [ + "on" + ], + "selectAllFilters": [ + "on" + ], + "selectedClassifyFilters": [ + 6, + 7 + ], + "showClassifyFilters": [] + }, + "colorColumn": 1, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "drilldown": "on", + "groupAlias": "Groups", + "groupAliasS": "Group", + "showAnomaly": [ + "on" + ], + "showBaseline": [ + "off" + ], + "showDimensions": [ + "on" + ], + "sizeColumn": 1, + "swapXY": [], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ] + }, + "Pods per Node": { + "chartHeight": 200, + "chartType": [ + "treemap" + ], + "classifyColorPalette": { + "1": "default", + "6": "func2_latest_udfs84", + "7": "default" + }, + "classifyColorPaletteCustom": { + "6": {} + }, + "classifyFilters": { + "classifyNarrowResults": [ + "on" + ], + "selectAllFilters": [ + "on" + ], + "selectedClassifyFilters": [ + 6, + 7 + ], + "showClassifyFilters": [] + }, + "colorColumn": 1, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "drilldown": "on", + "groupAlias": "Groups", + "groupAliasS": "Group", + "showAnomaly": [ + "on" + ], + "showBaseline": [ + "off" + ], + "showDimensions": [ + "on" + ], + "sizeColumn": 1, + "swapXY": [ + "off" + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ] + } + }, + "LINK_SEARCH_SETTINGS": { + "chartHeightVal": 200, + "chartOptions": [ + "bar" + ], + "chartType": "bar", + "chartWidthVal": 60, + "columnAliases": {}, + "dashboardOptions": { + "showAnalyzeTab": [], + "showChartsTab": [], + "showSummary": [], + "showTable": [], + "showTabs": [ + "on" + ] + }, + "groupAliasP": "Groups", + "groupAliasS": "Group", + "hiddenCharts": { + "groupColumn": true + }, + "hiddenClassifyCharts": {}, + "hiddenColumns": { + "eventstats3_func1_count_func1_latest_udfs127": true, + "g_count": true, + "g_duration": true, + "query_end_time": true, + "query_start_time": true, + "trend_interval": true, + "trend_interval_unit": true + }, + "highlightColumnStatus": {}, + "linkSummaryInput": "", + "logAliasP": "Log Records", + "mergeHighlightColumns": [ + "off" + ], + "showAllRegions": [], + "showCombinedCharts": [ + "off" + ], + "showNonUnitRawData": [ + "off" + ], + "showStack": [ + "off" + ], + "showToolTips": [ + "on" + ], + "showUnitRawData": [], + "smartGroup": [ + "off" + ], + "styleDefaults": { + "lineType": "curved", + "markerDisplayed": "on" + }, + "tableColumns": [ + "Kubernetes Pod Name", + "Start Time (UTC+05:30)", + "End Time (UTC+05:30)", + "Status", + "Node", + "Start Time (UTC-08:00)", + "End Time (UTC-08:00)", + "Kubernetes Node Name", + "Pod" + ] + }, + "primaryFieldIname": "mbody" + } + }, + "queryString": "'Log Source' = 'Kubernetes Pod Object Logs' and 'Pod Phase' in (failed, pending) and Node != null | stats distinctcount(Pod) as Pods by Node, 'Pod Phase'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaamaaktdzvahebkwy6ljzrvdftycauaihk57ytvmts654w74k5hzeq", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaacssfzpcndlua7r55j5oxy7b2an27n5l73mnxn727rgbc2ayi6bzq", + "displayName": "Node Status", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OKE Node Status", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "numUnits": 60, + "units": "MINUTES", + "timePeriod": "relative" + }, + "showTitle": true, + "visualizationType": "link", + "visualizationOptions": { + "showLogScale": false, + "customVizOpt": { + "LINK_SEARCH_SETTINGS": { + "groupAliasS": "Group", + "groupAliasP": "Groups", + "logAliasP": "Log Records", + "showUnitRawData": [], + "showNonUnitRawData": [ + "off" + ], + "mergeHighlightColumns": [ + "off" + ], + "columnAliases": {}, + "hiddenCharts": { + "groupColumn": true + }, + "hiddenColumns": { + "g_duration": true, + "query_start_time": true, + "query_end_time": true, + "trend_interval": true, + "trend_interval_unit": true + }, + "highlightColumnStatus": {}, + "hiddenClassifyCharts": {}, + "showCombinedCharts": [ + "off" + ], + "showStack": [ + "off" + ], + "smartGroup": [ + "off" + ], + "styleDefaults": { + "lineType": "curved", + "markerDisplayed": "on" + }, + "chartOptions": "bar", + "chartType": "bar", + "chartHeightVal": 200, + "chartWidthVal": 60, + "showToolTips": [ + "on" + ], + "dashboardOptions": { + "showTabs": [], + "showSummary": [], + "showAnalyzeTab": [], + "showChartsTab": [], + "showTable": [ + "on" + ] + }, + "linkSummaryInput": "", + "showAllRegions": [] + } + } + }, + "queryString": "'Log Source' = 'Kubernetes Node Object Logs' | link Node, 'Ready Status' | stats latest('Disk Pressure Status') as 'Disk Pressure', latest('Memory Pressure Status') as 'Memory Pressure', latest('PID Pressure Status') as 'PID Pressure' | fields 'End Time' as 'Last Reported', Count as Records", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaacssfzpcndlua7r55j5oxy7b2an27n5l73mnxn727rgbc2ayi6bzq", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa6vyyh6wc3v7kevjri7gsi2vf7hmczodf3ykhwivcntt2xhkyavca", + "displayName": "Pods running on a Node", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Pods running on a given OKE Node", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "link", + "visualizationOptions": { + "customVizOpt": { + "LINK_SEARCH_SETTINGS": { + "chartHeightVal": 200, + "chartOptions": "bar", + "chartType": "bar", + "chartWidthVal": 60, + "columnAliases": {}, + "dashboardOptions": { + "showAnalyzeTab": [], + "showChartsTab": [], + "showSummary": [ + "on" + ], + "showTable": [ + "on" + ], + "showTabs": [ + "on" + ] + }, + "groupAliasP": "Groups", + "groupAliasS": "Group", + "hiddenCharts": { + "groupColumn": true + }, + "hiddenClassifyCharts": {}, + "hiddenColumns": { + "g_count": false, + "g_duration": true, + "query_end_time": true, + "query_start_time": true, + "trend_interval": true, + "trend_interval_unit": true + }, + "highlightColumnStatus": {}, + "linkSummaryInput": "", + "logAliasP": "Log Records", + "mergeHighlightColumns": [ + "off" + ], + "showAllRegions": [], + "showCombinedCharts": [ + "off" + ], + "showNonUnitRawData": [ + "off" + ], + "showStack": [ + "off" + ], + "showToolTips": [ + "on" + ], + "showUnitRawData": [], + "smartGroup": [ + "off" + ], + "styleDefaults": { + "lineType": "curved", + "markerDisplayed": "on" + } + }, + "LINK_CLASSIFY_SETTINGS": { + "Pods Analysis": { + "drilldown": "on", + "chartType": "bubble", + "showDimensions": [ + "on" + ], + "chartHeight": 200, + "swapXY": [ + "off" + ], + "showAnomaly": [ + "off" + ], + "showBaseline": [ + "off" + ], + "groupAlias": "Groups", + "groupAliasS": "Group", + "sizeColumn": 8, + "colorColumn": 9, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ], + "classifyColorPalette": { + "1": "default", + "6": "func2_unique_namespace", + "7": "process_status", + "8": "default", + "9": "service_status", + "10": "default" + }, + "classifyColorPaletteCustom": { + "6": {}, + "7": {}, + "8": {}, + "9": { + "normal performance|operational": "running | succeeded", + "major outage": "pending" + } + }, + "classifyFilters": { + "selectAllFilters": [ + "on" + ], + "showClassifyFilters": [], + "selectedClassifyFilters": [ + 6, + 7, + 8, + 9 + ], + "classifyNarrowResults": [ + "on" + ] + } + } + } + }, + "showLogScale": false + }, + "queryString": "'Log Source' = 'Kubernetes Pod Object Logs' | link Pod, Node | stats latest('Pod Phase') as Status, unique(Namespace) as Namespace | classify topcount = 300 correlate = -*, Pod Namespace, Node, Count, Status as 'Pods Analysis'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaa6vyyh6wc3v7kevjri7gsi2vf7hmczodf3ykhwivcntt2xhkyavca", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa4j4ts5oplk2fxcvv7qp26krpmnysk7amh2chgh335ctf26oiuyfq", + "displayName": "Nodes", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OKE Nodes", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "hideLabel": true, + "changeLabel": "", + "formatNumber": false + }, + "queryString": "'Log Source' = 'Kubernetes Node Object Logs' | stats latest('Ready Status') as Ready by Node", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaa4j4ts5oplk2fxcvv7qp26krpmnysk7amh2chgh335ctf26oiuyfq", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaibkjhz6mejrjhu2fn5efazcwyekb54kb4dcscobuv7lxxpe52bhq", + "displayName": "Node Allocatable", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OKE Node Allocatable", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "summary_table", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes Node Object Logs' | stats latest('CPU Allocatable') as CPU, latest('Memory Allocatable') as 'Memory (KiB)', latest('Storage Allocatable') as 'Storage (KiB)', latest('Pods Allocatable') as Pods by Node", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaaibkjhz6mejrjhu2fn5efazcwyekb54kb4dcscobuv7lxxpe52bhq", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa3d7t5vgw3ldws56oi7smqfq3boxdtvfxnz7du67rixxo4q6v3mnq", + "displayName": "Logs", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Logs corresponding to OKE Node", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "numUnits": 60, + "units": "MINUTES", + "timePeriod": "relative" + }, + "showTitle": true, + "visualizationType": "pie", + "visualizationOptions": {}, + "queryString": "Node != null | stats count as logrecords by 'Log Source'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics", + "pos": 0 + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics", + "pos": 0 + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + } + } + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + } + ], + "parametersConfig": [ + { + "savedSearchId": "OOBSS-management-dashboard-filter-4a", + "displayName": "Log Group Compartment", + "state": "DEFAULT", + "uiConfig": { + "internalKey": "OOBSS-management-dashboard-filter-4a", + "filterName": "log-analytics-loggroup-filter", + "vizFilterType": "lxLogGroupDashFilterType", + "defaultWidth": 3, + "minWidth": 3 + }, + "parametersMap": { + "isStoreInLocalStorage": true + }, + "name": "log-analytics-loggroup-filter", + "localStorageKey": "log-analytics-loggroup-filter" + }, + { + "savedSearchId": "OOBSS-management-dashboard-filter-2a", + "displayName": "Entity", + "width": 6, + "state": "DEFAULT", + "uiConfig": { + "internalKey": "OOBSS-management-dashboard-filter-2a", + "filterName": "log-analytics-entity-filter", + "vizFilterType": "lxEntityDashFilterType", + "defaultWidth": 6, + "minWidth": 6 + }, + "parametersMap": { + "isStoreInLocalStorage": true + }, + "name": "log-analytics-entity-filter", + "localStorageKey": "log-analytics-entity-filter" + }, + { + "savedSearchId": "OOBSS-management-dashboard-filter-xlog", + "displayName": "Kubernetes Cluster", + "state": "DEFAULT", + "parametersMap": { + "isStoreInLocalStorage": true, + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "logFieldName": "Kubernetes Cluster Name" + }, + "name": "log-analytics-log-field-filter", + "localStorageKey": "logField_Kubernetes Cluster Name" + }, + { + "savedSearchId": "OOBSS-management-dashboard-filter-xlog", + "displayName": "Worker Node", + "state": "DEFAULT", + "parametersMap": { + "isStoreInLocalStorage": true, + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "logFieldName": "Node", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + }, + "name": "log-analytics-log-field-filter1", + "localStorageKey": "logField_Node" + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "src": "$(context.time)" + } + ], + "drilldownConfig": [], + "freeformTags": {}, + "definedTags": {} + } + ] +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/dashboards/dashboards_json/pod.json b/logan/terraform/oke/modules/dashboards/dashboards_json/pod.json new file mode 100644 index 00000000..795eac7d --- /dev/null +++ b/logan/terraform/oke/modules/dashboards/dashboards_json/pod.json @@ -0,0 +1,1821 @@ +{ + "dashboards": [ + { + "dashboardId": "ocid1.managementdashboard.oc1..aaaaaaaarg6x4wzkt5inspww4chzolmcwxcz3wkzqh6t27wqzahj2g2dpyqa", + "providerId": "log-analytics", + "providerName": "Logging Analytics", + "providerVersion": "3.0.0", + "tiles": [ + { + "displayName": "Pods Status", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaxu4cv4lwovlaghidg6pnd4lokcbwzmre7t322stvb6z6y4j4hnua", + "row": 0, + "column": 4, + "height": 4, + "width": 8, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Pods with Warning Events", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaq4wjwgz2jp4mb5gy3drtxdrpbx26grikh6s7tl6i5owrxzv7l3na", + "row": 4, + "column": 7, + "height": 3, + "width": 5, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Pod Info", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa4utj6jb4ir2svktabxxntuxiaibacptiqclaiui4hfk4zz663xbq", + "row": 7, + "column": 0, + "height": 3, + "width": 7, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Pod Logs", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaofypq2boxixixywlau7iclzylo662ojgq3fqcir6q5fezxyinkya", + "row": 7, + "column": 7, + "height": 3, + "width": 5, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Pod Events Trend", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaak5fsu24kjljgsiutwgw4emq6geeyryzjr4vozslfb3iyii7w45ma", + "row": 4, + "column": 0, + "height": 3, + "width": 7, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Pods Running", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa22wdx45h3jee2s3bolb2odlozncgwobe3hvsz4euxkon3ulrrupq", + "row": 2, + "column": 0, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Clusters", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaah2ucotridihloxymwasfoljtqpq7y6eezuoxqgrwqzegwncyqleq", + "row": 0, + "column": 0, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Namespaces", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaz2t6olofn3gtksbhrreiudcf2fycyuxh4h3jhjjwnriyaf3dboia", + "row": 0, + "column": 2, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Pods Pending", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaajulieq4xym4c7ygnxsd5x2t35x7tfb24h4nin6p6qeslv3mdj4hq", + "row": 2, + "column": 2, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + } + ], + "displayName": "Kubernetes Pods", + "description": "Kubernetes Pods", + "compartmentId": "${compartment_ocid}", + "isOobDashboard": false, + "isShowInHome": false, + "metadataVersion": "2.0", + "isShowDescription": true, + "screenImage": "todo: provide value[mandatory]", + "nls": {}, + "uiConfig": { + "isFilteringEnabled": false, + "isTimeRangeEnabled": true, + "isRefreshEnabled": true + }, + "dataConfig": [], + "type": "normal", + "isFavorite": false, + "savedSearches": [ + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaofypq2boxixixywlau7iclzylo662ojgq3fqcir6q5fezxyinkya", + "displayName": "Pod Logs", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Pod Logs", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l14day" + }, + "showTitle": true, + "visualizationType": "pie", + "visualizationOptions": { + "customVizOpt": { + "primaryFieldIname": "mbody" + } + }, + "queryString": "Pod != null and 'Log Source' not like '%object%' and 'Log Source' != 'Kubernetes Container Status Logs' | stats count as logrecords by Pod", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics", + "pos": 0 + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics", + "pos": 0 + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaaofypq2boxixixywlau7iclzylo662ojgq3fqcir6q5fezxyinkya", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaak5fsu24kjljgsiutwgw4emq6geeyryzjr4vozslfb3iyii7w45ma", + "displayName": "Pod Events Trend", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Pod Events Trend", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l14day" + }, + "showTitle": true, + "visualizationType": "line", + "visualizationOptions": { + "showLogScale": false, + "hideLines": false, + "customVizOpt": { + "primaryFieldIname": "mbody" + } + }, + "queryString": "'Log Source' = 'Kubernetes Event Object Logs' and 'Involved Object Kind' = pod | timestats count as logrecords by 'Involved Object Name'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaak5fsu24kjljgsiutwgw4emq6geeyryzjr4vozslfb3iyii7w45ma", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa22wdx45h3jee2s3bolb2odlozncgwobe3hvsz4euxkon3ulrrupq", + "displayName": "Pods Running", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Pods Running in last 15 mins", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "numUnits": 60, + "units": "MINUTES", + "timePeriod": "relative" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "changeLabel": "", + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Container States": { + "chartHeight": 295, + "chartType": [ + "trend" + ], + "classifyColorPalette": { + "1": "default", + "6": "udfs143", + "7": "service_status", + "8": null, + "9": null, + "10": null, + "11": "color1" + }, + "classifyColorPaletteCustom": { + "6": {}, + "7": { + "degraded performance|degraded": "waiting", + "major outage": "terminated", + "normal performance|operational": "runninng" + }, + "8": {}, + "9": {}, + "10": {}, + "11": {} + }, + "classifyFilters": { + "classifyNarrowResults": [ + "on" + ], + "selectAllFilters": [ + "on" + ], + "selectedClassifyFilters": [ + 6, + 7 + ], + "showClassifyFilters": [] + }, + "colorColumn": 9, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "drilldown": "on", + "groupAlias": "Groups", + "groupAliasS": "Group", + "showAnomaly": [ + "off" + ], + "showBaseline": [ + null + ], + "showDimensions": [ + "on" + ], + "sizeColumn": 11, + "swapXY": [ + "off" + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ] + } + } + }, + "formatNumber": false, + "hideLabel": true + }, + "queryString": "'Log Source' = 'Kubernetes Pod Object Logs' and 'Pod Phase' = running | stats latest('Pod Phase') as Status by Pod", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaa22wdx45h3jee2s3bolb2odlozncgwobe3hvsz4euxkon3ulrrupq", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa4utj6jb4ir2svktabxxntuxiaibacptiqclaiui4hfk4zz663xbq", + "displayName": "Pod Info", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OKE Pod Info", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "numUnits": 30, + "units": "MINUTES", + "timePeriod": "relative" + }, + "showTitle": true, + "visualizationType": "summary_table", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes Pod Object Logs' | stats latest(Namespace) as Namespace, latest('Pod IP Address') as 'Pod IP', latest(Node) as Node, latest(Controller) as Controller, latest('Controller Kind') as 'Controller Kind', latest('Scheduler Name') as Scheduler by Pod", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics", + "pos": 0 + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics", + "pos": 0 + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaa4utj6jb4ir2svktabxxntuxiaibacptiqclaiui4hfk4zz663xbq", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaq4wjwgz2jp4mb5gy3drtxdrpbx26grikh6s7tl6i5owrxzv7l3na", + "displayName": "Pods with Warning Events", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Pods with Warning Events", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "treemap", + "visualizationOptions": { + "customVizOpt": { + "primaryFieldIname": "mbody" + } + }, + "queryString": "'Log Source' = 'Kubernetes Event Object Logs' and 'Involved Object Kind' = pod and 'Event Type' = warning | stats distinctcount('Involved Object Name') as count by Reason, 'Involved Object Name'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaaq4wjwgz2jp4mb5gy3drtxdrpbx26grikh6s7tl6i5owrxzv7l3na", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaah2ucotridihloxymwasfoljtqpq7y6eezuoxqgrwqzegwncyqleq", + "displayName": "Kubernetes Clusters", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes Clusters", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "hideLabel": true, + "changeLabel": "", + "formatNumber": false, + "customVizOpt": { + "primaryFieldDname": "Original Log Content", + "primaryFieldIname": "mbody" + } + }, + "queryString": "* | stats distinctcount('Kubernetes Cluster Name') as Clusters", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaz2t6olofn3gtksbhrreiudcf2fycyuxh4h3jhjjwnriyaf3dboia", + "displayName": "Namespace Count", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Reported namespaces", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "numUnits": 60, + "units": "MINUTES", + "timePeriod": "relative" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "changeLabel": "", + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Container States": { + "chartHeight": 295, + "chartType": [ + "trend" + ], + "classifyColorPalette": { + "1": "default", + "6": "udfs143", + "7": "service_status", + "8": null, + "9": null, + "10": null, + "11": "color1" + }, + "classifyColorPaletteCustom": { + "6": {}, + "7": { + "degraded performance|degraded": "waiting", + "major outage": "terminated", + "normal performance|operational": "runninng" + }, + "8": {}, + "9": {}, + "10": {}, + "11": {} + }, + "classifyFilters": { + "classifyNarrowResults": [ + "on" + ], + "selectAllFilters": [ + "on" + ], + "selectedClassifyFilters": [ + 6, + 7 + ], + "showClassifyFilters": [] + }, + "colorColumn": 9, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "drilldown": "on", + "groupAlias": "Groups", + "groupAliasS": "Group", + "showAnomaly": [ + "off" + ], + "showBaseline": [ + null + ], + "showDimensions": [ + "on" + ], + "sizeColumn": 11, + "swapXY": [ + "off" + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ] + } + } + }, + "formatNumber": false, + "hideLabel": true + }, + "queryString": "'Log Source' = 'Kubernetes Namespace Object Logs' | stats latest(Status) as Status by Namespace", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaaz2t6olofn3gtksbhrreiudcf2fycyuxh4h3jhjjwnriyaf3dboia", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaxu4cv4lwovlaghidg6pnd4lokcbwzmre7t322stvb6z6y4j4hnua", + "displayName": "Pods Status", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Pods Status", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "link", + "visualizationOptions": { + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": {}, + "LINK_SEARCH_SETTINGS": { + "chartHeightVal": 200, + "chartOptions": "bar", + "chartType": "bar", + "chartWidthVal": 60, + "columnAliases": {}, + "dashboardOptions": { + "showAnalyzeTab": [], + "showChartsTab": [], + "showSummary": [], + "showTable": [ + "on" + ], + "showTabs": [] + }, + "groupAliasP": "Groups", + "groupAliasS": "Group", + "hiddenCharts": { + "groupColumn": true + }, + "hiddenClassifyCharts": {}, + "hiddenColumns": { + "g_count": false, + "g_duration": true, + "g_startepoch": true, + "query_end_time": true, + "query_start_time": true, + "trend_interval": true, + "trend_interval_unit": true + }, + "highlightColumnStatus": { + "highlightedGroup1": { + "on": true, + "title": true + }, + "highlightedGroup2": { + "on": true, + "title": true + } + }, + "linkSummaryInput": "", + "logAliasP": "Log Records", + "mergeHighlightColumns": [ + "on" + ], + "showAllRegions": [], + "showCombinedCharts": [], + "showNonUnitRawData": [], + "showStack": [ + "on" + ], + "showToolTips": [ + "on" + ], + "showUnitRawData": [], + "smartGroup": [ + "off" + ], + "styleDefaults": {}, + "tableColumns": [ + "m_fakeMergedHighlight", + "Pod", + "Status", + "Last Reported (UTC-08:00)", + "Records", + "Unique(Node)", + "Latest(Node)", + "Latest(Controller Kind)", + "Controller", + "Last Reported (UTC+05:30)", + "Node", + "Namespace" + ] + } + }, + "showLogScale": false + }, + "queryString": "'Log Source' = 'Kubernetes Pod Object Logs' | link Pod | stats latest('Pod Phase') as Status, latest(Node) as Node, latest(Namespace) as Namespace | fields Count as Records, 'End Time' as 'Last Reported' | highlightgroups color = green [ * | where Status in (running, succeeded) ] as healthy | highlightgroups color = red [ * | where Status in (pending, failed) ] as warning | sort Status", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaaxu4cv4lwovlaghidg6pnd4lokcbwzmre7t322stvb6z6y4j4hnua", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaajulieq4xym4c7ygnxsd5x2t35x7tfb24h4nin6p6qeslv3mdj4hq", + "displayName": "Pods Pending", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Pods Pending", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "hideLabel": true, + "changeLabel": "", + "formatNumber": false, + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Container States": { + "chartHeight": 295, + "chartType": [ + "trend" + ], + "classifyColorPalette": { + "1": "default", + "6": "udfs143", + "7": "service_status", + "8": null, + "9": null, + "10": null, + "11": "color1" + }, + "classifyColorPaletteCustom": { + "6": {}, + "7": { + "degraded performance|degraded": "waiting", + "major outage": "terminated", + "normal performance|operational": "runninng" + }, + "8": {}, + "9": {}, + "10": {}, + "11": {} + }, + "classifyFilters": { + "classifyNarrowResults": [ + "on" + ], + "selectAllFilters": [ + "on" + ], + "selectedClassifyFilters": [ + 6, + 7 + ], + "showClassifyFilters": [] + }, + "colorColumn": 9, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "drilldown": "on", + "groupAlias": "Groups", + "groupAliasS": "Group", + "showAnomaly": [ + "off" + ], + "showBaseline": [ + null + ], + "showDimensions": [ + "on" + ], + "sizeColumn": 11, + "swapXY": [ + "off" + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ] + } + } + } + }, + "queryString": "'Log Source' = 'Kubernetes Pod Object Logs' and 'Pod Phase' = pending and 'Kubernetes Cluster Name' = 'mushop app (magi)' | stats latest('Pod Phase') as Status by Pod", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + } + ], + "parametersConfig": [ + { + "savedSearchId": "OOBSS-management-dashboard-filter-4a", + "displayName": "Log Group Compartment", + "state": "DEFAULT", + "parametersMap": { + "isStoreInLocalStorage": true + }, + "name": "log-analytics-loggroup-filter", + "localStorageKey": "log-analytics-loggroup-filter" + }, + { + "savedSearchId": "OOBSS-management-dashboard-filter-2a", + "displayName": "Entity", + "width": 6, + "state": "DEFAULT", + "parametersMap": { + "isStoreInLocalStorage": true + }, + "name": "log-analytics-entity-filter", + "localStorageKey": "log-analytics-entity-filter" + }, + { + "savedSearchId": "OOBSS-management-dashboard-filter-xlog", + "displayName": "Kubernetes Cluster", + "state": "DEFAULT", + "parametersMap": { + "isStoreInLocalStorage": true, + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "logFieldName": "Kubernetes Cluster Name" + }, + "name": "log-analytics-log-field-filter", + "localStorageKey": "logField_Kubernetes Cluster Name" + }, + { + "savedSearchId": "OOBSS-management-dashboard-filter-xlog", + "displayName": "Namespace", + "state": "DEFAULT", + "parametersMap": { + "isStoreInLocalStorage": true, + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "logFieldName": "Namespace", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + }, + "name": "log-analytics-log-field-filter1", + "localStorageKey": "logField_Namespace" + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "src": "$(context.time)" + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "src": "$(context.time)" + } + ], + "drilldownConfig": [], + "freeformTags": {}, + "definedTags": {} + } + ] +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/dashboards/dashboards_json/workload.json b/logan/terraform/oke/modules/dashboards/dashboards_json/workload.json new file mode 100644 index 00000000..2e3a1852 --- /dev/null +++ b/logan/terraform/oke/modules/dashboards/dashboards_json/workload.json @@ -0,0 +1,3013 @@ +{ + "dashboards": [ + { + "dashboardId": "ocid1.managementdashboard.oc1..aaaaaaaaxwzz2r2yuioiqswrhgjqagbvqo62q3wqgqj75zhlim6w777abh7a", + "providerId": "log-analytics", + "providerName": "Logging Analytics", + "providerVersion": "3.0.0", + "tiles": [ + { + "displayName": "Deployments Summaray", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa4gxfdb7lyfvow7ihw6jdbvkq62lkuzm465pzu66zgkf3b4hyjroa", + "row": 6, + "column": 0, + "height": 3, + "width": 6, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Deployments", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaafc4c4lald23pphljiqukxmpl4mikdxrvkxnzogvjgt57qo4i5s2q", + "row": 0, + "column": 4, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "time": "$(dashboard.params.time)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "ReplicaSets", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa4fnzqpqpzao6i4ybcq7gr4ye7bjd2ke5p2s25vitnwjnb6don55q", + "row": 0, + "column": 6, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "DaemonSets", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaal7nhk3y3wjq23un7ck3nylaqyrynupj2c6dim6w77tu46bboubqq", + "row": 0, + "column": 8, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "StatefulSets", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaqpbvhfv3on3ybagqmzkhniudbluxkzi5dzlsnlve65ika2gpmyra", + "row": 0, + "column": 10, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "ReplicaSets Summary", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaauc2gktclrjk5453ahkbxgwa65wsmay6lwfohhpd6ywotkb42z5gq", + "row": 6, + "column": 6, + "height": 3, + "width": 6, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "DaemonSets Summary", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaab3q4femxsk7m5ldawxjcyuqqimdcbeq3ogkmwe4fwwof5wyqdyza", + "row": 9, + "column": 0, + "height": 3, + "width": 6, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "StatefulSets Summary", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa7hts5mruewkar26uibwvftr2yvkh23prcjhkxhbbryzyr3yyp7cq", + "row": 9, + "column": 6, + "height": 3, + "width": 6, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Jobs Summary", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaacyepv5h6rub4nv7y2gf4ea3kewzzdg5md6tca3kihxrtgcrsrbka", + "row": 12, + "column": 0, + "height": 3, + "width": 6, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "CronJobs Summary", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaa5uadqpyewjcu3s6seka57esggdqpsnccckydsl2w4d3l72pom7tq", + "row": 12, + "column": 6, + "height": 3, + "width": 6, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Clusters", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaah2ucotridihloxymwasfoljtqpq7y6eezuoxqgrwqzegwncyqleq", + "row": 0, + "column": 0, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Namespaces", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaz2t6olofn3gtksbhrreiudcf2fycyuxh4h3jhjjwnriyaf3dboia", + "row": 0, + "column": 2, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Jobs", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaagy2omkc7tvhgsfg2uhxco5p7w7k762c2uet4xlmo4xmgtlonepwa", + "row": 2, + "column": 0, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "CronJobs", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaat5azckbhn5b65arizci73cv4pqvomv72bafi2c62mhegfkrz2mwq", + "row": 4, + "column": 0, + "height": 2, + "width": 2, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + }, + { + "displayName": "Workloads Events Trend", + "savedSearchId": "ocid1.managementsavedsearch.oc1..aaaaaaaaucmp4olxq4hcaxkv3l5jx7dbcenxz7nliwsvj4z7mxqtnosmad6a", + "row": 2, + "column": 2, + "height": 4, + "width": 10, + "nls": {}, + "uiConfig": {}, + "dataConfig": [], + "state": "DEFAULT", + "drilldownConfig": [], + "parametersMap": { + "time": "$(dashboard.params.time)", + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "log-analytics-entity": "$(dashboard.params.log-analytics-entity-filter)", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)", + "Namespace": "$(dashboard.params.log-analytics-log-field-filter1)" + } + } + } + ], + "displayName": "Kubernetes Workloads", + "description": "Kubernetes Workloads", + "compartmentId": "${compartment_ocid}", + "isOobDashboard": false, + "isShowInHome": false, + "metadataVersion": "2.0", + "isShowDescription": true, + "screenImage": "todo: provide value[mandatory]", + "nls": {}, + "uiConfig": { + "isFilteringEnabled": false, + "isTimeRangeEnabled": true, + "isRefreshEnabled": true + }, + "dataConfig": [], + "type": "normal", + "isFavorite": false, + "savedSearches": [ + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa4gxfdb7lyfvow7ihw6jdbvkq62lkuzm465pzu66zgkf3b4hyjroa", + "displayName": "Deployments Summary", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "OKE Deployments Summary.", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "summary_table", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes Deployment Object Logs' | stats latest(Namespace) as Namespace, latest('Available Status') as Available, latest('Progressing Status') as Progressing, latest(Replicas) as 'Desired Replicas', latest('Ready Replicas') as 'Ready Replicas', latest('Available Replicas') as 'Available Replicas' by Deployment | sort Available", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaa4gxfdb7lyfvow7ihw6jdbvkq62lkuzm465pzu66zgkf3b4hyjroa", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaagy2omkc7tvhgsfg2uhxco5p7w7k762c2uet4xlmo4xmgtlonepwa", + "displayName": "Kubernetes Jobs", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes Jobs ", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "hideLabel": true, + "changeLabel": "", + "formatNumber": false + }, + "queryString": "'Log Source' = 'Kubernetes Job Object Logs' | stats latest(Status) as Status by Job", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaauc2gktclrjk5453ahkbxgwa65wsmay6lwfohhpd6ywotkb42z5gq", + "displayName": "ReplicaSets Summary", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "ReplicaSets Summary.", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l7day" + }, + "showTitle": true, + "visualizationType": "summary_table", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes ReplicaSet Object Logs' | stats latest(Namespace) as Namespace, latest(Replicas) as 'Desired Replicas', latest('Ready Replicas') as 'Ready Replicas', latest('Available Replicas') as 'Available Replicas', latest(Controller) as Deployment by ReplicaSet", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaz2t6olofn3gtksbhrreiudcf2fycyuxh4h3jhjjwnriyaf3dboia", + "displayName": "Namespace Count", + "providerId": "log-analytics", + "providerVersion": "2.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Reported namespaces", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "numUnits": 60, + "units": "MINUTES", + "timePeriod": "relative" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "changeLabel": "", + "customVizOpt": { + "LINK_CLASSIFY_SETTINGS": { + "Container States": { + "chartHeight": 295, + "chartType": [ + "trend" + ], + "classifyColorPalette": { + "1": "default", + "6": "udfs143", + "7": "service_status", + "8": null, + "9": null, + "10": null, + "11": "color1" + }, + "classifyColorPaletteCustom": { + "6": {}, + "7": { + "degraded performance|degraded": "waiting", + "major outage": "terminated", + "normal performance|operational": "runninng" + }, + "8": {}, + "9": {}, + "10": {}, + "11": {} + }, + "classifyFilters": { + "classifyNarrowResults": [ + "on" + ], + "selectAllFilters": [ + "on" + ], + "selectedClassifyFilters": [ + 6, + 7 + ], + "showClassifyFilters": [] + }, + "colorColumn": 9, + "descendingXAxis": [ + null + ], + "descendingYAxis": [ + null + ], + "drilldown": "on", + "groupAlias": "Groups", + "groupAliasS": "Group", + "showAnomaly": [ + "off" + ], + "showBaseline": [ + null + ], + "showDimensions": [ + "on" + ], + "sizeColumn": 11, + "swapXY": [ + "off" + ], + "zeroXAxis": [ + "on" + ], + "zeroYAxis": [ + "on" + ] + } + } + }, + "formatNumber": false, + "hideLabel": true + }, + "queryString": "'Log Source' = 'Kubernetes Namespace Object Logs' | stats latest(Status) as Status by Namespace", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaaz2t6olofn3gtksbhrreiudcf2fycyuxh4h3jhjjwnriyaf3dboia", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "jet-modules/dashboards/widgets/lxSavedSearchWidget.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaat5azckbhn5b65arizci73cv4pqvomv72bafi2c62mhegfkrz2mwq", + "displayName": "Kubernetes CronJobs", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes CronJobs ", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "hideLabel": true, + "changeLabel": "", + "formatNumber": false + }, + "queryString": "'Log Source' = 'Kubernetes CronJob Object Logs' | stats latest('Active Jobs') as 'Active Jobs' by CronJob", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaucmp4olxq4hcaxkv3l5jx7dbcenxz7nliwsvj4z7mxqtnosmad6a", + "displayName": "Workload Events Trend", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Workload Events Trend", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l14day" + }, + "showTitle": true, + "visualizationType": "line", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes Event Object Logs' and 'Involved Object Kind' in (deployment, replicaset, daemonset, statefulset, job, cronjob) | timestats count as logrecords by 'Involved Object Name'", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaafc4c4lald23pphljiqukxmpl4mikdxrvkxnzogvjgt57qo4i5s2q", + "displayName": "Kubernetes Deployments", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes Deployments", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l7day" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "hideLabel": true, + "changeLabel": "", + "formatNumber": false, + "customVizOpt": { + "LINK_SEARCH_SETTINGS": { + "chartHeightVal": 200, + "chartOptions": "bar", + "chartType": "bar", + "chartWidthVal": 60, + "columnAliases": {}, + "dashboardOptions": { + "showAnalyzeTab": [], + "showChartsTab": [], + "showSummary": [], + "showTable": [ + "on" + ], + "showTabs": [] + }, + "groupAliasP": "Groups", + "groupAliasS": "Group", + "hiddenCharts": { + "groupColumn": true + }, + "hiddenClassifyCharts": {}, + "hiddenColumns": { + "g_count": false, + "g_duration": true, + "g_startepoch": true, + "query_end_time": true, + "query_start_time": true, + "trend_interval": true, + "trend_interval_unit": true + }, + "highlightColumnStatus": {}, + "linkSummaryInput": "", + "logAliasP": "Log Records", + "mergeHighlightColumns": [ + "on" + ], + "showAllRegions": [], + "showCombinedCharts": [], + "showNonUnitRawData": [], + "showStack": [ + "on" + ], + "showToolTips": [ + "on" + ], + "showUnitRawData": [], + "smartGroup": [ + "off" + ], + "styleDefaults": {}, + "tableColumns": [ + "m_fakeMergedHighlight", + "Deployment", + "Last Reported (UTC-08:00)", + "Availability", + "Count", + "Records", + "Last Reported (UTC+05:30)", + "End Time (UTC+05:30)" + ] + } + } + }, + "queryString": "'Log Source' = 'Kubernetes Deployment Object Logs' | stats latest('Available Status') as Available by Deployment | sort Available", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaal7nhk3y3wjq23un7ck3nylaqyrynupj2c6dim6w77tu46bboubqq", + "displayName": "Kubernetes DaemonSets", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes DaemonSets", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l7day" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "hideLabel": true, + "changeLabel": "", + "formatNumber": false, + "customVizOpt": { + "LINK_SEARCH_SETTINGS": { + "chartHeightVal": 200, + "chartOptions": "bar", + "chartType": "bar", + "chartWidthVal": 60, + "columnAliases": {}, + "dashboardOptions": { + "showAnalyzeTab": [], + "showChartsTab": [], + "showSummary": [], + "showTable": [ + "on" + ], + "showTabs": [] + }, + "groupAliasP": "Groups", + "groupAliasS": "Group", + "hiddenCharts": { + "groupColumn": true + }, + "hiddenClassifyCharts": {}, + "hiddenColumns": { + "g_count": false, + "g_duration": true, + "g_startepoch": true, + "query_end_time": true, + "query_start_time": true, + "trend_interval": true, + "trend_interval_unit": true + }, + "highlightColumnStatus": {}, + "linkSummaryInput": "", + "logAliasP": "Log Records", + "mergeHighlightColumns": [ + "on" + ], + "showAllRegions": [], + "showCombinedCharts": [], + "showNonUnitRawData": [], + "showStack": [ + "on" + ], + "showToolTips": [ + "on" + ], + "showUnitRawData": [], + "smartGroup": [ + "off" + ], + "styleDefaults": {}, + "tableColumns": [ + "m_fakeMergedHighlight", + "Deployment", + "Last Reported (UTC-08:00)", + "Availability", + "Count", + "Records", + "Last Reported (UTC+05:30)", + "End Time (UTC+05:30)" + ] + } + } + }, + "queryString": "'Log Source' = 'Kubernetes DaemonSet Object Logs' | stats latest('Desired Number Scheduled') as Desired, latest('Current Scheduled') as 'Current Scheduled', latest('Ready Count') as Ready by DaemonSet", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaacyepv5h6rub4nv7y2gf4ea3kewzzdg5md6tca3kihxrtgcrsrbka", + "displayName": "Jobs Summary", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Jobs Summary", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "summary_table", + "visualizationOptions": { + "customVizOpt": { + "primaryFieldDname": "Original Log Content", + "primaryFieldIname": "mbody" + } + }, + "queryString": "'Log Source' = 'Kubernetes Job Object Logs' | stats latest(Namespace) as Namespace, latest(Completions) as Completions, latest(Status) as Status, latest('Completion Time') as 'Completion Time' by Job", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa7hts5mruewkar26uibwvftr2yvkh23prcjhkxhbbryzyr3yyp7cq", + "displayName": "StatefulSets Summary", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "StatefulSets Summary", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "summary_table", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes StatefulSet Object Logs' | stats latest(Namespace) as Namespace, latest('Desired Replicas') as Desired, latest('Current Replicas') as Current, latest('Ready Replicas') as Ready by StatefulSet", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaab3q4femxsk7m5ldawxjcyuqqimdcbeq3ogkmwe4fwwof5wyqdyza", + "displayName": "DaemonSets Summary", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "DaemonSets Summary.", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l7day" + }, + "showTitle": true, + "visualizationType": "summary_table", + "visualizationOptions": {}, + "queryString": "'Log Source' = 'Kubernetes DaemonSet Object Logs' | stats latest(Namespace) as Namespace, latest('Desired Number Scheduled') as Desired, latest('Current Scheduled') as Scheduled, latest('Ready Count') as Ready, latest(Misscheduled) as Misscheduled by DaemonSet", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaah2ucotridihloxymwasfoljtqpq7y6eezuoxqgrwqzegwncyqleq", + "displayName": "Kubernetes Clusters", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes Clusters", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "hideLabel": true, + "changeLabel": "", + "formatNumber": false, + "customVizOpt": { + "primaryFieldDname": "Original Log Content", + "primaryFieldIname": "mbody" + } + }, + "queryString": "* | stats distinctcount('Kubernetes Cluster Name') as Clusters", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaaqpbvhfv3on3ybagqmzkhniudbluxkzi5dzlsnlve65ika2gpmyra", + "displayName": "Kubernetes StatefulSets", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes StatefulSets", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "hideLabel": true, + "changeLabel": "", + "formatNumber": false + }, + "queryString": "'Log Source' = 'Kubernetes StatefulSet Object Logs' | stats latest('Desired Replicas') as Desired, latest('Ready Replicas') as Ready by StatefulSet", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa5uadqpyewjcu3s6seka57esggdqpsnccckydsl2w4d3l72pom7tq", + "displayName": "CronJobs Summary", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "CronJobs Summary", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l60min" + }, + "showTitle": true, + "visualizationType": "summary_table", + "visualizationOptions": { + "customVizOpt": { + "primaryFieldDname": "Original Log Content", + "primaryFieldIname": "mbody" + } + }, + "queryString": "'Log Source' = 'Kubernetes CronJob Object Logs' | stats latest(Namespace) as Namespace, latest(Schedule) as Schedule, latest('Active Jobs') as 'Active Jobs', latest(Suspend) as Suspend, latest('Last Schedule Time') as 'Last Schedule Time' by CronJob", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "internalKey": "ocid1.managementsavedsearch.oc1..aaaaaaaa5uadqpyewjcu3s6seka57esggdqpsnccckydsl2w4d3l72pom7tq", + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + }, + { + "id": "ocid1.managementsavedsearch.oc1..aaaaaaaa4fnzqpqpzao6i4ybcq7gr4ye7bjd2ke5p2s25vitnwjnb6don55q", + "displayName": "Kubernetes ReplicaSets", + "providerId": "log-analytics", + "providerVersion": "3.0.0", + "providerName": "Logging Analytics", + "compartmentId": "${compartment_ocid}", + "isOobSavedSearch": false, + "description": "Kubernetes ReplicaSets", + "nls": {}, + "type": "WIDGET_SHOW_IN_DASHBOARD", + "uiConfig": { + "timeSelection": { + "timePeriod": "l7day" + }, + "showTitle": true, + "visualizationType": "tile", + "visualizationOptions": { + "hideLabel": true, + "changeLabel": "", + "formatNumber": false, + "customVizOpt": { + "LINK_SEARCH_SETTINGS": { + "chartHeightVal": 200, + "chartOptions": "bar", + "chartType": "bar", + "chartWidthVal": 60, + "columnAliases": {}, + "dashboardOptions": { + "showAnalyzeTab": [], + "showChartsTab": [], + "showSummary": [], + "showTable": [ + "on" + ], + "showTabs": [] + }, + "groupAliasP": "Groups", + "groupAliasS": "Group", + "hiddenCharts": { + "groupColumn": true + }, + "hiddenClassifyCharts": {}, + "hiddenColumns": { + "g_count": false, + "g_duration": true, + "g_startepoch": true, + "query_end_time": true, + "query_start_time": true, + "trend_interval": true, + "trend_interval_unit": true + }, + "highlightColumnStatus": {}, + "linkSummaryInput": "", + "logAliasP": "Log Records", + "mergeHighlightColumns": [ + "on" + ], + "showAllRegions": [], + "showCombinedCharts": [], + "showNonUnitRawData": [], + "showStack": [ + "on" + ], + "showToolTips": [ + "on" + ], + "showUnitRawData": [], + "smartGroup": [ + "off" + ], + "styleDefaults": {}, + "tableColumns": [ + "m_fakeMergedHighlight", + "Deployment", + "Last Reported (UTC-08:00)", + "Availability", + "Count", + "Records", + "Last Reported (UTC+05:30)", + "End Time (UTC+05:30)" + ] + } + } + }, + "queryString": "'Log Source' = 'Kubernetes ReplicaSet Object Logs' | stats latest(Replicas) as Desired, latest('Ready Replicas') as Ready by ReplicaSet", + "scopeFilters": { + "filters": [ + { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + { + "type": "LogSet", + "flags": {}, + "values": [] + }, + { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + { + "type": "LogFields", + "flags": {}, + "values": [] + } + ], + "isGlobal": false, + "LogGroup": { + "type": "LogGroup", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q", + "label": "datascience" + } + ] + }, + "MetricCompartment": { + "type": "MetricCompartment", + "flags": {}, + "values": [] + }, + "Entity": { + "type": "Entity", + "flags": { + "IncludeDependents": true, + "ScopeCompartmentId": "ocid1.compartment.oc1..aaaaaaaa4yj2x6hjxntcf5vydrdvsm3trgblkmwgcmvxiar2miklv3ip4t7q" + }, + "values": [] + }, + "LogSet": { + "type": "LogSet", + "flags": {}, + "values": [] + }, + "ResourceCompartment": { + "type": "ResourceCompartment", + "flags": { + "IncludeSubCompartments": true + }, + "values": [ + { + "value": "ocid1.tenancy.oc1..aaaaaaaanua5mvmgcova3ryrjeek2oywffq2boddcqdx6gh7hiakiegshqfq", + "label": "###### (root)/LogAnalytics" + } + ] + }, + "LogFields": { + "type": "LogFields", + "flags": {}, + "values": [] + } + }, + "vizType": "lxSavedSearchWidgetType", + "enableWidgetInApp": true + }, + "dataConfig": [], + "screenImage": " ", + "metadataVersion": "2.0", + "widgetTemplate": "visualizations/chartWidgetTemplate.html", + "widgetVM": "jet-modules/dashboards/widgets/lxSavedSearchWidget", + "freeformTags": {}, + "definedTags": {}, + "parametersConfig": [ + { + "name": "log-analytics-log-group-compartment", + "displayName": "Log Group Compartment", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-4a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-entity", + "displayName": "Entity", + "required": true, + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-2a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "log-analytics-log-set", + "displayName": "Log Set", + "required": true, + "hidden": "$(window.logSetNotEnabled)", + "defaultFilterIds": [ + "OOBSS-management-dashboard-filter-3a" + ], + "editUi": { + "inputType": "none" + }, + "valueFormat": { + "type": "object" + } + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "required": true, + "hidden": true + }, + { + "name": "flex" + } + ], + "drilldownConfig": [] + } + ], + "parametersConfig": [ + { + "savedSearchId": "OOBSS-management-dashboard-filter-4a", + "displayName": "Log Group Compartment", + "state": "DEFAULT", + "parametersMap": { + "isStoreInLocalStorage": true + }, + "name": "log-analytics-loggroup-filter", + "localStorageKey": "log-analytics-loggroup-filter" + }, + { + "savedSearchId": "OOBSS-management-dashboard-filter-2a", + "displayName": "Entity", + "width": 6, + "state": "DEFAULT", + "parametersMap": { + "isStoreInLocalStorage": true + }, + "name": "log-analytics-entity-filter", + "localStorageKey": "log-analytics-entity-filter" + }, + { + "savedSearchId": "OOBSS-management-dashboard-filter-xlog", + "displayName": "Kubernetes Cluster", + "state": "DEFAULT", + "parametersMap": { + "isStoreInLocalStorage": true, + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "logFieldName": "Kubernetes Cluster Name" + }, + "name": "log-analytics-log-field-filter", + "localStorageKey": "logField_Kubernetes Cluster Name" + }, + { + "savedSearchId": "OOBSS-management-dashboard-filter-xlog", + "displayName": "Namespace", + "state": "DEFAULT", + "parametersMap": { + "isStoreInLocalStorage": true, + "log-analytics-log-group-compartment": "$(dashboard.params.log-analytics-loggroup-filter)", + "logFieldName": "Namespace", + "flex": { + "Kubernetes Cluster Name": "$(dashboard.params.log-analytics-log-field-filter)" + } + }, + "name": "log-analytics-log-field-filter1", + "localStorageKey": "logField_Namespace" + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "src": "$(context.time)" + }, + { + "name": "time", + "displayName": "$(bundle.globalSavedSearch.TIME)", + "src": "$(context.time)" + } + ], + "drilldownConfig": [], + "freeformTags": {}, + "definedTags": {} + } + ] +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/dashboards/inputs.tf b/logan/terraform/oke/modules/dashboards/inputs.tf new file mode 100644 index 00000000..ef8c19aa --- /dev/null +++ b/logan/terraform/oke/modules/dashboards/inputs.tf @@ -0,0 +1,4 @@ +# Compartment for creating dashboards and it's associated saved-searches +variable "compartment_ocid" { + type = string +} diff --git a/logan/terraform/oke/modules/dashboards/provider.tf b/logan/terraform/oke/modules/dashboards/provider.tf new file mode 100644 index 00000000..e310a47a --- /dev/null +++ b/logan/terraform/oke/modules/dashboards/provider.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.0" + required_providers { + oci = { + source = "oracle/oci" + version = ">= 4.96.0" + # https://registry.terraform.io/providers/hashicorp/oci/4.85.0 + } + } +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/helm/helm.tf b/logan/terraform/oke/modules/helm/helm.tf new file mode 100644 index 00000000..6f8fa088 --- /dev/null +++ b/logan/terraform/oke/modules/helm/helm.tf @@ -0,0 +1,124 @@ + +data "oci_containerengine_clusters" "oke_clusters_list" { + compartment_id = var.oke_compartment_ocid +} + +locals { + oke_clusters_list = data.oci_containerengine_clusters.oke_clusters_list.clusters + oke_cluster_name = var.enable_helm_release ? [for c in local.oke_clusters_list : c.name if c.id == var.oke_cluster_ocid][0] : "place-holder" +} + +resource "helm_release" "oci-kubernetes-monitoring" { + name = "oci-kubernetes-monitoring" + chart = "${path.root}/helm-chart" + namespace = var.kubernetes_namespace + create_namespace = var.opt_create_kubernetes_namespace + wait = true + + count = var.enable_helm_release ? 1 : 0 + + set { + name = "image.url" + value = var.container_image_url + } + + set { + name = "kubernetesClusterName" + value = local.oke_cluster_name + } + + set { + name = "kubernetesClusterID" + value = var.oke_cluster_ocid + } + + set { + name = "namespace" + value = var.kubernetes_namespace + } + + set { + name = "ociLANamespace" + value = var.oci_la_namespace + } + + set { + name = "ociLALogGroupID" + value = var.oci_la_logGroup_id + } + + set { + name = "ociCompartmentID" + value = var.oke_compartment_ocid + } + + set { + name = "fluentd.baseDir" + value = var.fluentd_baseDir_path + } +} + +# helm template for release artifacts testing and validation +# this resouece is not used by helm release +data "helm_template" "oci-kubernetes-monitoring" { + name = "oci-kubernetes-monitoring" + chart = "${path.root}/helm-chart" + namespace = var.kubernetes_namespace + create_namespace = var.opt_create_kubernetes_namespace + + count = var.enable_helm_debugging ? 1 : 0 + + set { + name = "image.url" + value = var.container_image_url + } + + set { + name = "kubernetesClusterName" + value = local.oke_cluster_name + } + + set { + name = "kubernetesClusterID" + value = var.oke_cluster_ocid + } + + set { + name = "namespace" + value = var.kubernetes_namespace + } + + set { + name = "ociLANamespace" + value = var.oci_la_namespace + } + + set { + name = "ociLALogGroupID" + value = var.oci_la_logGroup_id + } + + set { + name = "ociCompartmentID" + value = var.oke_compartment_ocid + } + + set { + name = "fluentd.baseDir" + value = var.fluentd_baseDir_path + } +} + +# Helm release artifacts for local testing and validation. Not used by helm resource. +resource "local_file" "helm_release" { + content = tostring(data.helm_template.oci-kubernetes-monitoring[0].manifest) + filename = "${path.module}/local/helmrelease.yaml" + count = var.enable_helm_debugging ? 1 : 0 +} + +# kubeconfig when using Terraform locally. Not used by Oracle Resource Manager +resource "local_file" "oke_kubeconfig" { + content = data.oci_containerengine_cluster_kube_config.oke[0].content + filename = "${path.module}/local/kubeconfig" + count = var.enable_helm_debugging && var.enable_helm_release ? 1 : 0 +} diff --git a/logan/terraform/oke/modules/helm/inputs.tf b/logan/terraform/oke/modules/helm/inputs.tf new file mode 100644 index 00000000..2259db0d --- /dev/null +++ b/logan/terraform/oke/modules/helm/inputs.tf @@ -0,0 +1,69 @@ +#### +## Switches +#### + +variable "enable_helm_release" { + type = bool + default = true +} + +variable "enable_helm_debugging" { + type = bool + default = false +} + + +#### +## OKE Cluster Information +#### + +# OKE Cluster Compartment +variable "oke_compartment_ocid" { + type = string +} + +# OKE Cluster OCID +variable "oke_cluster_ocid" { + type = string +} + +# OCI LA Fluentd Container Image +variable "container_image_url" { + type = string +} + +# Kubernetes Namespace +variable "kubernetes_namespace" { + type = string +} + +# Option to create Kubernetes Namespace +variable "opt_create_kubernetes_namespace" { + type = bool + default = true +} + +#### +## OCI Logging Analytics Information +#### + +# OCI Logging Analytics LogGroup OCID +variable "oci_la_logGroup_id" { + type = string + default = "" +} + +# Log Analytics Namespace +variable "oci_la_namespace" { + type = string +} + +#### +## Fluentd Configuration +#### + +# Fluentd Base Directory +variable "fluentd_baseDir_path" { + type = string + default = "/var/log" +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/helm/local/.gitignore b/logan/terraform/oke/modules/helm/local/.gitignore new file mode 100644 index 00000000..94548af5 --- /dev/null +++ b/logan/terraform/oke/modules/helm/local/.gitignore @@ -0,0 +1,3 @@ +* +*/ +!.gitignore diff --git a/logan/terraform/oke/modules/helm/provider.tf b/logan/terraform/oke/modules/helm/provider.tf new file mode 100644 index 00000000..b1ac13a5 --- /dev/null +++ b/logan/terraform/oke/modules/helm/provider.tf @@ -0,0 +1,36 @@ +terraform { + required_version = ">= 1.0" + required_providers { + helm = { + source = "hashicorp/helm" + version = "2.7.1" + # https://registry.terraform.io/providers/hashicorp/helm/2.1.0 + } + } +} + +data "oci_containerengine_cluster_kube_config" "oke" { + cluster_id = var.oke_cluster_ocid + count = var.enable_helm_release ? 1 : 0 +} + +locals { + // following locals are set as "place-holder" when user opts out of helm release + cluster_endpoint = var.enable_helm_release ? yamldecode(data.oci_containerengine_cluster_kube_config.oke[0].content)["clusters"][0]["cluster"]["server"] : "place-holder" + cluster_ca_certificate = var.enable_helm_release ? base64decode(yamldecode(data.oci_containerengine_cluster_kube_config.oke[0].content)["clusters"][0]["cluster"]["certificate-authority-data"]) : "place-holder" + cluster_id = var.enable_helm_release ? yamldecode(data.oci_containerengine_cluster_kube_config.oke[0].content)["users"][0]["user"]["exec"]["args"][4] : "place-holder" + cluster_region = var.enable_helm_release ? yamldecode(data.oci_containerengine_cluster_kube_config.oke[0].content)["users"][0]["user"]["exec"]["args"][6] : "place-holder" +} + +# https://docs.cloud.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengdownloadkubeconfigfile.htm#notes +provider "helm" { + kubernetes { + host = local.cluster_endpoint + cluster_ca_certificate = local.cluster_ca_certificate + exec { + api_version = "client.authentication.k8s.io/v1beta1" + args = ["ce", "cluster", "generate-token", "--cluster-id", local.cluster_id, "--region", local.cluster_region] + command = "oci" + } + } +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/iam/iam.tf b/logan/terraform/oke/modules/iam/iam.tf new file mode 100644 index 00000000..52228358 --- /dev/null +++ b/logan/terraform/oke/modules/iam/iam.tf @@ -0,0 +1,52 @@ +locals { + # Compartments + la_compartment_name = data.oci_identity_compartment.oci_la_compartment.name + oke_compartment_name = data.oci_identity_compartment.oke_compartment.name + + # Dynmaic Group + uuid_dynamic_group = md5(var.oke_cluster_ocid) + dynamic_group_name = "oci-kubernetes-monitoring-${local.uuid_dynamic_group}" + dynamic_group_desc = "Auto generated by Resource Manager Stack - oci-kubernetes-monitoring. Required for monitoring OKE Cluster - ${var.oke_cluster_ocid}" + instances_in_compartment_rule = ["ALL {instance.compartment.id = '${var.oke_compartment_ocid}'}"] + clusters_in_compartment_rule = ["ALL {resource.type = 'cluster', resource.compartment.id = '${var.oke_compartment_ocid}'}"] + dynamic_group_matching_rules = concat(local.instances_in_compartment_rule, local.clusters_in_compartment_rule) + complied_dynamic_group_rules = "ANY {${join(",", local.dynamic_group_matching_rules)}}" + + # Policy + uuid_policy = md5("${local.dynamic_group_name}${local.la_compartment_name}") + policy_name = "oci-kubernetes-monitoring-${local.uuid_policy}" + policy_desc = "Auto generated by Resource Manager Stack - oci-kubernetes-monitoring. Allows OKE Dynamic Group - ${local.dynamic_group_name} to upload data to Logging Analytics Service in ${local.la_compartment_name} compartment." + policy_scope = var.root_compartment_ocid == var.oci_la_logGroup_compartment_ocid ? "tenancy" : "compartment ${local.la_compartment_name}" + policy_statements = ["Allow dynamic-group ${local.dynamic_group_name} to {LOG_ANALYTICS_LOG_GROUP_UPLOAD_LOGS} in ${local.policy_scope}"] + +} + +# Logging Analytics Compartment +data "oci_identity_compartment" "oci_la_compartment" { + id = var.oci_la_logGroup_compartment_ocid +} + +# OKE Compartment +data "oci_identity_compartment" "oke_compartment" { + id = var.oke_compartment_ocid +} + +# Dynmaic Group +resource "oci_identity_dynamic_group" "oke_dynamic_group" { + name = local.dynamic_group_name + description = local.dynamic_group_desc + compartment_id = var.root_compartment_ocid + matching_rule = local.complied_dynamic_group_rules + #provider = oci.home_region +} + +# Policy +resource "oci_identity_policy" "oke_monitoring_policy" { + name = local.policy_name + description = local.policy_desc + compartment_id = var.oci_la_logGroup_compartment_ocid + statements = local.policy_statements + #provider = oci.home_region + + depends_on = [oci_identity_dynamic_group.oke_dynamic_group] +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/iam/inputs.tf b/logan/terraform/oke/modules/iam/inputs.tf new file mode 100644 index 00000000..013017b7 --- /dev/null +++ b/logan/terraform/oke/modules/iam/inputs.tf @@ -0,0 +1,19 @@ +# tenancy ocid +variable "root_compartment_ocid" { + type = string +} + +# Compartment of OCI Logging Analytics LogGroup +variable "oci_la_logGroup_compartment_ocid" { + type = string +} + +# OKE Cluster Compartment +variable "oke_compartment_ocid" { + type = string +} + +# OKE Cluster OCID +variable "oke_cluster_ocid" { + type = string +} diff --git a/logan/terraform/oke/modules/iam/provider.tf b/logan/terraform/oke/modules/iam/provider.tf new file mode 100644 index 00000000..e310a47a --- /dev/null +++ b/logan/terraform/oke/modules/iam/provider.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.0" + required_providers { + oci = { + source = "oracle/oci" + version = ">= 4.96.0" + # https://registry.terraform.io/providers/hashicorp/oci/4.85.0 + } + } +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/logan/inputs.tf b/logan/terraform/oke/modules/logan/inputs.tf new file mode 100644 index 00000000..272d1907 --- /dev/null +++ b/logan/terraform/oke/modules/logan/inputs.tf @@ -0,0 +1,27 @@ +# tenancy OCID +variable "tenancy_ocid" { + type = string +} + +# Option to create Logging Analytics +variable "create_new_logGroup" { # opt_create_new_logGroup + type = bool + default = false +} + +# Compartment for creating new LogGroup, if opted in by user +variable "compartment_ocid" { + type = string +} + +# OCI Logging Analytics LogGroup OCID +variable "existing_logGroup_id" { + type = string + default = "" +} + +# New Log Group to collect Kubernetes data +variable "new_logGroup_name" { + type = string + default = "" // This is expected to rasie terraform error if ran with default value +} diff --git a/logan/terraform/oke/modules/logan/logAnalytics.tf b/logan/terraform/oke/modules/logan/logAnalytics.tf new file mode 100644 index 00000000..ac720a43 --- /dev/null +++ b/logan/terraform/oke/modules/logan/logAnalytics.tf @@ -0,0 +1,32 @@ +data "oci_objectstorage_namespace" "tenant_namespace" { + compartment_id = var.tenancy_ocid # tenancy ocid +} + +data "oci_log_analytics_namespace" "la_namespace" { + namespace = data.oci_objectstorage_namespace.tenant_namespace.namespace +} + +locals { + oci_la_namespace = data.oci_log_analytics_namespace.la_namespace.namespace + final_oci_la_logGroup_id = var.create_new_logGroup ? oci_log_analytics_log_analytics_log_group.new_log_group[0].id : var.existing_logGroup_id +} + +resource "oci_log_analytics_log_analytics_log_group" "new_log_group" { + compartment_id = var.compartment_ocid + display_name = var.new_logGroup_name + namespace = local.oci_la_namespace + description = "LogGroup for Kubernetes Logs" + + count = var.create_new_logGroup ? 1 : 0 + + # Preconditions are supported in terraform v 1.2.0+ + # Resource Manager supports 1.1.x as of Oct 18th, 2022 + # + + # lifecycle { + # precondition { + # condition = data.oci_log_analytics_namespace.tenant_namespace.is_onboarded == true + # error_message = "Tenancy is not on-boarded to OCI Logging Analytics Service in ${var.region} region." + # } + # } +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/logan/outputs.tf b/logan/terraform/oke/modules/logan/outputs.tf new file mode 100644 index 00000000..b7d1c632 --- /dev/null +++ b/logan/terraform/oke/modules/logan/outputs.tf @@ -0,0 +1,7 @@ +output "oci_la_namespace" { + value = local.oci_la_namespace +} + +output "oci_la_logGroup_ocid" { + value = local.final_oci_la_logGroup_id +} \ No newline at end of file diff --git a/logan/terraform/oke/modules/logan/provider.tf b/logan/terraform/oke/modules/logan/provider.tf new file mode 100644 index 00000000..e310a47a --- /dev/null +++ b/logan/terraform/oke/modules/logan/provider.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.0" + required_providers { + oci = { + source = "oracle/oci" + version = ">= 4.96.0" + # https://registry.terraform.io/providers/hashicorp/oci/4.85.0 + } + } +} \ No newline at end of file diff --git a/logan/terraform/oke/oci_images.tf b/logan/terraform/oke/oci_images.tf new file mode 100644 index 00000000..e69de29b diff --git a/logan/terraform/oke/outputs.tf b/logan/terraform/oke/outputs.tf new file mode 100644 index 00000000..e69de29b diff --git a/logan/terraform/oke/providers.tf b/logan/terraform/oke/providers.tf index 9c07105d..6b797e24 100644 --- a/logan/terraform/oke/providers.tf +++ b/logan/terraform/oke/providers.tf @@ -1,27 +1,72 @@ -# Update this oci provider when using terraform locally to have all other relevent fields set -# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm -provider "oci" { - tenancy_ocid = var.tenancy_ocid - region = var.region -} - -# https://docs.cloud.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengdownloadkubeconfigfile.htm#notes -provider "helm" { - kubernetes { - host = local.cluster_endpoint - cluster_ca_certificate = local.cluster_ca_certificate - exec { - api_version = "client.authentication.k8s.io/v1beta1" - args = ["ce", "cluster", "generate-token", "--cluster-id", local.cluster_id, "--region", local.cluster_region] - command = "oci" - } - } -} - - -locals { - cluster_endpoint = yamldecode(data.oci_containerengine_cluster_kube_config.oke.content)["clusters"][0]["cluster"]["server"] - cluster_ca_certificate = base64decode(yamldecode(data.oci_containerengine_cluster_kube_config.oke.content)["clusters"][0]["cluster"]["certificate-authority-data"]) - cluster_id = yamldecode(data.oci_containerengine_cluster_kube_config.oke.content)["users"][0]["user"]["exec"]["args"][4] - cluster_region = yamldecode(data.oci_containerengine_cluster_kube_config.oke.content)["users"][0]["user"]["exec"]["args"][6] -} \ No newline at end of file +terraform { + required_version = "~> 1.0.0, < 1.1" + required_providers { + oci = { + source = "oracle/oci" + version = ">= 4.96.0" + # https://registry.terraform.io/providers/hashicorp/oci/4.85.0 + } + helm = { + source = "hashicorp/helm" + version = "2.7.1" + # https://registry.terraform.io/providers/hashicorp/helm/2.1.0 + } + local = { + source = "hashicorp/local" + version = "2.2.3" + # https://registry.terraform.io/providers/hashicorp/local/2.1.0 + } + } +} + +# https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm +provider "oci" { + tenancy_ocid = var.boat_auth ? var.boat_tenancy_ocid : var.tenancy_ocid + region = var.region + + private_key_path = var.private_key_path + fingerprint = var.fingerprint + user_ocid = var.user_ocid +} + +data "oci_identity_region_subscriptions" "regions" { + tenancy_id = var.tenancy_ocid +} + +locals { + home_region = [for s in data.oci_identity_region_subscriptions.regions.region_subscriptions : s.region_name if s.is_home_region == true][0] +} + +provider "oci" { + alias = "home_region" + tenancy_ocid = var.boat_auth ? var.boat_tenancy_ocid : var.tenancy_ocid + region = local.home_region + + private_key_path = var.private_key_path + fingerprint = var.fingerprint + user_ocid = var.user_ocid +} + +# data "oci_containerengine_cluster_kube_config" "oke" { +# cluster_id = var.oke_cluster_ocid +# } + +# locals { +# cluster_endpoint = yamldecode(data.oci_containerengine_cluster_kube_config.oke.content)["clusters"][0]["cluster"]["server"] +# cluster_ca_certificate = base64decode(yamldecode(data.oci_containerengine_cluster_kube_config.oke.content)["clusters"][0]["cluster"]["certificate-authority-data"]) +# cluster_id = yamldecode(data.oci_containerengine_cluster_kube_config.oke.content)["users"][0]["user"]["exec"]["args"][4] +# cluster_region = yamldecode(data.oci_containerengine_cluster_kube_config.oke.content)["users"][0]["user"]["exec"]["args"][6] +# } + +# # https://docs.cloud.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengdownloadkubeconfigfile.htm#notes +# provider "helm" { +# kubernetes { +# host = local.cluster_endpoint +# cluster_ca_certificate = local.cluster_ca_certificate +# exec { +# api_version = "client.authentication.k8s.io/v1beta1" +# args = ["ce", "cluster", "generate-token", "--cluster-id", local.cluster_id, "--region", local.cluster_region] +# command = "oci" +# } +# } +# } \ No newline at end of file diff --git a/logan/terraform/oke/schema.yaml b/logan/terraform/oke/schema.yaml index 008b7bef..ab1de97d 100644 --- a/logan/terraform/oke/schema.yaml +++ b/logan/terraform/oke/schema.yaml @@ -1,106 +1,200 @@ -title: OCI Kubernetes Monitoring Solution -description: Monitoring Solution for Kubernetes offered by OCI Logging Analytics -informationalText: Monitoring Solution for Kubernetes offered by OCI Logging Analytics -schemaVersion: 1.1.0 -version: "20221004" - -# URL of Logo Icon used on Application Information tab. Logo must be 130x130 pixels. -# (Optional) -#logoUrl: https://cloudmarketplace.oracle.com/marketplace/content?contentId=53066708 - -source: - type: quickstart - -locale: "en" - -variableGroups: - - title: "Defualt inputs" - variables: - - tenancy_ocid - - region - visible: false - - - title: "OKE Cluster Information" - variables: - - oke_cluster_compartment - - oke_cluster_ocid - - oke_cluster_name - - container_image_url - - kubernetes_namespace - - - title: "OCI Logging Analytics Information" - variables: - - oci_la_namespace - - oci_la_logGroup_id - - - title: "Fluentd Configuration" - variables: - - fluentd_baseDir_path - -variables: - oke_cluster_compartment: - type: oci:identity:compartment:id - required: true - title: OKE Cluster Compartment - default: compartment_ocid - - oke_cluster_ocid: - type: oci:container:cluster:id - dependsOn: - compartmentId: ${oke_cluster_compartment} - title: OKE Cluster - required: true - - # string field - oke_cluster_name: - type: string - minLength: 1 - maxLength: 255 - title: OKE Cluster Name - required: true - - # string field - container_image_url: - type: string - minLength: 1 - maxLength: 255 - title: OCI LA Fluentd Container Image - description: Image URL of OCI LA Fluentd Container - required: true - - # string field - kubernetes_namespace: - type: string - minLength: 1 - maxLength: 255 - title: Kubernetes Namespace - description: Kubernetes Namespace in which the monitoring solution to be deployed - default: kube-system - required: true - - # string field - fluentd_baseDir_path: - type: string - maxLength: 255 - minLength: 1 - title: Fluentd Base Directory - description: Base directory on the node (with read write permission) to store fluentd plugin's related data - default: /var/log - required: true - - # string field - oci_la_namespace: - type: string - maxLength: 40 - minLength: 1 - title: OCI Logging Analytics Namespace - required: true - - # string field - oci_la_logGroup_id: - type: string - maxLength: 255 - minLength: 1 - title: OCI Logging Analytics LogGroup OCID - description: The LogGroup in which the collected log data to be stored - required: true \ No newline at end of file +title: OCI Kubernetes Monitoring Solution +description: Monitoring Solution for Kubernetes offered by OCI Logging Analytics +informationalText: Monitoring Solution for Kubernetes offered by OCI Logging Analytics +schemaVersion: 1.1.0 +version: "20221004" + +# URL of Logo Icon used on Application Information tab. Logo must be 130x130 pixels. +# (Optional) +#logoUrl: https://cloudmarketplace.oracle.com/marketplace/content?contentId=53066708 + +source: + type: marketplace # enum - marketplace, quickstart or web + +locale: "en" + +variableGroups: + - title: "configuration inputs" + variables: + - auth_tenancy_ocid + - tenancy_ocid + - region + - user_ocid + - private_key_path + - fingerprint + - enable_helm_debugging + - enable_dashboard_import + - enable_helm_release + - boat_auth + - boat_tenancy_ocid + - compartment_ocid + visible: false + + - title: "Pre-requisites" + variables: + - opt_create_dynamicGroup_and_policies + visible: + and: + - enable_helm_release + + - title: "OKE Cluster Information" + variables: + - oke_compartment_ocid + - oke_cluster_ocid + - kubernetes_namespace + - opt_create_kubernetes_namespace + visible: + and: + - enable_helm_release + + - title: "OCI Logging Analytics Information" + variables: + - oci_la_compartment_ocid + - opt_create_new_la_logGroup + - oci_la_logGroup_id + - oci_la_logGroup_name + visible: + and: + - enable_helm_release + + - title: "Fluentd Configuration" + variables: + - container_image_url + - fluentd_baseDir_path + visible: + and: + - enable_helm_release + +variables: + + #### + ## Deployment Options + #### + + # Option to install helm chart + enable_helm_release: + type: boolean + title: Deploy Kubernetes Monitoring Solution + description: "Ref: https://github.com/oracle-quickstart/oci-kubernetes-monitoring" + default: true + required: true + + #### + ## Pre-requisites + #### + + # Option to create Dynamic Group and Policies + opt_create_dynamicGroup_and_policies: + type: boolean + title: Create Dynamic Group and Policies required for Kubernetes Monitoring Solution (Un-check if created manually) + #description: "Ref: https://github.com/oracle-quickstart/oci-kubernetes-monitoring#pre-requisites" + description: "Note: The auto-created dynamic group may need changes, if node pool(s) compartment is different than cluster compartment." + default: true + required: true + + #### + ## OKE Cluster Information + #### + + # OKE Cluster Compartment + oke_compartment_ocid: + type: oci:identity:compartment:id + required: true + title: OKE Cluster Compartment + default: compartment_ocid + + # OKE Cluster OCID + oke_cluster_ocid: + type: oci:container:cluster:id + dependsOn: + compartmentId: ${oke_compartment_ocid} + title: OKE Cluster + required: true + + # Kubernetes Namespace + kubernetes_namespace: + type: string + minLength: 1 + maxLength: 63 + title: Kubernetes Namespace + description: Kubernetes Namespace in which the monitoring solution to be deployed + default: kube-system + pattern: '^([a-z0-9]|[a-z][a-z\-0-9]*[a-z0-9])$' #Ref - https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names + required: true + + # Option to create Kubernetes Namespace + opt_create_kubernetes_namespace: + type: boolean + title: Create namespace, if doesn't exist + description: "Note: Un-checking this option can lead to failure when namespace doesn't exist in cluster" + default: true + required: true + + #### + ## OCI Logging Analytics Information + #### + + # Compartment for creating dashboards and logGroup + oci_la_compartment_ocid: + type: oci:identity:compartment:id + required: true + title: OCI Logging Analytics Compartment + description: Compartment to store Logging Analytics dashboards and logGroup + default: compartment_ocid + + # Option to create Logging Analytics + opt_create_new_la_logGroup: # change this to create new log group + type: boolean + title: Create a new LogGroup + default: false + + # OCI Logging Analytics LogGroup OCID of existing LogGroup + oci_la_logGroup_id: + type: oci:logan:loggroup:id + dependsOn: + compartmentId: ${oci_la_compartment_ocid} + title: OCI Logging Analytics LogGroup + description: LogGroup to store collected logs + required: true + visible: + not: + - opt_create_new_la_logGroup + + # New Log Group to collect Kubernetes data + oci_la_logGroup_name: + type: string + maxLength: 255 + minLength: 1 + required: true + title: "OCI Logging Analytics LogGroup Name" + description: "Note: LogGroup name must be unique in a tenant" + visible: + and: + - opt_create_new_la_logGroup + pattern: '^([a-zA-Z0-9]|[a-zA-Z0-9][\\ a-zA-Z0-9_\-]*[\\a-zA-Z\-0-9_])$' + + #### + ## Fluentd Configuration + #### + + # OCI LA Fluentd Container Image + container_image_url: + type: string + minLength: 1 + maxLength: 255 + title: OCI Logging Analytics fluentd container image + default: iad.ocir.io/ax1wgjs6b2vc/oci_la_fluentd:ol8-1.1 + pattern: '^[\S]+$' + required: true + description: "Note: Default value is not recommended for production usage. You may need to build your own image using https://github.com/oracle-quickstart/oci-kubernetes-monitoring#docker-image" + + # Fluentd Base Directory + fluentd_baseDir_path: + type: string + maxLength: 255 + minLength: 1 + title: Fluentd Base Directory + description: Base directory on the node (with read & write permission) to store fluentd plugin's related data + default: /var/log + required: true + pattern: '^/[\w- /]*$' \ No newline at end of file diff --git a/logan/terraform/oke/terraform-sample.tfvars b/logan/terraform/oke/terraform-sample.tfvars new file mode 100644 index 00000000..24a9749f --- /dev/null +++ b/logan/terraform/oke/terraform-sample.tfvars @@ -0,0 +1,47 @@ + +### Configure Boat Authentication for OCI; leave unchaged if not using boat authentication +boat_auth = false # set true to use BOAT Authentication +boat_tenancy_ocid = "" # ; leave uncganged if boat_auth=false + +### OCI Provider inputs +tenancy_ocid = "" # Use Boat tenancy OCID if boat_auth=true +region = "" # add target region - ex: "us-phoenix-1" +user_ocid = "" # ; leave it empty for cloud-shell +private_key_path = "" # ; leave it empty for cloud-shell +fingerprint = "" # ; leave it empty for cloud-shell + +### Stack inputs + +# Option to create Dynamic Group and Policies +opt_create_dynamicGroup_and_policies = true # changes as required + +# OKE Cluster Compartment +oke_compartment_ocid = "" + +# OKE Cluster OCID +oke_cluster_ocid = "" + +# Kubernetes Namespace in which the monitoring solution to be deployed +kubernetes_namespace = "kube-system" # can change if want to deploy in a custom namespace + +# Option to create Kubernetes Namespace +opt_create_kubernetes_namespace = true # If true, kubernetes_namespace will be created if does not exist already + +# Compartment for creating dashboards and saved-searches and logGroup +oci_la_compartment_ocid = "" + +# Option to create Logging Analytics +opt_create_new_la_logGroup = false # if ture, oci_la_logGroup_name must be set + +# OCI Logging Analytics LogGroup +oci_la_logGroup_id = "" # Add OCID of logGroup if opt_use_existing_la_logGroup=true, leave it empty otherwise + +# OCI Logging Analytics LogGroup Name +oci_la_logGroup_name = "NewLogGroupName" # leave it unchanged, if opt_use_existing_la_logGroup=false + +# Image URL of OCI LA Fluentd Container +# Reference - https://github.com/oracle-quickstart/oci-kubernetes-monitoring#docker-image +container_image_url = "" + +# Base directory on the node (with read & write permission) to store fluentd plugin's related data +fluentd_baseDir_path = "/var/log" # change as required \ No newline at end of file