# Packetbeat for monitoring a microservice

**URL:** <https://discuss.elastic.co/t/packetbeat-for-monitoring-a-microservice/268343>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [March 25, 2021, 12:59pm UTC](https://discuss.elastic.co/t/packetbeat-for-monitoring-a-microservice/268343 "2021-03-25T12:59:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo\_Albertengo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pablo_albertengo/32/47685_2.png) [@Pablo\_Albertengo](https://discuss.elastic.co/u/Pablo_Albertengo)\
**Post date:** [March 25, 2021, 12:59pm UTC](https://discuss.elastic.co/t/packetbeat-for-monitoring-a-microservice/268343/1 "2021-03-25T12:59:12Z")

</div>

Hi!

I'm doing my first tests with packetbeat.  
I wanted to monitor a microservice (basically http codes of responses, latency, size of responses) but it has been impossible so far.

The service listens on a specific port. I change the configuration to include this port:

- type: http
# Configure the ports where to listen for HTTP traffic. You can disable

# the HTTP protocol by commenting out the list of ports.
ports: [80, 8080, 8000, 5000, 8002, MYPORT]

but I do not see any information in ES related to the activity of my service.

My questions in this regard are:  
. Is packetbeat the right option for this requirement? Or should I try with another component of the stack?  
. What configuration change should I make in order to audit the traffic of my service?  
. What configuration change should I make in order to audit ONLY the traffic of my service?

Thanks in advance

Pablo

---

<div class="post-metadata">

**Author:** ![Pablo\_Albertengo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pablo_albertengo/32/47685_2.png) [@Pablo\_Albertengo](https://discuss.elastic.co/u/Pablo_Albertengo)\
**Post date:** [March 30, 2021, 4:19pm UTC](https://discuss.elastic.co/t/packetbeat-for-monitoring-a-microservice/268343/2 "2021-03-30T16:19:23Z")

</div>

I found in APM capabilities:  
[[APM Overview [7.12] | Elastic](https://www.elastic.co/guide/en/apm/get-started/current/index.html)]  
what i was needing.

Thanks a lot!

---

<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:** [April 27, 2021, 6:19pm UTC](https://discuss.elastic.co/t/packetbeat-for-monitoring-a-microservice/268343/3 "2021-04-27T18:19:32Z")

</div>

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