Hi
I would like to calculate MTTR for some jenkins builds. I have these fields in multiple documents:
Using Elasticsearch 8.3.0
input :
name, type [type1|type2], status [failure|success], buildDateTime
Output (something like this):
only for type=type2, some-name, duration from failure to success
What I have done to far:
- Create a transform
- group by terms(name)
- group by terms(type)
- group by terms(status)
- aggregations mix(buildDateTime)
- aggregations max(buildDateTime)
- Start the transform
- Edit the destination index in the Data Views
- Add field
- Set format to "Duration"
- Set value
long d = ChronoUnit.MILLIS.between(doc['buildDateTime.min'].value, doc['buildDateTime.max'].value);
emit(d)
- Add a lens type visualization in my dashboard and add the fields
When I look at the graph it does not look right. What am I missing?