# API resposne time visualization in Kibana using Spring Boot Actuator

**URL:** https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881
**Category:** APM
**Tags:** java
**Created:** [June 3, 2019, 5:06am UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881 "2019-06-03T05:06:17Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Susmit07](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susmit07/32/47309_2.png) [@Susmit07](https://discuss.elastic.co/u/Susmit07)
#### Post date: [June 3, 2019, 5:06am UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/1 "2019-06-03T05:06:17Z")

</div>

Dear Community Members,

I am stuck with the api response time visualization in Kibana dashboard. Shall be really grateful if any one can help me out, as I have to deliver the requirement within time, so it can be added to our product in the next release.

I am using spring boot actuator to collect the metrics and migrate the same to the elastic index, and viewing it in Kibana dashboard. I am able to migrate almost all performance related metrics and view it in Kibana, **but I don't how to capture the response time for every apis for each request.**

Thanks again,  
Susmit

---

<div class="post-metadata">

### Author: ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)
#### Post date: [June 4, 2019, 5:19pm UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/2 "2019-06-04T17:19:16Z")

</div>

Hi, do you have the response time information in your metrics? What does that data look like in terms of what is indexed to Elasticsearch?

---

<div class="post-metadata">

### Author: ![Susmit07](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susmit07/32/47309_2.png) [@Susmit07](https://discuss.elastic.co/u/Susmit07)
#### Post date: [June 5, 2019, 5:47am UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/3 "2019-06-05T05:47:03Z")

</div>

Hi Jen, I am not having response time information in the json metrics, so is there any way to send the response time by help of spring actuator?

Because kibana will only display whatever data is fed to it

---

<div class="post-metadata">

### Author: ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)
#### Post date: [June 5, 2019, 4:52pm UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/4 "2019-06-05T16:52:52Z")

</div>

In that case I think your spring actuator question is better suited for another community or forum. As it's not Kibana-specific, we don't have the knowledge to answer you 🙂

---

<div class="post-metadata">

### Author: ![Susmit07](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susmit07/32/47309_2.png) [@Susmit07](https://discuss.elastic.co/u/Susmit07)
#### Post date: [June 10, 2019, 11:52am UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/5 "2019-06-10T11:52:20Z")

</div>

Hi Jen, I am using Elastic APM features to meet my requirement. Thank you 🙂

---

<div class="post-metadata">

### Author: ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)
#### Post date: [June 10, 2019, 7:38pm UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/7 "2019-06-10T19:38:08Z")

</div>

In that case I have moved your topic to our APM forum. 🙂

---

<div class="post-metadata">

### Author: ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)
#### Post date: [June 11, 2019, 6:15am UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/8 "2019-06-11T06:15:00Z")

</div>

Please elaborate more on how you are using Elastic APM-  
From the initial post it seems you are indexing metrics data yourself, is that correct, or are you using the Java agent and APM server?

---

<div class="post-metadata">

### Author: ![Susmit07](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susmit07/32/47309_2.png) [@Susmit07](https://discuss.elastic.co/u/Susmit07)
#### Post date: [June 11, 2019, 4:20pm UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/9 "2019-06-11T16:20:11Z")

</div>

Firstly I used elastic micrometer and spring boot actuator dependencies to push my data to elastic index and viewed it on the kibana dashboard based on pi charts, horizaontal & vertical bars, but I was not able to find the api response time.

So I found out that APM will serve my purpose, and I started using java agent in my spring boot application it started publishing to the APM Server.

The same I did for monitoring applications in Liberty websphere server as well (here i modified the jvm.option file as was mentioned in the documentation), and it work like charm. Thanks to the all the developers in elastic for making our life so easy. Grateful!!

Hope I am able to clarify on your question

---

<div class="post-metadata">

### Author: ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)
#### Post date: [June 12, 2019, 2:03pm UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/10 "2019-06-12T14:03:04Z")

</div>

You can base your response time graphs on the transaction documents. They are stored in the `apm-*` index. Filter your visualization by `processor.event:"transaction"` and use the `transaction.duration.us` field. You can filter or group by (via a terms aggregation) the field `transaction.name` to get a graph for a specific transaction or a graph per transaction, respectively.

I hope that helps 🙂

---

<div class="post-metadata">

### Author: ![Susmit07](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susmit07/32/47309_2.png) [@Susmit07](https://discuss.elastic.co/u/Susmit07)
#### Post date: [June 12, 2019, 3:47pm UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/11 "2019-06-12T15:47:47Z")

</div>

Hi Felix, Thanks I was able to reproduce it 🙂

![image](https://us1.discourse-cdn.com/elastic/original/3X/7/4/74b003e8e3ec8c309dbb7a98aa1262d3e3560d79.png)

---

<div class="post-metadata">

### Author: ![Susmit07](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susmit07/32/47309_2.png) [@Susmit07](https://discuss.elastic.co/u/Susmit07)
#### Post date: [June 14, 2019, 5:37am UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/12 "2019-06-14T05:37:21Z")

</div>

Hi @felixbarny & @Eyal_Koren There is still a problem I am not able to view the previous day data in APM dashboard, whereas the refresh interval is set to 24h from the current time. Please help me out as I may need 1 month data to monitor app performance in production environment. All the http trace exceptions api calls has been lost of yesterday

---

<div class="post-metadata">

### Author: ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)
#### Post date: [June 14, 2019, 8:31am UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/13 "2019-06-14T08:31:31Z")

</div>

Make sure you are using the index pattern `apm-*` and not `apm-7.1.0-transaction-2019.06.14`, for example and that the previous day actually contains data.

---

<div class="post-metadata">

### Author: ![Susmit07](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susmit07/32/47309_2.png) [@Susmit07](https://discuss.elastic.co/u/Susmit07)
#### Post date: [June 17, 2019, 6:37pm UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/14 "2019-06-17T18:37:45Z")

</div>

@felixbarny Thanks but I am using the apm-\* index, anyways will check and let you know

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 15, 2019, 6:38pm UTC](https://discuss.elastic.co/t/api-resposne-time-visualization-in-kibana-using-spring-boot-actuator/183881/15 "2019-07-15T18:38:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
