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

Empty slow_requests #5

Open
11mariom opened this issue Jan 7, 2016 · 3 comments
Open

Empty slow_requests #5

11mariom opened this issue Jan 7, 2016 · 3 comments

Comments

@11mariom
Copy link

11mariom commented Jan 7, 2016

Hi,

metrics gives empty slow_requests field:

[root@test ~]# /opt/sensu/embedded/bin/metrics-php-fpm.rb -s test -u http://127.0.0.1:61708/status
test.start_since 47439 1452163187
test.accepted_conn 16939 1452163187
test.listen_queue 0 1452163187
test.max_listen_queue 0 1452163187
test.listen_queue_len 0 1452163187
test.idle_processes 6 1452163187
test.active_processes 2 1452163187
test.total_processes 8 1452163187
test.max_active_processes 8 1452163187
test.max_children_reached 1 1452163187
test.slow_requests

[root@test ~]#

which causes influxdb error:

[2016/01/07 11:28:19 CET] [EROR] (github.com/influxdb/influxdb/api/graphite.(*Server).handleClient:261) GraphiteServer:%!(EXTRA *errors.errorString=Received 'test.php_fpm.slow_requests' which doesn't have three fields)
[2016/01/07 11:28:19 CET] [EROR] (github.com/influxdb/influxdb/api/graphite.(*Server).handleClient:261) GraphiteServer:%!(EXTRA *errors.errorString=Received '' which doesn't have three fields)

Maybe check if stats['status'][name] is not empty and then call output?

@eheydrick
Copy link
Contributor

Does the php-fpm-status output not contain slow_requests? I think checking for empty is reasonable.

@11mariom
Copy link
Author

11mariom commented Jan 8, 2016

Yeah, it does not contain this string:

[root@test ~]# curl http://127.0.0.1:61708/status
pool:                 www
process manager:      dynamic
start time:           08/Jan/2016:09:52:31 +0100
start since:          4114
accepted conn:        1592
listen queue:         0
max listen queue:     0
listen queue len:     0
idle processes:       20
active processes:     1
total processes:      21
max active processes: 16
max children reached: 0
[root@test ~]#

@majormoses
Copy link
Member

majormoses commented Oct 7, 2017

Sounds like we need an option to ignore specific keys. To follow established patterns this should be a comma separated list of regexes.

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

No branches or pull requests

3 participants