Skip to content

Commit

Permalink
feat: add OTel and Tempo to obs cluster
Browse files Browse the repository at this point in the history
Signed-off-by: Dheeraj<[email protected]>
  • Loading branch information
dheerajodha committed Dec 6, 2024
1 parent db9c029 commit a7cd1c6
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: Namespace
metadata:
name: opentelemetry
spec: {}
6 changes: 6 additions & 0 deletions cluster-scope/bundles/opentelemetry/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
nerc.mghpcc.org/bundle: opentelemetry
resources:
- ../../base/core/namespaces/opentelemetry
1 change: 1 addition & 0 deletions cluster-scope/overlays/nerc-ocp-obs/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resources:
- ../../bundles/prom-keycloak-proxy
- ../../bundles/zookeeper
- ../../bundles/solr
- ../../bundles/opentelemetry
- ../../base/core/namespaces/openshift-gitops
- ../../base/core/namespaces/dex
- ../../base/rbac.authorization.k8s.io/clusterroles/allow-edit-rbac
Expand Down
25 changes: 25 additions & 0 deletions opentelemetry/base/opentelemetry-collector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: opentelemetry-collector
namespace: opentelemetry
spec:
mode: deployment
config: |
exporters:
otlp:
endpoint: tempo-ingester:<enter-value-here>
tls:
ca_file: ca.pem
cert_file: cert.pem
key_file: key.pem
insecure: false
insecure_skip_verify: false
reload_interval: 1h
server_name_override: <enter-value-here>
headers:
X-Scope-OrgID: "dev"
service:
pipelines:
traces:
exporters: [otlp]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: opentelemetry-admin-credentials
namespace: opentelemetry
spec:
dataFrom:
- extract:
key: nerc/nerc-ocp-obs/ai-telemetry/opentelemetry

0 comments on commit a7cd1c6

Please sign in to comment.