Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json: cannot unmarshal number #26

Closed
XooR opened this issue Jun 7, 2018 · 1 comment
Closed

json: cannot unmarshal number #26

XooR opened this issue Jun 7, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@XooR
Copy link
Contributor

XooR commented Jun 7, 2018

I get constantly this message from exporter:

time="2018-06-07T13:10:12+02:00" level=error msg="json: cannot unmarshal number 18446744073709551507 into Go struct field PoolProcess.request duration of type int64"
time="2018-06-07T13:10:12+02:00" level=error msg="Error scraping PHP-FPM: json: cannot unmarshal number 18446744073709551507 into Go struct field PoolProcess.request duration of type int64"

I have tried upgrading php and php-fpm. It persist from 5.5 to 7.0 versions of PHP. I also tried setting request_terminate_timeout = 300 but that didn't help.

It's same problem as in issue: issue-10.

Example json which can't be processed:

        {
            "content length": 360,
            "last request cpu": 0.0,
            "last request memory": 0,
            "pid": 11444,
            "request duration": 18446744073709550700,
            "request method": "POST",
            "request uri": "/index.php",
            "requests": 452,
            "script": "/www/bar.foo.com/www/index.php",
            "start since": 220,
            "start time": 1528375280,
            "state": "Running",
            "user": "-"
        },
XooR pushed a commit to XooR/php-fpm_exporter that referenced this issue Jun 26, 2018
@estahn estahn self-assigned this Jun 26, 2018
@estahn estahn added the bug Something isn't working label Jun 26, 2018
@estahn estahn closed this as completed in 03d8708 Jun 26, 2018
@estahn
Copy link
Contributor

estahn commented Jun 26, 2018

@XooR Thanks for your help in fixing this. It's released now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants