Collect Gearman metrics to:
- Visualize Gearman performance.
- Know how many tasks are queued or running.
- Correlate Gearman performance with the rest of your applications.
The Gearman check is included in the Datadog Agent package, so you don't need to install anything else on your Gearman job servers.
To configure this check for an Agent running on a host:
-
Edit the
gearmand.d/conf.yaml
file, in theconf.d/
folder at the root of your Agent's configuration directory to start collecting your Gearman performance data. See the sample gearmand.d/conf.yaml for all available configuration options.init_config: instances: - server: localhost port: 4730
For containerized environments, see the Autodiscovery Integration Templates for guidance on applying the parameters below.
Parameter | Value |
---|---|
<INTEGRATION_NAME> |
gearmand |
<INIT_CONFIG> |
blank or {} |
<INSTANCE_CONFIG> |
{"server":"%%host%%", "port":"4730"} |
-
Collecting logs is disabled by default in the Datadog Agent, enable it in your
datadog.yaml
file:logs_enabled: true
-
Add this configuration block to your
gearmand.d/conf.yaml
file to start collecting your Gearman logs:logs: - type: file path: /var/log/gearmand.log source: gearman
Change the
path
parameter value based on your environment. See the sample gearmand.d/conf.yaml for all available configuration options.
See Kubernetes Log Collection for information on configuring the Agent for log collection in Kubernetes environments.
Run the Agent's status
subcommand and look for gearmand
under the Checks section.
See metadata.csv for a list of metrics provided by this integration.
The Gearman check does not include any events.
See service_checks.json for a list of service checks provided by this integration.
Need help? Contact Datadog support.