Skip to content

Conversation

grobie
Copy link
Member

@grobie grobie commented Feb 10, 2015

As it is expected that the process collector can fail under certain
conditions (proc information for a process only readable by root or
other user for example) and as there is currently no option to configure
the error behavior of the client, this change reverts the error
reporting introduced in 159e96f. This effectively means that errors are
simply ignored and there won't be any samples for the process_* metrics
in case of an error.

Once a user can control how to behave in case of errors returned by
collectors, this change should probably be reverted again.

@beorn7 @juliusv @brian-brazil

As it is expected that the process collector can fail under certain
conditions (proc information for a process only readable by root or
other user for example) and as there is currently no option to configure
the error behavior of the client, this change reverts the error
reporting introduced in 159e96f. This effectively means that errors are
simply ignored and there won't be any samples for the process_* metrics
in case of an error.

Once a user can control how to behave in case of errors returned by
collectors, this change should probably be reverted.
@brian-brazil
Copy link
Contributor

👍

@juliusv
Copy link
Member

juliusv commented Feb 10, 2015

It feels a bit weird to do... nothing (no logs, no error counter) when an error occurs, but since errors are going to be the norm in certain environments (chroot), I guess that's the way to go.

👍

@beorn7
Copy link
Member

beorn7 commented Feb 10, 2015

And let's revisit once we have more granular error handling.

@beorn7
Copy link
Member

beorn7 commented Feb 10, 2015

👍 But perhaps add a TODO with this commit as a reference so that you can put it back once error handling is more configurable?

grobie added a commit that referenced this pull request Feb 11, 2015
…s-gracefully

Handle process collector errors gracefully
@grobie grobie merged commit acbd2d3 into master Feb 11, 2015
@grobie grobie deleted the handle-process-collector-errors-gracefully branch February 11, 2015 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants