Skip to content

level=error msg="Error scraping PHP-FPM: invalid character 'F' looking for beginning of value" #314

Open
@pschonmann

Description

@pschonmann

Hi, i have systemctl unit thats one day reboot to "refresh" scrape uris when changed on server

[Unit]
Description=PHP FPM exporter
[Service]
ExecStart=/bin/bash /usr/sbin/php-fpm-exporter_systemd.sh
Restart=always
RuntimeMaxSec=1d
[Install]
WantedBy=multi-user.target

the command in shell script is

/usr/sbin/php-fpm_exporter server --phpfpm.fix-process-count --web.listen-address ":9097" $(for PHPSOCKET in $(find /run/php/* -not -iname '*php*-fpm.sock' -not -iname '*php*-fpm.pid');do echo -n "--phpfpm.scrape-uri \"unix://$PHPSOCKET;/statusfpm\" ";done)

count is not small but not too large exceed args limit

find /run/php/* -not -iname '*php*-fpm.sock' -not -iname '*php*-fpm.pid' | wc -l
119

In the syslogs im getting too much info about error scraping in title, but seems scraping works (+2 are help)

curl -s localhost:9097/metrics | grep 'phpfpm_up' | wc -l
121

Its strange behaviour :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions