Splunk

The Splunk V2 integration allows you to export Prometheus metrics from your CloudAMQP cluster to Splunk.

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.

All metrics are exported with the labels instance and cluster, which are populated with the name of the server and cluster.

Exported server metrics

Metric
system_cpu_time_seconds_total
system_disk_io_bytes_total
system_disk_operation_time_seconds_total
system_disk_operations_total
system_filesystem_usage_bytes
system_filesystem_utilization_ratio
system_memory_usage_bytes
system_memory_usage
system_network_packets_total
system_paging_limit_bytes
system_paging_usage_bytes

Exported LavinMQ metrics

lavinmq.alarms_memory_used_watermark
lavinmq.alarms_free_disk_space_watermark
lavinmq.connections
lavinmq.channels
lavinmq.consumers
lavinmq.disk_space_available_bytes
lavinmq.exchange_messages_published_totalglobal_messages_acknowledged_total
lavinmq.global_messages_confirmed_total
lavinmq.global_messages_delivered_total
lavinmq.global_messages_delivered_get_manual_ack_total
lavinmq.global_messages_delivered_get_auto_ack_total
lavinmq.global_messages_redelivered_total
lavinmq.global_messages_unroutable_dropped_total
lavinmq.global_messages_unroutable_returned_total
lavinmq.process_open_fds
lavinmq.process_resident_memory_bytes
lavinmq.queues
lavinmq.queue_get_total
lavinmq.queue_get_ack_total
lavinmq.queue_messages
lavinmq.queue_messages_acked_total
lavinmq.queue_messages_delivered_ack_total
lavinmq.queue_messages_persistent
lavinmq.queue_messages_published_total
lavinmq.queue_messages_ready
lavinmq.queue_messages_unacked
lavinmq.queue_head_message_timestamp

Exported RabbitMQ metrics

rabbitmq.alarms_memory_used_watermark
rabbitmq.alarms_free_disk_space_watermark
rabbitmq.connections
rabbitmq.channels
rabbitmq.consumers
rabbitmq.disk_space_available_bytes
rabbitmq.exchange_messages_published_totalglobal_messages_acknowledged_total
rabbitmq.global_messages_confirmed_total
rabbitmq.global_messages_delivered_total
rabbitmq.global_messages_delivered_get_manual_ack_total
rabbitmq.global_messages_delivered_get_auto_ack_total
rabbitmq.global_messages_redelivered_total
rabbitmq.global_messages_unroutable_dropped_total
rabbitmq.global_messages_unroutable_returned_total
rabbitmq.process_open_fds
rabbitmq.process_resident_memory_bytes
rabbitmq.queues
rabbitmq.queue_get_total
rabbitmq.queue_get_ack_total
rabbitmq.queue_messages
rabbitmq.queue_messages_acked_total
rabbitmq.queue_messages_delivered_ack_total
rabbitmq.queue_messages_persistent
rabbitmq.queue_messages_published_total
rabbitmq.queue_messages_ready
rabbitmq.queue_messages_unacked
rabbitmq.queue_head_message_timestamp