Webservice dashboard link to kibana slow rails requests broken
Impact:
This is impacting SREs ability to diagnose apdex alerts on rails webservices (api, web).
Problem:
On the web dashboard the link to rails slow requests:
Is broken. It links to this kibana query, which includes a filter:
{
"bool": {
"minimum_should_match": 1,
"should": [
{
"script": {
"script": {
"source": "doc['json.duration_s'].value > doc['json.target_duration_s'].value"
}
}
}
]
}
}
Error:
This filter is making the query fail with error.
[1:3425] unknown field [0]
{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "unknown query [0]",
"line": 1,
"col": 3425
}
],
"type": "x_content_parse_exception",
"reason": "[1:3425] [bool] failed to parse field [filter]",
"caused_by": {
"type": "parsing_exception",
"reason": "unknown query [0]",
"line": 1,
"col": 3425,
"caused_by": {
"type": "named_object_not_found_exception",
"reason": "[1:3425] unknown field [0]"
}
}
}
}