Skip to content

Commit 45e7682

Browse files
V3.2.0 release (#57)
V3.2.0 release.
1 parent 67012e7 commit 45e7682

35 files changed

+553
-290
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ terraform.rc
5858
logan/util/*
5959

6060
# helm-chart
61-
charts/oci-onm/Chart.lock
62-
charts/oci-onm/charts/
61+
charts/tests/
62+
charts/**/Chart.lock
63+
charts/**/charts/
6364

6465
# zip artifacts
65-
releases/
66+
releases/

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Change Log
22

3+
## 2023-11-30
4+
### Added
5+
- Added resources information that got created through RM Stack to Stack output.
6+
- Added new auto created policy for Kubernetes Objects discovery (for future release(s) use).
7+
- Added new helm variable for cluster's EntityId (ociLAClusterEntityID) (for future release(s) use).
8+
### Changed
9+
- RM Stack is changed to use remote [helm repo](https://oracle-quickstart.github.io/oci-kubernetes-monitoring), instead of a local copy of helm chart source.
10+
- RM Stack is modified to skip recreation of Management Agent Key if the Key already created by Stack.
11+
### Breaking Changes
12+
- Removed ociLAEntityID input variable of Logan chart. This was an optional and its use-case was not defined so far. Hence, it shouldn't be a breaking change in general but still documenting for the reference.
13+
314
## 2023-11-07
415
### Added
516
- Control Plane Logs Collection for OCNE and Standalone Kubernetes Clusters.

charts/logan/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: v2
55
name: oci-onm-logan
66
description: Charts for sending Kubernetes platform logs, compute logs, and Kubernetes Objects information to OCI Logging Analytics.
77
type: application
8-
version: 3.1.1
8+
version: 3.2.0
99
appVersion: "3.0.0"
1010

1111
dependencies:

charts/logan/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Charts for sending Kubernetes platform logs, compute logs, and Kubernetes Object
1515
| Key | Type | Default | Description |
1616
|-----|------|---------|-------------|
1717
| authtype | string | `"InstancePrincipal"` | Allowed values: InstancePrincipal, config |
18-
| extraEnv | list | `[]` | Logging Analytics OCID for OKE Cluster ociLAEntityID: Logging Analytics additional metadata. Use this to tag all the collected logs with one or more key:value pairs. Key must be a valid field in Logging Analytics metadata: "Client Host Region": "PCT" "Environment": "Production" "Third key": "Third Value" @param extra environment variables. Example name: ENV_VARIABLE_NAME value: ENV_VARIABLE_VALUE |
18+
| extraEnv | list | `[]` | Use this to tag all the collected logs with one or more key:value pairs. Key must be a valid field in Logging Analytics metadata: "Client Host Region": "PCT" "Environment": "Production" "Third key": "Third Value" @param extra environment variables. Example name: ENV_VARIABLE_NAME value: ENV_VARIABLE_VALUE |
1919
| extraVolumeMounts | list | `[]` | @param extraVolumeMounts Mount extra volume(s). Example: - name: tmpDir mountPath: /tmp |
2020
| extraVolumes | list | `[]` | @param extraVolumes Extra volumes. Example: - name: tmpDir hostPath: path: /tmp log |
2121
| fluentd.baseDir | string | `"/var/log"` | Base directory on the node (with read write permission) for storing fluentd plugins related data. |
@@ -60,7 +60,7 @@ Charts for sending Kubernetes platform logs, compute logs, and Kubernetes Object
6060
| global.resourceNamePrefix | string | `"oci-onm"` | Resource names prefix used, where allowed. |
6161
| image.imagePullPolicy | string | `"Always"` | Image pull policy |
6262
| image.imagePullSecrets | string | `nil` | |
63-
| image.url | string | `"container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.0.0"` | Replace this value with actual docker image url |
63+
| image.url | string | `"container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.1.0"` | Replace this value with actual docker image url |
6464
| kubernetesClusterID | string | `nil` | OKE Cluster OCID e.g. ocid1.cluster.oc1.phx.aaaaaaaahhbadf3rxa62faaeixanvr7vftmkg6hupycbf4qszctf2wbmqqxq |
6565
| kubernetesClusterName | string | `nil` | Kubernetes Cluster name. Need not be the OKE Cluster display name. e.g. production-cluster |
6666
| namespace | string | `"{{ .Values.global.namespace }}"` | Kubernetes Namespace for deploying monitoring resources deployed by this chart. |

charts/logan/templates/logs-configmap.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ data:
102102
{{- end }}
103103
oci_la_log_path "${record['tailed_path']}"
104104
oci_la_log_source_name "{{ $logDefinition.ociLALogSourceName | required (printf "fluentd.kubernetesSystem.logs.%s.ociLALogSourceName is required" $name) }}"
105-
{{- if $logDefinition.ociLAEntityID }}
106-
oci_la_entity_id "{{ $logDefinition.ociLAEntityID }}"
107-
{{- else }}
108-
oci_la_entity_id "{{ $.Values.fluentd.kubernetesSystem.ociLAEntityID | default $.Values.ociLAEntityID }}"
109-
{{- end }}
110105
{{- if $logDefinition.ociLALogSet }}
111106
oci_la_log_set "{{ $logDefinition.ociLALogSet }}"
112107
{{- else }}
@@ -207,11 +202,6 @@ data:
207202
{{- end }}
208203
oci_la_log_path "${record['tailed_path']}"
209204
oci_la_log_source_name "{{ $logDefinition.ociLALogSourceName | required (printf "fluentd.linuxSystem.logs.%s.ociLALogSourceName is required" $name) }}"
210-
{{- if $logDefinition.ociLAEntityID }}
211-
oci_la_entity_id "{{ $logDefinition.ociLAEntityID }}"
212-
{{- else }}
213-
oci_la_entity_id "{{ $.Values.fluentd.linuxSystem.ociLAEntityID | default $.Values.ociLAEntityID }}"
214-
{{- end }}
215205
{{- if $logDefinition.ociLALogSet }}
216206
oci_la_log_set "{{ $logDefinition.ociLALogSet }}"
217207
{{- else }}
@@ -296,11 +286,6 @@ data:
296286
{{- end }}
297287
oci_la_log_path "${record['tailed_path']}"
298288
oci_la_log_source_name "{{ required "fluentd.linuxSystem.logs.kubeletlog.ociLALogSourceName is required" $.Values.fluentd.linuxSystem.logs.kubeletlog.ociLALogSourceName }}"
299-
{{- if $.Values.fluentd.linuxSystem.logs.kubeletlog.ociLAEntityID }}
300-
oci_la_entity_id "{{ $.Values.fluentd.linuxSystem.logs.kubeletlog.ociLAEntityID }}"
301-
{{- else }}
302-
oci_la_entity_id "{{ $.Values.fluentd.linuxSystem.ociLAEntityID | default $.Values.ociLAEntityID }}"
303-
{{- end }}
304289
{{- if $.Values.fluentd.linuxSystem.logs.kubeletlog.ociLALogSet }}
305290
oci_la_log_set "{{ $.Values.fluentd.linuxSystem.logs.kubeletlog.ociLALogSet }}"
306291
{{- else }}
@@ -331,11 +316,6 @@ data:
331316
{{- end }}
332317
oci_la_log_path "${record['tailed_path']}"
333318
oci_la_log_source_name "{{ required "fluentd.linuxSystem.logs.syslog.ociLALogSourceName is required" $.Values.fluentd.linuxSystem.logs.syslog.ociLALogSourceName }}"
334-
{{- if $.Values.fluentd.linuxSystem.logs.syslog.ociLAEntityID }}
335-
oci_la_entity_id "{{ $.Values.fluentd.linuxSystem.logs.syslog.ociLAEntityID }}"
336-
{{- else }}
337-
oci_la_entity_id "{{ $.Values.fluentd.linuxSystem.ociLAEntityID | default $.Values.ociLAEntityID }}"
338-
{{- end }}
339319
{{- if $.Values.fluentd.linuxSystem.logs.syslog.ociLALogSet }}
340320
oci_la_log_set "{{ $.Values.fluentd.linuxSystem.logs.syslog.ociLALogSet }}"
341321
{{- else }}
@@ -410,7 +390,6 @@ data:
410390
{{- end }}
411391
oci_la_log_path "${record['tailed_path']}"
412392
oci_la_log_source_name "{{ $logDefinition.ociLALogSourceName | required (printf "fluentd.customLogs.%s.ociLALogSourceName is required" $name) }}"
413-
oci_la_entity_id "{{ $logDefinition.ociLAEntityID | default $.Values.ociLAEntityID }}"
414393
oci_la_log_set "{{ $logDefinition.ociLALogSet | default $.Values.ociLALogSet }}"
415394
{{- if and (ne "false" ($logDefinition.isContainerLog | toString)) (eq $runtime "docker") }}
416395
message "${record['log']}"
@@ -517,7 +496,6 @@ data:
517496
oci_la_log_group_id ${record.dig("kubernetes", "annotations", "oracle.com/oci_la_log_group_id") ? record.dig("kubernetes", "annotations", "oracle.com/oci_la_log_group_id") : "{{ $.Values.fluentd.genericContainerLogs.ociLALogGroupID | default $.Values.ociLALogGroupID }}"}
518497
oci_la_log_path "${record['tailed_path']}"
519498
oci_la_log_source_name ${record.dig("kubernetes", "annotations", "oracle.com/oci_la_log_source_name") ? record.dig("kubernetes", "annotations", "oracle.com/oci_la_log_source_name") : "{{ $.Values.fluentd.genericContainerLogs.ociLALogSourceName | default "Kubernetes Container Generic Logs" }}"}
520-
oci_la_entity_id ${record.dig("kubernetes", "annotations", "oracle.com/oci_la_entity_id") ? record.dig("kubernetes", "annotations", "oracle.com/oci_la_entity_id") : "{{ $.Values.fluentd.genericContainerLogs.ociLAEntityID | default $.Values.ociLAEntityID }}"}
521499
oci_la_log_set ${record.dig("kubernetes", "annotations", "oracle.com/oci_la_log_set") ? record.dig("kubernetes", "annotations", "oracle.com/oci_la_log_set") : "{{ $.Values.fluentd.genericContainerLogs.ociLALogSet | default $.Values.ociLALogSet }}"}
522500
{{- if eq $runtime "docker" }}
523501
message "${record['log']}"

charts/logan/templates/objects-configmap.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ data:
100100
oci_la_metadata ${{"{{"}}"Kubernetes Cluster Name":"{{ $kubernetesClusterName }}", "Kubernetes Cluster ID": "{{ $kubernetesClusterId }}" {{- range $k, $v := .Values.metadata }},{{ $k | quote }}: {{ $v | quote -}} {{- end }}{{"}}"}}
101101
{{- end }}
102102
oci_la_log_group_id "{{ .Values.fluentd.kubernetesObjects.ociLALogGroupID | default .Values.ociLALogGroupID }}"
103-
oci_la_entity_id "{{ .Values.fluentd.kubernetesObjects.ociLAEntityID | default .Values.ociLAEntityID }}"
104103
oci_la_log_set "{{ .Values.fluentd.kubernetesObjects.ociLALogSet | default .Values.ociLALogSet }}"
105104
oci_la_log_path ${tag}
106105
oci_la_log_source_name "Kubernetes Object Logs"

charts/logan/values.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,15 @@ kubernetesClusterID:
6767
# e.g. production-cluster
6868
kubernetesClusterName:
6969

70+
# -- Kubernetes Cluster Entity OCID.
71+
# e.g. ocid1.loganalyticsentity.oc1.phx.amaaaaaabulluiqabqeq4delvhdlmd7aqcjrdla57n2szsxyz7pfdvnhwuua
72+
ociLAClusterEntityID:
73+
7074
# -- Kubernetes Security Context privileged flag
7175
# Default: 'false'. This is not a required for OKE clusters.
7276
# In Kubernetes environments where SELinux mode is enforced, set this flag to 'true' to allow fluentd pods to access log files.
7377
privileged: false
7478

75-
# -- Logging Analytics OCID for OKE Cluster
76-
#ociLAEntityID:
77-
7879
# Logging Analytics additional metadata. Use this to tag all the collected logs with one or more key:value pairs.
7980
# Key must be a valid field in Logging Analytics
8081
#metadata:
@@ -236,7 +237,6 @@ fluentd:
236237
#"Client Host Region": "America"
237238
#"Environment": "Production"
238239
#"Third Key": "Third Value"
239-
#ociLAEntityID:
240240
#encoding:
241241
# Worker number in case of multi process workers enabled. If not set when multi process workers enabled, then it defaults to 0.
242242
#worker:
@@ -254,7 +254,6 @@ fluentd:
254254
#"Client Host Region": "America"
255255
#"Environment": "Production"
256256
#"Third Key": "Third Value"
257-
#ociLAEntityID:
258257
#ociLALogGroupID:
259258
#encoding:
260259
# Worker number in case of multi process workers enabled. If not set when multi process workers enabled, then it defaults to 0.
@@ -358,7 +357,6 @@ fluentd:
358357
#"Client Host Region": "America"
359358
#"Environment": "Production"
360359
#"Third Key": "Third Value"
361-
#ociLAEntityID:
362360
#encoding:
363361
# Worker number in case of multi process workers enabled. If not set when multi process workers enabled, then it defaults to 0.
364362
#worker:
@@ -468,7 +466,6 @@ fluentd:
468466
#"Client Host Region": "America"
469467
#"Environment": "Production"
470468
#"Third Key": "Third Value"
471-
#ociLAEntityID:
472469
#encoding:
473470
# Worker number in case of multi process workers enabled. If not set when multi process workers enabled, then it defaults to 0.
474471
#worker:
@@ -496,7 +493,6 @@ fluentd:
496493
#"Client Host Region": "America"
497494
#"Environment": "Production"
498495
#"Third Key": "Third Value"
499-
#ociLAEntityID:
500496
#ociLALogGroupID:
501497
objectsList:
502498
nodes:

charts/oci-onm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type: application
1818
# This is the chart version. This version number should be incremented each time you make changes
1919
# to the chart and its templates, including the app version.
2020
# Versions are expected to follow Semantic Versioning (https://semver.org/)
21-
version: 3.1.1
21+
version: 3.2.0
2222

2323
# This is the version number of the application being deployed. This version number should be
2424
# incremented each time you make changes to the application. Versions are not expected to
@@ -32,7 +32,7 @@ dependencies:
3232
repository: "file://../common"
3333
condition: oci-onm-common.enabled
3434
- name: oci-onm-logan
35-
version: "3.1.1"
35+
version: "3.2.0"
3636
repository: "file://../logan"
3737
condition: oci-onm-logan.enabled
3838
- name: oci-onm-mgmt-agent

charts/oci-onm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Helm chart for collecting Kubernetes logs & objects and metrics using Fluentd an
2525
| oci-onm-common.namespace | string | `"{{ .Values.global.namespace }}"` | Kubernetes Namespace in which the serviceaccount to be created. |
2626
| oci-onm-common.resourceNamePrefix | string | `"{{ .Values.global.resourceNamePrefix }}"` | Prefix to be attached to resources created through this chart. Not all resources may have this prefix. |
2727
| oci-onm-common.serviceAccount | string | `"{{ .Values.global.resourceNamePrefix }}"` | Name of the Kubernetes ServiceAccount |
28-
| oci-onm-logan.image.url | string | `"container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.0.0"` | |
28+
| oci-onm-logan.image.url | string | `"container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.1.0"` | |
2929
| oci-onm-logan.kubernetesClusterID | string | `"{{ .Values.global.kubernetesClusterID }}"` | |
3030
| oci-onm-logan.kubernetesClusterName | string | `"{{ .Values.global.kubernetesClusterName }}"` | |
3131
| oci-onm-logan.namespace | string | `"{{ .Values.global.namespace }}"` | |

charts/oci-onm/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ oci-onm-mgmt-agent:
5252
# Replace this value with actual docker image URL for Management Agent
5353
url: container-registry.oracle.com/oci_observability_management/oci-management-agent:1.0.0
5454
# Image secrets to use for pulling container image (base64 encoded content of ~/.docker/config.json file)
55-
secret:
55+
secret:

0 commit comments

Comments
 (0)