traefik/docs/content/observability/tracing/jaeger.md

268 lines
4.8 KiB
Markdown
Raw Normal View History

2019-06-27 22:16:04 +00:00
# Jaeger
To enable the Jaeger:
2019-07-16 07:54:04 +00:00
```toml tab="File (TOML)"
2019-06-27 22:16:04 +00:00
[tracing]
[tracing.jaeger]
```
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
jaeger: {}
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--tracing
--tracing.jaeger
```
!!! warning
2019-07-15 12:52:04 +00:00
Traefik is able to send data over the compact thrift protocol to the [Jaeger agent](https://www.jaegertracing.io/docs/deployment/#agent)
or a [Jaeger collector](https://www.jaegertracing.io/docs/deployment/#collectors).
2019-06-27 22:16:04 +00:00
#### `samplingServerURL`
_Required, Default="http://localhost:5778/sampling"_
Sampling Server URL is the address of jaeger-agent's HTTP sampling server.
2019-07-16 07:54:04 +00:00
```toml tab="File (TOML)"
2019-06-27 22:16:04 +00:00
[tracing]
[tracing.jaeger]
samplingServerURL = "http://localhost:5778/sampling"
```
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
jaeger:
samplingServerURL: http://localhost:5778/sampling
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--tracing
--tracing.jaeger.samplingServerURL="http://localhost:5778/sampling"
```
#### `samplingType`
_Required, Default="const"_
Sampling Type specifies the type of the sampler: `const`, `probabilistic`, `rateLimiting`.
2019-07-16 07:54:04 +00:00
```toml tab="File (TOML)"
2019-06-27 22:16:04 +00:00
[tracing]
[tracing.jaeger]
samplingType = "const"
```
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
jaeger:
samplingType: const
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--tracing
--tracing.jaeger.samplingType="const"
```
#### `samplingParam`
_Required, Default=1.0_
Sampling Param is a value passed to the sampler.
Valid values for Param field are:
- for `const` sampler, 0 or 1 for always false/true respectively
- for `probabilistic` sampler, a probability between 0 and 1
- for `rateLimiting` sampler, the number of spans per second
2019-07-16 07:54:04 +00:00
```toml tab="File (TOML)"
2019-06-27 22:16:04 +00:00
[tracing]
[tracing.jaeger]
samplingParam = 1.0
```
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
jaeger:
samplingParam: 1.0
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--tracing
--tracing.jaeger.samplingParam="1.0"
```
#### `localAgentHostPort`
_Required, Default="127.0.0.1:6831"_
Local Agent Host Port instructs reporter to send spans to jaeger-agent at this address.
2019-07-16 07:54:04 +00:00
```toml tab="File (TOML)"
2019-06-27 22:16:04 +00:00
[tracing]
[tracing.jaeger]
localAgentHostPort = "127.0.0.1:6831"
```
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
jaeger:
localAgentHostPort: 127.0.0.1:6831
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--tracing
--tracing.jaeger.localAgentHostPort="127.0.0.1:6831"
```
#### `gen128Bit`
_Optional, Default=false_
Generate 128-bit trace IDs, compatible with OpenCensus.
2019-07-16 07:54:04 +00:00
```toml tab="File (TOML)"
2019-06-27 22:16:04 +00:00
[tracing]
[tracing.jaeger]
gen128Bit = true
```
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
jaeger:
gen128Bit: true
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--tracing
--tracing.jaeger.gen128Bit
```
#### `propagation`
_Required, Default="jaeger"_
Set the propagation header type.
This can be either:
- `jaeger`, jaeger's default trace header.
- `b3`, compatible with OpenZipkin
2019-07-16 07:54:04 +00:00
```toml tab="File (TOML)"
2019-06-27 22:16:04 +00:00
[tracing]
[tracing.jaeger]
propagation = "jaeger"
```
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
jaeger:
propagation: jaeger
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--tracing
--tracing.jaeger.propagation="jaeger"
```
#### `traceContextHeaderName`
_Required, Default="uber-trace-id"_
Trace Context Header Name is the http header name used to propagate tracing context.
This must be in lower-case to avoid mismatches when decoding incoming headers.
2019-07-16 07:54:04 +00:00
```toml tab="File (TOML)"
2019-06-27 22:16:04 +00:00
[tracing]
[tracing.jaeger]
traceContextHeaderName = "uber-trace-id"
```
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
jaeger:
traceContextHeaderName: uber-trace-id
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--tracing
--tracing.jaeger.traceContextHeaderName="uber-trace-id"
```
2019-07-15 12:52:04 +00:00
### `collector`
#### `endpoint`
_Optional, Default=""_
Collector Endpoint instructs reporter to send spans to jaeger-collector at this URL.
2019-07-16 07:54:04 +00:00
```toml tab="File (TOML)"
2019-07-15 12:52:04 +00:00
[tracing]
[tracing.jaeger.collector]
endpoint = "http://127.0.0.1:14268/api/traces?format=jaeger.thrift"
```
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
jaeger:
collector:
endpoint: http://127.0.0.1:14268/api/traces?format=jaeger.thrift
```
2019-07-15 12:52:04 +00:00
```bash tab="CLI"
--tracing
--tracing.jaeger.collector.endpoint="http://127.0.0.1:14268/api/traces?format=jaeger.thrift"
```
#### `user`
_Optional, Default=""_
User instructs reporter to include a user for basic http authentication when sending spans to jaeger-collector.
2019-07-16 07:54:04 +00:00
```toml tab="File (TOML)"
2019-07-15 12:52:04 +00:00
[tracing]
[tracing.jaeger.collector]
user = "my-user"
```
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
jaeger:
collector:
user: my-user
```
2019-07-15 12:52:04 +00:00
```bash tab="CLI"
--tracing
--tracing.jaeger.collector.user="my-user"
```
#### `password`
_Optional, Default=""_
Password instructs reporter to include a password for basic http authentication when sending spans to jaeger-collector.
2019-07-16 07:54:04 +00:00
```toml tab="File (TOML)"
2019-07-15 12:52:04 +00:00
[tracing]
[tracing.jaeger.collector]
password = "my-password"
```
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
jaeger:
collector:
password: my-password
```
2019-07-15 12:52:04 +00:00
```bash tab="CLI"
--tracing
--tracing.jaeger.collector.password="my-password"
```