Commit 8a7395f 1 parent 3738774 commit 8a7395f Copy full SHA for 8a7395f
File tree 3 files changed +72
-48
lines changed
3 files changed +72
-48
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Grafana Cloud Example
2
+ extensions :
3
+ memory_ballast :
4
+ size_mib : 64
5
+ basicauth/grafanacloud :
6
+ client_auth :
7
+ username : ${env:GC_INSTANCE_ID}
8
+ password : ${env:GC_API_KEY}
9
+ receivers :
10
+ otlp :
11
+ protocols :
12
+ grpc :
13
+ endpoint : " 127.0.0.1:4317"
14
+ processors :
15
+ memory_limiter :
16
+ check_interval : 10s
17
+ # hard limit
18
+ limit_mib : 500
19
+ # sort limit 400
20
+ spike_limit_mib : 100
21
+ batch/metrics :
22
+ send_batch_size : 8192
23
+ timeout : 3s
24
+ send_batch_max_size : 16384
25
+ batch/logs :
26
+ send_batch_size : 8192
27
+ timeout : 30s
28
+ send_batch_max_size : 16384
29
+ batch/traces :
30
+ exporters :
31
+ otlphttp/grafanacloud :
32
+ auth :
33
+ authenticator : basicauth/grafanacloud
34
+ endpoint : ${env:GC_OTLP_ENDPOINT}
35
+ debug/detailed :
36
+ verbosity : detailed
37
+ debug/basic :
38
+ verbosity : basic
39
+ service :
40
+ extensions : [memory_ballast, basicauth/grafanacloud]
41
+ pipelines :
42
+ traces :
43
+ receivers :
44
+ - otlp
45
+ processors :
46
+ - memory_limiter
47
+ - batch/traces
48
+ exporters :
49
+ - debug/basic
50
+ - otlphttp/grafanacloud
51
+ metrics :
52
+ receivers :
53
+ - otlp
54
+ processors :
55
+ - memory_limiter
56
+ - batch/metrics
57
+ exporters :
58
+ - debug/basic
59
+ - otlphttp/grafanacloud
60
+ logs :
61
+ receivers :
62
+ - otlp
63
+ processors :
64
+ - memory_limiter
65
+ - batch/logs
66
+ exporters :
67
+ - debug/basic
68
+ - otlphttp/grafanacloud
Original file line number Diff line number Diff line change @@ -83,13 +83,14 @@ kvsd:
83
83
api * flags :
84
84
do -i { ps | where name =~ " synd_api$" | first | kill $in.pid }
85
85
cd crates/ synd_api; \
86
- RUST_LOG =" info,synd_api=debug" \
86
+ SYND_LOG =" info,synd_api=debug" \
87
87
OTEL_EXPORTER_OTLP_ENDPOINT={{ otlp_endpoint}} \
88
- OTEL_RESOURCE_ATTRIBUTES=" deployment.environment=local" \
88
+ OTEL_RESOURCE_ATTRIBUTES=" service.namespace=syndlocal, deployment.environment=local" \
89
89
cargo run \
90
90
- -features " introspection" -- \
91
91
- -kvsd-host 127.0.0.1 --kvsd-port 7379 --kvsd-username {{ kvsd_user}} --kvsd-password secret \
92
- - -tls-cert ../ ../ .dev/ self_signed_certs/ certificate.pem --tls-key ../ ../ .dev/ self_signed_certs/ private_key.pem {{ flags}}
92
+ - -tls-cert ../ ../ .dev/ self_signed_certs/ certificate.pem --tls-key ../ ../ .dev/ self_signed_certs/ private_key.pem \
93
+ - -show-code-location=true --show-target=false --trace-sampler-ratio " 1.0" {{ flags}}
93
94
94
95
# Run term
95
96
term * flags :
You can’t perform that action at this time.
0 commit comments