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

[php_fpm] Include custom tags in service check #3109

Merged
merged 2 commits into from Jan 31, 2017

Conversation

jippi
Copy link
Contributor

@jippi jippi commented Jan 6, 2017

What does this PR do?

Include custom tags in service check

Motivation

Inside a Docker scheduler, using the ping_url is bad, since each restart of the process will assign a new unique port to the process, thus marking the old service as gone, even though its in fact running somewhere else successfully.

Including own tags to the service, a cluster alert can be created to mitigate this issue :)

@olivielpeau
Copy link
Member

Hi @jippi, thanks for contributing!

The change looks good to me, could you also update the integration test here? https://github.com/DataDog/dd-agent/blob/master/tests/checks/integration/test_php_fpm.py

You should only need to add the configured tags to the service check assertions (assertServiceCheck)

@olivielpeau olivielpeau added this to the 5.12.0 milestone Jan 31, 2017
@olivielpeau olivielpeau merged commit cc0ae81 into DataDog:master Jan 31, 2017
@jippi jippi deleted the patch-1 branch February 1, 2017 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants