-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align with stock statsd plugin, add extra tags, add metric whitelisti…
…ng (#1) - After this plugin was created, the stock statsd plugin in the uWSGI repo was updated to support disabling worker metrics and forcing all metrics to be gauges. The first change this commit makes is to port those two changes into this plugin. - We only use 3-4 metrics of the dozens that uWSGI records. I've added a whitelisting feature that enables us to filter out undesired metrics, reducing our use of Datadog custom metrics. - We need the ability to specify additional tags, so that we can more easily graph uWSGI metrics belonging to specific applications (or group uWSGI metrics by application). I've added that capability here. This change is completely backwards compatible. If a user has a config such as the following, the plugin behavior will continue in the exact same manner as before this change: ``` stats-push=dogstatsd:localhost:8135,uwsgi ``` Now, however, we can add more advanced configuration options, like below, to alter the plugin behavior: ``` stats-push=dogstatsd:localhost:8135,uwsgi dogstatsd-extra-tags=app:foo_service dogstatsd-no-workers=true dogstatsd-whitelist-metric=core.busy_workers dogstatsd-whitelist-metric=core.idle_workers dogstatsd-whitelist-metric=core.overloaded dogstatsd-whitelist-metric=socket.listen_queue ```
- Loading branch information
1 parent
1a04f78
commit 9033133
Showing
2 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters