Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Motel sample configurations #6630

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rogercoll
Copy link
Contributor

@rogercoll rogercoll commented Jan 29, 2025

K8s deployment steps

  1. Create the namespace and secret
$ kubectl create namespace opentelemetry-operator-system
$ kubectl create secret generic elastic-secret-otel --namespace opentelemetry-operator-system --from-literal=elastic_endpoint='<YOUR_INGEST_URL>' --from-literal=elastic_api_key='ApiKey <YOUR_BASE64_APIKEY>'
  1. Install the operator
$ helm install opentelemetry-kube-stack open-telemetry/opentelemetry-kube-stack --namespace opentelemetry-operator-system --values deploy/helm/edot-collector/kube-stack/values.yaml --version '0.3.9'

On-host deployment steps

Hostmetrics and logs

$ sudo STORAGE_DIR=<YOUR_PERSISTANCE_STORAGE_DIR> ELASTIC_ENDPOINT='<YOUR_INGEST_URL>' ELASTIC_API_KEY='ApiKey <YOUR_BASE64_APIKEY>' ./build/elastic-agent otel --config internal/pkg/otel/samples/linux/platformlogs_hostmetrics.yml

Copy link
Contributor

mergify bot commented Jan 29, 2025

This pull request does not have a backport label. Could you fix it @rogercoll? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label to automatically backport to the 8./d branch. /d is the digit

Copy link
Contributor

mergify bot commented Jan 29, 2025

backport-v8.x has been added to help with the transition to the new branch 8.x.
If you don't need it please use backport-skip label and remove the backport-8.x label.

@mergify mergify bot added the backport-8.x Automated backport to the 8.x branch with mergify label Jan 29, 2025
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

otlp/ingest:
endpoint: ${env:ELASTIC_ENDPOINT}
headers:
Authorization: ${env:ELASTIC_API_KEY}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs APIKey prefix.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the env variable has that prefix 👍🏽, all good.

Copy link
Contributor

mergify bot commented Jan 31, 2025

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b motel_configurations upstream/motel_configurations
git merge upstream/main
git push upstream motel_configurations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.x Automated backport to the 8.x branch with mergify Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants