Skip to content

Exporter unavailable during socket timeouts #17

Description

@frenkye

Hi,

we are using this exporter for a while and I notice patterns, where exporter start logging errors (lines before end), then exporter hang as well. Is there any debug option how could I can track this more?

I would expect behavior that exporter should be responsive all the time, but report php_fpm_up{socket_path="..."} 0. Now we loosing all data when single socket is down.

Using exporter:
phpfpm_exporter, version 0.5.0 (branch: HEAD, revision: 9cb855b)

Started under supervisor:

command=/opt/prometheus/bin/php-fpm_exporter --web.listen-address=":XXXX"
        --phpfpm.status-path=/fpm-status
        --phpfpm.socket-directories=/var/lib/php/7.X/fpm/
# we use directories because on some machines we have 200+ sockets for different web sites

Exporter error log (Prague so UTC+2):

2020/10/20 10:14:24 Failed to scrape socket: dial unix /var/lib/php/7.2/fpm/sock.sock: connect: resource temporarily unavailable
...
2020/10/20 10:16:05 Failed to scrape socket: dial unix /var/lib/php/7.2/fpm/sock.sock: connect: resource temporarily unavailable

Screens from grafana dashboard (Prague so UTC+2):
Screenshot 2020-10-20 at 12 50 22
Screenshot 2020-10-20 at 12 52 18

Prometheus graf on up metric for job (UTC):
Screenshot 2020-10-20 at 13 03 54

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions