Skip to content

Files

Latest commit

 

History

History
 
 

squid

Squid Integration

Overview

This check monitors Squid metrics from the Cache Manager through the Datadog Agent.

Setup

Installation

The Agent's Squid check is included in the Datadog Agent package. No additional installation is needed on your Squid server.

Configuration

Host

To configure this check for an Agent running on a host:

Metric collection
  1. Edit the squid.d/conf.yaml, in the conf.d/ folder at the root of your Agent's configuration directory. See the sample squid.d/conf.yaml for all available configuration options.

  2. Restart the Agent.

Log collection

Available for Agent versions >6.0

  1. Collecting logs is disabled by default in the Datadog Agent, enable it in your datadog.yaml file:

    logs_enabled: true
  2. Uncomment and edit this configuration block at the bottom of your squid.d/conf.yaml file:

    logs:
      - type: file
        path: /var/log/squid/cache.log
        service: "<SERVICE-NAME>"
        source: squid
      - type: file
        path: /var/log/squid/access.log
        service: "<SERVICE-NAME>"
        source: squid

    Change the path and service parameter values and configure them for your environment.

  3. Restart the Agent.

Containerized

For containerized environments, see the Autodiscovery Integration Templates for guidance on applying the parameters below.

Metric collection
Parameter Value
<INTEGRATION_NAME> squid
<INIT_CONFIG> blank or {}
<INSTANCE_CONFIG> {"name": "<SQUID_INSTANCE_NAME>", "host": "%%host%%", "port":"3128"}
Log collection

Available for Agent versions >6.0

Collecting logs is disabled by default in the Datadog Agent. To enable it, see Kubernetes Log Collection.

Parameter Value
<LOG_CONFIG> {"source": "squid", "service": "<YOUR_APP_NAME>"}

Validation

Run the Agent's status subcommand and look for squid under the Checks section.

Data Collected

Metrics

See metadata.csv for a list of metrics provided by this check.

Events

The Squid check does not include any events.

Service Checks

See service_checks.json for a list of service checks provided by this integration.

Troubleshooting

Need help? Contact Datadog support.