Skip to content

Commit

Permalink
feat: Add openobserve collector
Browse files Browse the repository at this point in the history
  • Loading branch information
Endre Kadas committed Dec 19, 2024
1 parent e44da84 commit 8dbe76a
Show file tree
Hide file tree
Showing 2 changed files with 577 additions and 6 deletions.
13 changes: 7 additions & 6 deletions add-ons/services/deploy-observe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,23 @@ echo >&2

kubectl apply -f kube-state-metrics.yaml

export MANAGED_DOMAIN="$SERVICE.$RUNTIME_DOMAIN"
BASE64_ROOT_OBSERVE_PASSWORD=$(echo -n "$OBSERVE_ROOT_USER_PASSWORD" | openssl base64 -A)

export BASE64_ROOT_OBSERVE_PASSWORD

# shellcheck disable=SC2016
opentelemetry_operator_variables='$NAMESPACE'

envsubst "$opentelemetry_operator_variables" <opentelemetry-operator.yaml | kubectl apply -f -

export MANAGED_DOMAIN="$SERVICE.$RUNTIME_DOMAIN"
BASE64_ROOT_OBSERVE_PASSWORD=$(echo -n "$OBSERVE_ROOT_USER_PASSWORD" | openssl base64 -A)
BASE64_OBSERVE_TOKEN=$(echo -n "$OBSERVE_ROOT_USER_EMAIL:$OBSERVE_ROOT_USER_PASSWORD" | openssl base64 -A)
export BASE64_ROOT_OBSERVE_PASSWORD BASE64_OBSERVE_TOKEN

# shellcheck disable=SC2016
openobserve_variables='$SERVICE
$NAMESPACE
$MANAGED_DOMAIN
$OBSERVE_ROOT_USER_EMAIL
$BASE64_ROOT_OBSERVE_PASSWORD'
$BASE64_ROOT_OBSERVE_PASSWORD
$BASE64_OBSERVE_TOKEN'

envsubst "$openobserve_variables" <observe.yaml | kubectl apply -f -

Expand Down
Loading

0 comments on commit 8dbe76a

Please sign in to comment.