This check monitors Squid metrics from the Cache Manager through the Datadog Agent.
The Agent's Squid check is included in the Datadog Agent package. No additional installation is needed on your Squid server.
To configure this check for an Agent running on a host:
-
Edit the
squid.d/conf.yaml
, in theconf.d/
folder at the root of your Agent's configuration directory. See the sample squid.d/conf.yaml for all available configuration options.
Available for Agent versions >6.0
-
Collecting logs is disabled by default in the Datadog Agent, enable it in your
datadog.yaml
file:logs_enabled: true
-
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
andservice
parameter values and configure them for your environment.
For containerized environments, see the Autodiscovery Integration Templates for guidance on applying the parameters below.
Parameter | Value |
---|---|
<INTEGRATION_NAME> |
squid |
<INIT_CONFIG> |
blank or {} |
<INSTANCE_CONFIG> |
{"name": "<SQUID_INSTANCE_NAME>", "host": "%%host%%", "port":"3128"} |
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>"} |
Run the Agent's status subcommand and look for squid
under the Checks section.
See metadata.csv for a list of metrics provided by this check.
The Squid 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.