I calculate the duration of my service-processes using the
SUM-Aggregation. Each step of the executed process will be saved in
Elasticsearch under a calling Id.
This is what I monitor:
Duration of Request-Processing for ID #123 (calling service #1)
Duration of Server-Response for ID #123 (calling service #1)
**Complete Duration for ID #123**
Duration of Request-Processing for ID #124 (calling service #1)
Duration of Server-Response for ID #124 (calling service #1)
**Complete duration for ID #124**
Filter:
{
"from" : 0, "size" :0,
"query" : {
"filtered" : {
"query" : { "match_all" : {}},
"filter" : {
"term" : {
"callingId" : "123",
}
}
}
},
"aggs" : {
"total_duration" : { "sum" : { "field" : "duration" } },
"max_duration":{"max": {"field":"duration"}},
"min_duration":{"min":{"field":"duration"}}
}
}
}
This returns the complete duration of the process and also tells me which
part of the process was the fastest ans which part was the slowest.
Next I want to calculate the average *duration of all finished processes*
by serviceId. In this case I only care about the total duration for each
service, so I can comepare them.
Is it possible to create a average, maximum and minimum from all
total_durations?
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/c20c4d79-cab0-4086-bcdd-574b4d102567%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.