Supported OS
Gearman Integration Overview Collect Gearman metrics to:
Visualize Gearman performance. Know how many tasks are queued or running. Correlate Gearman performance with the rest of your applications. Setup Installation The Gearman check is included in the Datadog Agent package, so you don’t need to install anything else on your Gearman job servers.
Configuration Containerized 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"}
Log collection Collecting logs is disabled by default in the Datadog Agent, enable it in your datadog.yaml
file:
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.
Restart the Agent .
See Kubernetes Log Collection for information on configuring the Agent for log collection in Kubernetes environments.
Validation Run the Agent’s status
subcommand and look for gearmand
under the Checks section.
Data Collected Metrics gearman.queued (gauge)The total number of jobs in the queue.Shown as task gearman.queued_by_task (gauge)The number of jobs in the queue by task.Shown as task gearman.running (gauge)The total number of running Gearman jobs.Shown as task gearman.running_by_task (gauge)The number of running Gearman jobs by task.Shown as task gearman.unique_tasks (gauge)The number of all functions registered with Gearman.Shown as task gearman.workers (gauge)The total number of capable Gearman workers.Shown as process gearman.workers_by_task (gauge)The number of capable Gearman workers by task.Shown as process
Events The Gearman check does not include any events.
Service Checks gearman.can_connect
Returns CRITICAL
if the Agent check is unable to connect to the monitored Gearman instance. Returns OK
otherwise.
Statuses: ok, critical
Troubleshooting Need help? Contact Datadog support .