# Splunk

We recommend [Splunk V2](/docs/monitoring-metrics-splunk-v2/) which delivers **Prometheus metrics** via **OpenTelemetry.**

To send metrics to Splunk, create a new HTTP Event Collector to retrieve a token and enter it in the `Token` field. Get the Splunk endpoint address and add it to the hostname field. Step by step guide:

Create a data input and token for HEC Use the HTTP Event Collector (HEC) and the /collector REST API endpoint.

1. In Splunk Web, click Settings \> Data Inputs.

2. Under Local Inputs, click HTTP Event Collector.

3. Verify that HEC is enabled.
   1. Click Global Settings.
   2. For All Tokens, click Enabled if this button is not already selected.
   3. Click Save.
4. Configure an HEC token for sending data by clicking New Token.

5. On the Select Source page, for Name, enter a token name, for example “Metrics token”.

6. Leave the other options blank or unselected.

7. Click Next.

8. On the Input Settings page, for Source type, click New.

9. In Source Type, type a name for your new source type.

10. For Source Type Category, select Metrics.

11. Optionally, in Source Type Description type a description.

12. Next to Default Index, select your metrics index, or click Create a new index to create one. If you choose to create an index, in the New Index dialog box:
    1. Enter an Index Name.
    2. For Index Data Type, click Metrics.
    3. Configure additional index properties as needed.
    4. Click Save.
13. Click Review, and then click Submit.

14. Copy the Token Value that is displayed. This HEC token is required for sending data.

### Exported server metrics

| Metric | Value type |
| --- | --- |
| cloudamqp.cpu.user | Percent |
| cloudamqp.cpu.system | Percent |
| cloudamqp.cpu.iowait | Percent |
| cloudamqp.cpu.steal | Percent |
| cloudamqp.mem.free | Mb |
| cloudamqp.mem.used | Mb |
| cloudamqp.mem.total | Mb |
| cloudamqp.swap.free | Mb |
| cloudamqp.swap.used | Mb |

### Exported RabbitMQ metrics

| Metric |
| --- |
| cloudamqp.publish_rate |
| cloudamqp.consume_rate |
| cloudamqp.connection |
| cloudamqp.channels |
| cloudamqp.consumers |
| cloudamqp.queues |
| cloudamqp.queued_messages |
| cloudamqp.queue_length |
| cloudamqp.queue_consumers |
| cloudamqp.queue_publish_rate |
| cloudamqp.queue_consume_rate |

[← Back to Metrics Integrations](/docs/cloudamqp-integrations/#legacy-metrics)
