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

[core] add a switch to disable profiling, but still use developer mode #2898

Merged
merged 4 commits into from
Dec 3, 2016

Conversation

cberry777
Copy link
Contributor

What does this PR do?

Adds a 'allow_profiling' switch to agentConfig. It defaults to True (the current behavior).

Motivation

We use 'developer_mode' to monitor our dd-agent, but do not want the added burden of the profiling. It is wise to keep track of what the dd-agent itself is doing (i.e. Watch the watcher!), and 'developer_mode' provides that functionality. The profiling bit is useful only when debugging a new Check.

Testing Guidelines

A test is provided: tests/checks/mocks/test_no_profiling.py

Additional Notes

None

@masci
Copy link
Contributor

masci commented Dec 2, 2016

Thanks for the code @cberry777 and sorry I'm sooooo late responding!
Could you please add a commented line on the confi file containing the new allow_profiling settings and a brief doc about it?

Thanks!

@masci masci added this to the 5.11.0 milestone Dec 2, 2016
@cberry777
Copy link
Contributor Author

Done.
Thanks for including this.

@cberry777
Copy link
Contributor Author

BTW: It makes no sense whatsoever that the tests fail now because I added a COMMENT to datadog.conf.example
I think your tests are unstable?

@cberry777
Copy link
Contributor Author

also -- when I run "rake" locally -- all is well>


Ran 176 tests in 19.761s

OK (SKIP=1)
Cleaning up

@masci
Copy link
Contributor

masci commented Dec 3, 2016

Not your fault, some tests in the CI are extremely flaky, all green!

@masci masci merged commit da02e5f into DataDog:master Dec 3, 2016
@cberry777
Copy link
Contributor Author

cberry777 commented Dec 3, 2016 via email

degemer added a commit that referenced this pull request Dec 21, 2016
* master: (53 commits)
  [nginx] Update example config
  [service_discovery] Add a Zookeeper service discovery implementation.
  [aggregator] if sample rate is bad, fix it but still parse tags. (#3073)
  [yarn] whitelist authorized application_tags
  Alex poe/update jmx with refresh beans (#3068)
  [config] Fix `_is_affirmative` when passed argument is `None` (#3063)
  Send all configured tags with process checks. (#2976)
  fix flake8 errors
  [flare] ignore whitespace before proxy credentials
  [core] add a switch to disable profiling, but still use developer mode (#2898)
  [tests] allow tests to use the additional_checksd parameter (#3056)
  [service_discovery][jmx] trying to pick-up JMX changes with SD. (#3010)
  [install_script] Make `dd-agent` group of `datadog.conf` (#3036)
  [postgres] Allow disable postgresql.database_size (#3035)
  [core] Fixes IndexError for process lookup (#3043)
  remove warning message leaking password strings (#3053)
  trap psutil.NoSuchProcess exception (#3052)
  Fix grammar and casing in exception text (#3050)
  allow override of kubelet host with KUBERNETES_KUBELET_HOST env var
  [service discovery] properly handle config reload for removed containers
  ...
@masci masci modified the milestones: 5.11.0, 5.12.0 Jan 24, 2017
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.

2 participants