Skip to content

Commit

Permalink
Add logging exporter to otel collector (#16574)
Browse files Browse the repository at this point in the history
* Add logging exporter to otel collector

* Bump telemetry-operator image

* Change deprecated loglevel property to new verbosity
  • Loading branch information
chrkl committed Jan 18, 2023
1 parent 84232d2 commit 4ff7547
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Expand Up @@ -2,9 +2,10 @@ package tracepipeline

import (
"fmt"
"strings"

"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/utils/pointer"
"strings"

"github.com/kyma-project/kyma/components/telemetry-operator/apis/telemetry/v1alpha1"
monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
Expand Down Expand Up @@ -62,7 +63,7 @@ func makeConfigMap(config Config, output v1alpha1.TracePipelineOutput) *corev1.C
"traces": map[string]any{
"receivers": []any{"opencensus", "otlp"},
"processors": []any{"memory_limiter", "k8sattributes", "resource", "batch"},
"exporters": []any{outputType},
"exporters": []any{outputType, "logging"},
},
},
"telemetry": map[string]any{
Expand Down Expand Up @@ -134,6 +135,9 @@ func makeExporterConfig(output v1alpha1.TracePipelineOutput) map[string]any {
"max_elapsed_time": "300s",
},
},
"logging": map[string]any{
"verbosity": "basic",
},
}
}

Expand Down
2 changes: 1 addition & 1 deletion resources/telemetry/values.yaml
Expand Up @@ -7,7 +7,7 @@ global:
version: "PR-16573"
telemetry_operator:
name: "telemetry-operator"
version: "PR-16573"
version: "PR-16574"
telemetry_webhook_cert_init:
name: "webhook-cert-init"
version: "PR-16573"
Expand Down

0 comments on commit 4ff7547

Please sign in to comment.