forked from Deuxfleurs/garage
Add/Fix OpenTelemetry
This commit is contained in:
parent
7e1ac51b58
commit
62f0715abe
3 changed files with 25 additions and 5 deletions
21
script/telemetry/README.md
Normal file
21
script/telemetry/README.md
Normal 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`
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue