Files

123 lines
3.9 KiB
JSON

{
"version": 3,
"name": "Back KrakenD",
"port": 54446,
"cache_ttl": "3600s",
"timeout": "2500ms",
"host": [ "http://127.0.0.1:54446/" ],
"debug_endpoint": true,
"endpoints": [
{
"endpoint": "/back_fake/{something}",
"method": "GET",
"concurrent_calls": 3,
"backend": [
{
"url_pattern": "/__debug/{something}",
"mapping": {
"message": "backend1"
}
},
{
"url_pattern": "/__debug/{something}/{something}",
"mapping": {
"message": "backend2"
}
}
]
},
{
"endpoint": "/back_combination/{id}",
"backend": [
{
"host": [
"https://jsonplaceholder.typicode.com"
],
"url_pattern": "/posts?userId={id}",
"is_collection": true,
"mapping": {
"collection": "posts"
}
},
{
"host": [
"https://jsonplaceholder.typicode.com"
],
"url_pattern": "/users/{id}",
"mapping": {
"email": "personal_email"
}
}
]
}
],
"extra_config": {
"telemetry/opentelemetry": {
"service_name": "krakend_back_service",
"layers": {
"global": {
"disable_metrics": false,
"disable_traces": false,
"disable_propagation": false
},
"proxy": {
"disable_metrics": false,
"disable_traces": false
},
"backend": {
"metrics": {
"disable_stage": false,
"round_trip": true,
"read_payload": true,
"detailed_connection": true,
"static_attributes": [
{
"key": "my_metric_attr",
"value": "my_metric_val"
}
]
},
"traces": {
"disable_stage": false,
"round_trip": true,
"read_payload": true,
"detailed_connection": true,
"static_attributes": [
{
"key": "my_trace_attr",
"value": "my_trace_val"
}
]
}
}
},
"exporters": {
"prometheus": [
{
"name": "local_prometheus",
"port": 59093,
"process_metrics": true,
"go_metrics": true
}
],
"otlp": [
{
"name": "local_tempo",
"host": "127.0.0.1",
"port": 53317,
"use_http": false,
"disable_metrics": true
},
{
"name": "local_jaeger",
"host": "127.0.0.1",
"port": 55317,
"use_http": false,
"disable_metrics": true
}
]
}
}
}
}