Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyrille-leclerc/elastic-otel-log-bug
https://github.com/cyrille-leclerc/elastic-otel-log-bug
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cyrille-leclerc/elastic-otel-log-bug
- Owner: cyrille-leclerc
- Created: 2022-02-17T10:35:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-17T10:49:39.000Z (almost 3 years ago)
- Last Synced: 2024-11-09T07:53:48.058Z (3 months ago)
- Language: Java
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to run the test case
* Prerequisite: setup Elastic 8.0 with Elasticsearch and APM Server. We also recommend an Otel Collector configured to send traces, metrics, and logs to Elastic
* elasticsearch.url=
* elasticsearch.username=
* elasticsearch.password=
* otel.exporter.otlp.endpoint=
* create a file `src/main/resources/.env` copying `src/main/resources/.env.template`
* run
```shell
./mvnw package exec:java
```# Example OpenTelemetry Collector configuration
````yaml
receivers:
otlp:
protocols:
grpc:
endpoint: '127.0.0.1:4317'#...
processors:
batch:
exporters:
otlp/elasticcloud:
endpoint: "***.cloud.es.io:443"
headers:
Authorization: "Bearer ***"
logging:
loglevel: warn
logging/debug:
loglevel: debug
service:
pipelines:
metrics:
receivers: [otlp]
processors: [batch]
exporters: [otlp/elasticcloud, logging]
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp/elasticcloud, logging]
logs:
receivers: [otlp]
processors: [batch]
exporters: [otlp/elasticcloud, logging/debug]
````