From b4fc4fd6194c25be51ae74094179d004361ffb93 Mon Sep 17 00:00:00 2001 From: Dominik Rosiek Date: Thu, 20 Jul 2023 11:23:07 +0200 Subject: [PATCH] chore: ci checks Signed-off-by: Dominik Rosiek --- .changelog/3159.changed.txt | 1 + deploy/helm/sumologic/README.md | 12 +++++++++++- .../otelcol-instrumentation-hpa/basic.output.yaml | 12 ++++++------ .../goldenfile/traces-gateway-hpa/basic.output.yaml | 12 ++++++------ 4 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 .changelog/3159.changed.txt diff --git a/.changelog/3159.changed.txt b/.changelog/3159.changed.txt new file mode 100644 index 0000000000..710eab9a8c --- /dev/null +++ b/.changelog/3159.changed.txt @@ -0,0 +1 @@ +feat: add hpa for tracing \ No newline at end of file diff --git a/deploy/helm/sumologic/README.md b/deploy/helm/sumologic/README.md index 9baf1e047f..169deda46b 100644 --- a/deploy/helm/sumologic/README.md +++ b/deploy/helm/sumologic/README.md @@ -441,7 +441,12 @@ The following table lists the configurable parameters of the Sumo Logic chart an | `opentelemetry-operator.instrumentationJobImage.image.tag` | Name of the image tag used to apply Instrumentation resource | `2.14.0` | | `opentelemetry-operator.admissionWebhooks` | Admission webhooks make sure only requests with correctly formatted rules will get into the Operator. They also enable the sidecar injection for OpenTelemetryCollector and Instrumentation CR's. | See [values.yaml] | | `opentelemetry-operator.manager.env` | Additional environment variables for opentelemetry-operator helm chart. | `Nil` | -| `otelcolInstrumentation.enabled` | Enables Sumo OTel Distro Collector StatefulSet to collect telemetry data. [See docs for more information.](/docs/opentelemetry-collector.md#traces) | `true` | +| `otelcolInstrumentation.enabled` | Enables Sumo Otel Distro Collector StatefulSet to collect telemetry data. [See docs for more information.](/docs/opentelemetry-collector.md#traces) | `true` | +| `otelcolInstrumentation.autoscaling.enabled` | Option to turn autoscaling on for Sumo Otel Distro Collector StatefulSet and specify params for HPA. Autoscaling needs metrics-server to access cpu metrics. | `false` | +| `otelcolInstrumentation.autoscaling.minReplicas` | Default min replicas for autoscaling. | `3` | +| `otelcolInstrumentation.autoscaling.maxReplicas` | Default max replicas for autoscaling | `10` | +| `otelcolInstrumentation.autoscaling.targetCPUUtilizationPercentage` | The desired target CPU utilization for autoscaling. | `100` | +| `otelcolInstrumentation.autoscaling.targetMemoryUtilizationPercentage` | The desired target memory utilization for autoscaling. | `50` | | `otelcolInstrumentation.statefulset.replicaCount` | Set the number of otelcol-instrumentation replicasets. | `3` | | `otelcolInstrumentation.statefulset.nodeSelector` | Node selector for otelcol-instrumentation statefulset. [See docs/best-practices.md for more information.](/docs/best-practices.md) | `{}` | | `otelcolInstrumentation.statefulset.priorityClassName` | Priority class name for otelcol-instrumentation pods. | If not provided then set to `RELEASE-NAME-sumologic-priorityclass`. | @@ -477,6 +482,11 @@ The following table lists the configurable parameters of the Sumo Logic chart an | `otelcolInstrumentation.statefulset.containers.otelcol.readinessProbe` | Readiness probe settings for the otelcol-instrumentation container. | `{"initialDelaySeconds": 5, "periodSeconds": 10, "timeoutSeconds": 3, "failureThreshold": 3}` | | `otelcolInstrumentation.statefulset.containers.otelcol.securityContext` | The securityContext configuration for the otelcol-instrumentation container. | `{}` | | `tracesGateway.enabled` | Flag to control deploying traces-gateway. [See docs for more information.](/docs/opentelemetry-collector.md#traces) | `true` | +| `tracesGateway.autoscaling.enabled` | Option to turn autoscaling on for traces-gateway and specify params for HPA. Autoscaling needs metrics-server to access cpu metrics. | `false` | +| `tracesGateway.autoscaling.minReplicas` | Default min replicas for autoscaling. | `3` | +| `tracesGateway.autoscaling.maxReplicas` | Default max replicas for autoscaling | `10` | +| `tracesGateway.autoscaling.targetCPUUtilizationPercentage` | The desired target CPU utilization for autoscaling. | `100` | +| `tracesGateway.autoscaling.targetMemoryUtilizationPercentage` | The desired target memory utilization for autoscaling. | `50` | | `tracesGateway.deployment.replicas` | Set the number of OpenTelemetry Collector replicas. | `1` | | `tracesGateway.deployment.nodeSelector` | Node selector for otelcol deployment. [See docs/best-practices.md for more information.](/docs/best-practices.md) | `{}` | | `tracesGateway.deployment.priorityClassName` | Priority class name for OpenTelemetry Collector log pods. | `Nil` | diff --git a/tests/helm/testdata/goldenfile/otelcol-instrumentation-hpa/basic.output.yaml b/tests/helm/testdata/goldenfile/otelcol-instrumentation-hpa/basic.output.yaml index cfbded6181..9f7f80b661 100644 --- a/tests/helm/testdata/goldenfile/otelcol-instrumentation-hpa/basic.output.yaml +++ b/tests/helm/testdata/goldenfile/otelcol-instrumentation-hpa/basic.output.yaml @@ -18,9 +18,9 @@ spec: minReplicas: 3 maxReplicas: 10 metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 100 + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 100 diff --git a/tests/helm/testdata/goldenfile/traces-gateway-hpa/basic.output.yaml b/tests/helm/testdata/goldenfile/traces-gateway-hpa/basic.output.yaml index 52c3d16c5e..8046a0e2ef 100644 --- a/tests/helm/testdata/goldenfile/traces-gateway-hpa/basic.output.yaml +++ b/tests/helm/testdata/goldenfile/traces-gateway-hpa/basic.output.yaml @@ -18,9 +18,9 @@ spec: minReplicas: 3 maxReplicas: 10 metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 100 + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 100