---
title: Resin
description: Track thread pool, connection pool settings within resin
breadcrumbs: Docs > Integrations > Resin
---

# Resin
Supported OS Integration version2.0.0
## Overview{% #overview %}

This check monitors [Resin](https://caucho.com/) through the Datadog Agent.

## Setup{% #setup %}

### Installation{% #installation %}

The Resin check is not included in the [Datadog Agent](https://github.com/DataDog/integrations-extras/blob/master/resin/datadog_checks/resin/data/conf.yaml.example) package, so you need to install it.

### Configuration{% #configuration %}

1. Configure the [resin default server](https://www.caucho.com/resin-4.0/admin/cluster-server.xtp#JVMparameters:settingtheJVMcommandline) to enable JMX by adding the following JVM arguments:

```
<server-default>
  <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>
  <jvm-arg>-Dcom.sun.management.jmxremote.port=7199</jvm-arg>
</server-default>
```

Edit the `resin.d/conf.yaml` file in the `conf.d/` folder at the root of your Agent's configuration directory to start collecting your resin performance data. See the [resin.d/conf.yaml example](https://github.com/DataDog/integrations-extras/blob/master/resin/datadog_checks/resin/data/conf.yaml.example) for all available configuration options.

[Restart the Agent](https://docs.datadoghq.com/agent/guide/agent-commands.md?tab=agentv6#start-stop-and-restart-the-agent).

### Validation{% #validation %}

[Run the Agent's status subcommand](https://docs.datadoghq.com/agent/guide/agent-commands.md?tab=agentv6#agent-status-and-information) and look for `resin` under the Checks section.

### Log collection{% #log-collection %}

Enable logs collection for Datadog Agent in `/etc/datadog-agent/datadog.yaml` on Linux platforms. On other platforms, see the [Agent Configuration Files guide](https://docs.datadoghq.com/agent/guide/agent-configuration-files.md) for the location of your configuration file:

```yaml
logs_enabled: true
```

- Enable this configuration block to your `resin.d/conf.yaml` file to start collecting Logs:
  ```yaml
  logs:
    - type: file
      path: /var/opt/resin/log/*.log
      source: resin
  ```

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **resin.connection\_pool.connection\_count**(gauge)          | The current connection count for a particular connection pool*Shown as connection*                                    |
| **resin.connection\_pool.connection\_active\_count**(gauge)  | The active connection count for a particular connection pool*Shown as connection*                                     |
| **resin.connection\_pool.connection\_idle\_count**(gauge)    | The idle connection count for a particular connection pool*Shown as connection*                                       |
| **resin.connection\_pool.connection\_create\_count**(gauge)  | The number of connections created for a particular connection pool*Shown as connection*                               |
| **resin.connection\_pool.max\_connections**(gauge)           | The max number of connections allowed for a particular connection pool*Shown as connection*                           |
| **resin.connection\_pool.max\_overflow\_connections**(gauge) | The max number of overflow connections allowed for a particular connection pool*Shown as connection*                  |
| **resin.connection\_pool.max\_create\_connections**(gauge)   | The max number of connections allowed to be created at one time for a particular connection pool*Shown as connection* |
| **resin.thread\_pool.thread\_active\_count**(gauge)          | The number of active threads*Shown as thread*                                                                         |
| **resin.thread\_pool.thread\_count**(gauge)                  | The number of threads*Shown as thread*                                                                                |
| **resin.thread\_pool.thread\_idle\_count**(gauge)            | The number of idle threads*Shown as thread*                                                                           |
| **resin.thread\_pool.thread\_max**(gauge)                    | The max number of threads*Shown as thread*                                                                            |
| **resin.thread\_pool.thread\_wait\_count**(gauge)            | The number of waiting threads*Shown as thread*                                                                        |

### Events{% #events %}

Resin does not include any events.

### Service Checks{% #service-checks %}

**resin.can\_connect**

Returns `CRITICAL` if the Agent is unable to connect to and collect metrics from the monitored Resin instance. Returns `OK` otherwise.

*Statuses: ok, critical*

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
