github.com/observiq/bindplane-agent@v1.51.0/config/google_cloud_exporter/rabbitmq/README.md (about)

     1  # RabbitMQ Metrics with Google Cloud
     2  
     3  The RabbitMQ Receiver can be used to send RabbitMQ metrics to Google Cloud Monitoring.
     4  
     5  ## Prerequisites
     6  
     7  See the [documentation](https://github.com/observIQ/bindplane-agent/blob/main/docs/receivers.md) for RabbitMQ prerequisites.
     8  
     9  See the [prerequisites](../README.md) doc for Google Cloud prerequisites.
    10  
    11  ## Authentication Environment Variables
    12  
    13  The configuration assumes the following environment variables are set:
    14  - `RABBITMQ_USERNAME`
    15  - `RABBITMQ_PASSWORD`
    16  
    17  Set the variables by creating a [systemd override](https://wiki.archlinux.org/title/systemd#Replacement_unit_files).
    18  
    19  Run the following command
    20  ```bash
    21  sudo systemctl edit observiq-otel-collector
    22  ```
    23  
    24  If this is the first time an override is being created, the file will be empty. Paste the following contents into the file. If the `Service` section is already present, append the two `Environment` lines to the `Service` section.
    25  
    26  Replace `otel` with your RabbitMQ username and password.
    27  ```
    28  [Service]
    29  Environment=RABBITMQ_USERNAME=otel
    30  Environment=RABBITMQ_PASSWORD=otel
    31  ```
    32  
    33  After restarting the agent, the configuration will attempt to use the configured username and password.
    34  
    35  ```bash
    36  sudo systemctl restart observiq-otel-collector
    37  ```