Add/Fix OpenTelemetry

This commit is contained in:
Quentin 2022-04-06 14:10:18 +02:00
parent 7e1ac51b58
commit 62f0715abe
3 changed files with 25 additions and 5 deletions

View file

@ -0,0 +1,21 @@
Configure your `[admin-api]` endpoint:
```
[admin]
api_bind_addr = "0.0.0.0:3903"
trace_sink = "http://localhost:4317"
```
Start the test stack:
```
cd telemetry
docker-compose up
```
Access the web interfaces:
- [Kibana](http://localhost:5601) - Click on the hamburger menu, in the Observability section, click APM
- [Grafana](http://localhost:3000) - Set a password, then on the left menu, click Dashboard -> Browse. On the new page click Import -> Choose the test dashboard we ship `grafana-garage-dashboard-elasticsearch.json`

View file

@ -4,17 +4,16 @@ datasources:
- name: DS_ELASTICSEARCH - name: DS_ELASTICSEARCH
type: elasticsearch type: elasticsearch
access: proxy access: proxy
url: http://elastic:9700 url: http://localhost:9200
password: '' password: ''
user: '' user: ''
database: metricbeat-* database: apm-*
basicAuth: false basicAuth: false
isDefault: true isDefault: true
jsonData: jsonData:
esVersion: 70 esVersion: 7.10.0
logLevelField: '' logLevelField: ''
logMessageField: '' logMessageField: ''
maxConcurrentShardRequests: 5 maxConcurrentShardRequests: 5
timeField: "@timestamp" timeField: "@timestamp"
timeInterval: 10s
readOnly: false readOnly: false

View file

@ -13,7 +13,7 @@ receivers:
- job_name: "garage" - job_name: "garage"
scrape_interval: 5s scrape_interval: 5s
static_configs: static_configs:
- targets: ["localhost:3909"] - targets: ["localhost:3903"]
exporters: exporters:
logging: logging: