Skip to content

Commit 263b7c6

Browse files
authored
Add provider and distro options (#80)
The previous option of platform has been split into two separate options, provider and distro. This allows us to distinguish between cloud-managed clusters and user-managed clusters. The reason " " (with a space) is allowed as an option is to work around UI wizard that is not able to omit the option or provide just an empty space.
1 parent 758c12e commit 263b7c6

File tree

4 files changed

+38
-14
lines changed

4 files changed

+38
-14
lines changed

helm-charts/splunk-otel-collector/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: splunk-otel-collector
3-
version: 0.21.1
3+
version: 0.22.0
44
description: Splunk OpenTelemetry Connector for Kubernetes
55
type: application
66
keywords:

helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,22 @@ processors:
8686
# https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourcedetectionprocessor
8787
resourcedetection:
8888
detectors:
89+
# Note: Kubernetes distro detectors need to come first so they set the proper cloud.platform
90+
# before it gets set later by the cloud provider detector.
8991
- env
90-
{{- if eq .Values.platform "gcp" }}
92+
{{- if eq .Values.distro "gke" }}
9193
- gke
92-
- gce
93-
{{- else if eq .Values.platform "aws" }}
94+
{{- else if eq .Values.distro "eks" }}
9495
- eks
96+
{{- else if eq .Values.distro "aks" }}
97+
- aks
98+
{{- end }}
99+
{{- if eq .Values.provider "gcp" }}
100+
- gce
101+
{{- else if eq .Values.provider "aws" }}
95102
- ec2
103+
{{- else if eq .Values.provider "azure" }}
104+
- azure
96105
{{- end }}
97106
timeout: 10s
98107

helm-charts/splunk-otel-collector/values.schema.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"required": [
55
"clusterName",
6-
"platform",
6+
"provider",
7+
"distro",
78
"tracesEnabled",
89
"metricsEnabled",
910
"logsEnabled"
@@ -15,10 +16,15 @@
1516
"minLength": 1,
1617
"type": "string"
1718
},
18-
"platform": {
19-
"description": "Kubernetes platform used to run the collector on",
19+
"provider": {
20+
"description": "Cloud provider where the collector is running",
2021
"type": "string",
21-
"enum": ["aws", "gcp", "default"]
22+
"enum": ["aws", "gcp", "azure", " ", ""]
23+
},
24+
"distro": {
25+
"description": "Kubernetes distribution where the collector is running",
26+
"type": "string",
27+
"enum": ["eks", "gke", "aks", " ", ""]
2228
},
2329
"metricsEnabled": {
2430
"description": "Metrics telemetry enabled",

helm-charts/splunk-otel-collector/values.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ splunkAccessToken:
2626
# SignalFx ingest server host, default: "ingest.<realm>.signalfx.com".
2727
ingestHost:
2828

29-
# The SignalFx API URL, default: "htpps://api.<realm>.signalfx.com".
29+
# The SignalFx API URL, default: "https://api.<realm>.signalfx.com".
3030
apiUrl:
3131

3232
# Signalfx ingest endpoint port.
@@ -36,13 +36,22 @@ ingestPort: 443
3636
ingestProtocol: https
3737

3838
################################################################################
39-
# Kubernetes platform used to run the collector on. Valid options are:
40-
# - "aws" (Amazon EKS and self-managed k8s cluster on AWS EC2)
41-
# - "gcp" (Google GKE and self-managed k8s cluster on GCP GCE)
42-
# - "default"
39+
# Cloud provider, if any, the collector is running on. Leave empty for none/other.
40+
# - "aws" (Amazon Web Services)
41+
# - "gcp" (Google Cloud Platform)
42+
# - "azure" (Microsoft Azure)
4343
################################################################################
4444

45-
platform: default
45+
provider: ""
46+
47+
################################################################################
48+
# Kubernetes distribution being run. Leave empty for other.
49+
# - "eks" (Amazon Elastic Kubernetes Service)
50+
# - "gke" (Google Google Kubernetes Engine)
51+
# - "aks" (Azure Kubernetes Service)
52+
################################################################################
53+
54+
distro: ""
4655

4756
################################################################################
4857
# Telemetry configuration.

0 commit comments

Comments
 (0)