# Metricbeat / php-fpm by fast-cgi protocol and multi pools

**URL:** https://discuss.elastic.co/t/metricbeat-php-fpm-by-fast-cgi-protocol-and-multi-pools/237307
**Category:** Beats
**Tags:** metricbeat
**Created:** [June 16, 2020, 1:17pm UTC](https://discuss.elastic.co/t/metricbeat-php-fpm-by-fast-cgi-protocol-and-multi-pools/237307 "2020-06-16T13:17:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Claude\_Brassel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/claude_brassel/32/46457_2.png) [@Claude\_Brassel](https://discuss.elastic.co/u/Claude_Brassel)
#### Post date: [June 16, 2020, 1:17pm UTC](https://discuss.elastic.co/t/metricbeat-php-fpm-by-fast-cgi-protocol-and-multi-pools/237307/1 "2020-06-16T13:17:06Z")

</div>

Hi  
I have multiple php servers that host only the php-fpm process, is they're any way to get metric beat extracting metrics from the php-fpm status page accessing it only by fast-cgi protocol ?  
And by the way how does it handle multi-pool configurations ?

Regard's  
Claude

---

<div class="post-metadata">

### Author: ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)
#### Post date: [June 16, 2020, 5:39pm UTC](https://discuss.elastic.co/t/metricbeat-php-fpm-by-fast-cgi-protocol-and-multi-pools/237307/2 "2020-06-16T17:39:37Z")

</div>

Hey @Claude_Brassel, welcome to discuss 🙂

The `php_fpm` module of Metricbeat doesn't support fastcgi at the moment, but I think it would be nice to support it, could you please [open an enhancement request](https://github.com/elastic/beats/issues/new?template=feature-request.md) for that?

> [@Claude\_Brassel](#):
>
> And by the way how does it handle multi-pool configurations ?

Not sure if this answers this question, but Metricbeat modules can point to multiple hosts, e.g. something like this:

```auto
- module: php_fpm
  metricsets:
  - pool
  status_path: "/status"
  hosts:
    - "localhost:8080"
    - "localhost:8081"
    - "localhost:8082"
  ...

```

Each event collected by the `pool` metricset contains a `php_fpm.pool.name` field with the name of the pool, so you can differentiate the metrics when querying them.

---

<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 14, 2020, 7:39pm UTC](https://discuss.elastic.co/t/metricbeat-php-fpm-by-fast-cgi-protocol-and-multi-pools/237307/3 "2020-07-14T19:39:48Z")

</div>

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