Browse Source

Add/Fix OpenTelemetry

pull/285/head
Quentin 2 months ago
parent
commit
62f0715abe
  1. 21
      script/telemetry/README.md
  2. 7
      script/telemetry/elastic/grafana/provisioning/datasources/elastic.yaml
  3. 2
      script/telemetry/elastic/otel-config.yaml

21
script/telemetry/README.md

@ -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`

7
script/telemetry/elastic/grafana/provisioning/datasources/elastic.yaml

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

2
script/telemetry/elastic/otel-config.yaml

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

Loading…
Cancel
Save