2021-08-19 17:07:52 +00:00
|
|
|
name = "tracing_schema"
|
|
|
|
|
2021-10-26 19:34:35 +00:00
|
|
|
[[values]]
|
|
|
|
name = "host"
|
|
|
|
template = "server-{{id}}"
|
|
|
|
cardinality = 3000
|
|
|
|
has_one = ["service"]
|
2021-08-19 17:07:52 +00:00
|
|
|
|
2021-10-26 19:34:35 +00:00
|
|
|
[[values]]
|
|
|
|
name = "service"
|
|
|
|
template = "service-{{id}}"
|
|
|
|
cardinality = 10
|
2021-08-19 17:07:52 +00:00
|
|
|
|
2021-10-26 19:34:35 +00:00
|
|
|
[[tag_sets]]
|
|
|
|
name = "host_services"
|
|
|
|
for_each = ["host", "host.service"]
|
2021-08-19 17:07:52 +00:00
|
|
|
|
2021-10-26 19:34:35 +00:00
|
|
|
[[agents]]
|
2021-12-05 16:21:04 +00:00
|
|
|
name = "tracing_agent"
|
2021-08-19 17:07:52 +00:00
|
|
|
|
2021-10-26 19:34:35 +00:00
|
|
|
[[agents.measurements]]
|
|
|
|
name = "traces"
|
|
|
|
tag_set = "host_services"
|
|
|
|
tag_pairs = [
|
|
|
|
{key = "trace_id", template = "{{guid}}", regenerate_after_lines = 10},
|
|
|
|
{key = "span_id", template = "{{guid}}", regenerate_after_lines = 1},
|
|
|
|
]
|
2021-08-19 17:07:52 +00:00
|
|
|
|
|
|
|
[[agents.measurements.fields]]
|
|
|
|
name = "timing"
|
|
|
|
f64_range = [0.0, 500.0]
|
2021-12-07 21:54:40 +00:00
|
|
|
|
2021-12-09 18:39:18 +00:00
|
|
|
[[database_writers]]
|
|
|
|
database_ratio = 1.0
|
2021-12-07 21:54:40 +00:00
|
|
|
agents = [{name = "tracing_agent", sampling_interval = "1s"}]
|