Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
otel:
enabled: true
telemetryGateway:
enabled: true
23 changes: 23 additions & 0 deletions stackpacks/open-telemetry/resources/ingestion-global.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Send OTLP data directly

From an environment outside Kubernetes, send OTLP over HTTP to `{{config.baseUrl}}/otel`, authenticating with the header `Authorization: StackState {{token}}`.

OpenTelemetry Collector exporter:

```yaml
exporters:
otlphttp/suse-observability:
endpoint: {{config.baseUrl}}/otel
headers:
Authorization: "StackState {{token}}"
```

Or configure an OpenTelemetry SDK directly:

```bash
export OTEL_EXPORTER_OTLP_ENDPOINT="{{config.baseUrl}}/otel"
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=StackState {{token}}"
```

See [the documentation](https://l.stackstate.com/open-telemetry-setup) for more options.
9 changes: 8 additions & 1 deletion stackpacks/open-telemetry/stackpack.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "open-telemetry"
version: "0.1.5"
version: "0.1.7"
schemaVersion: "2.0"
displayName: "Open Telemetry"
categories: [ "Open Telemetry" ]
Expand All @@ -18,3 +18,10 @@ configurationUrls:
ERROR: !resource "configuration.md"
provision:
companionStackPacks: []
ingestion:
global:
instructions: !resource "ingestion-global.md"
cluster:
display: "OpenTelemetry"
description: "Receive OTLP traces, metrics and logs from applications in the cluster through the telemetry gateway."
values: !resource "ingestion-cluster-values.yaml"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
otel:
enabled: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
otel:
k8sResourceCollector:
crDiscovery:
apiGroups:
include:
gateway.networking.k8s.io: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
otel:
k8sResourceCollector:
crDiscovery:
apiGroups:
include:
helm.cattle.io: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
otel:
k8sResourceCollector:
crDiscovery:
apiGroups:
include:
kubevirt.io: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
otel:
k8sResourceCollector:
crDiscovery:
apiGroups:
include:
policies.kubewarden.io: true
21 changes: 20 additions & 1 deletion stackpacks/otel-k8s-crd/stackpack.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "otel-k8s-crd"
version: "0.0.9"
version: "0.0.14"
schemaVersion: "2.0"
displayName: "Kubernetes Custom Resources"
categories: [ "Kubernetes" ]
Expand All @@ -15,3 +15,22 @@ configurationUrls:
ERROR: !resource "error.md"
provision:
companionStackPacks: []
ingestion:
cluster:
display: "OpenTelemetry Kubernetes CRDs"
description: "Custom resource definitions collected by the agent's resource collector."
values: !resource "ingestion-cluster-values.yaml"
options:
- name: kubewarden
display: "Kubewarden policies"
default: true
values: !resource "ingestion-option-kubewarden.yaml"
- name: kubevirt
display: "KubeVirt virtual machines"
values: !resource "ingestion-option-kubevirt.yaml"
- name: gateway-api
display: "Gateway API"
values: !resource "ingestion-option-gateway-api.yaml"
- name: helm-controller
display: "Helm controller charts (helm.cattle.io)"
values: !resource "ingestion-option-helm-controller.yaml"
Loading