github.com/netdata/go.d.plugin@v0.58.1/modules/activemq/integrations/activemq.md (about)

     1  <!--startmeta
     2  custom_edit_url: "https://github.com/netdata/go.d.plugin/edit/master/modules/activemq/README.md"
     3  meta_yaml: "https://github.com/netdata/go.d.plugin/edit/master/modules/activemq/metadata.yaml"
     4  sidebar_label: "ActiveMQ"
     5  learn_status: "Published"
     6  learn_rel_path: "Data Collection/Message Brokers"
     7  most_popular: False
     8  message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE"
     9  endmeta-->
    10  
    11  # ActiveMQ
    12  
    13  
    14  <img src="https://netdata.cloud/img/activemq.png" width="150"/>
    15  
    16  
    17  Plugin: go.d.plugin
    18  Module: activemq
    19  
    20  <img src="https://img.shields.io/badge/maintained%20by-Netdata-%2300ab44" />
    21  
    22  ## Overview
    23  
    24  This collector monitors ActiveMQ queues and topics.
    25  
    26  It collects metrics by sending HTTP requests to the Web Console API.
    27  
    28  This collector is supported on all platforms.
    29  
    30  This collector supports collecting metrics from multiple instances of this integration, including remote instances.
    31  
    32  
    33  ### Default Behavior
    34  
    35  #### Auto-Detection
    36  
    37  This collector discovers instances running on the local host that provide metrics on port 8161.
    38  On startup, it tries to collect metrics from:
    39  
    40  - http://localhost:8161
    41  
    42  
    43  #### Limits
    44  
    45  The default configuration for this integration does not impose any limits on data collection.
    46  
    47  #### Performance Impact
    48  
    49  The default configuration for this integration is not expected to impose a significant performance impact on the system.
    50  
    51  
    52  ## Metrics
    53  
    54  Metrics grouped by *scope*.
    55  
    56  The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.
    57  
    58  
    59  
    60  ### Per ActiveMQ instance
    61  
    62  These metrics refer to the entire monitored application.
    63  
    64  This scope has no labels.
    65  
    66  Metrics:
    67  
    68  | Metric | Dimensions | Unit |
    69  |:------|:----------|:----|
    70  | activemq.messages | enqueued, dequeued | messages/s |
    71  | activemq.unprocessed_messages | unprocessed | messages |
    72  | activemq.consumers | consumers | consumers |
    73  
    74  
    75  
    76  ## Alerts
    77  
    78  There are no alerts configured by default for this integration.
    79  
    80  
    81  ## Setup
    82  
    83  ### Prerequisites
    84  
    85  No action required.
    86  
    87  ### Configuration
    88  
    89  #### File
    90  
    91  The configuration file name for this integration is `go.d/activemq.conf`.
    92  
    93  
    94  You can edit the configuration file using the `edit-config` script from the
    95  Netdata [config directory](https://github.com/netdata/netdata/blob/master/docs/configure/nodes.md#the-netdata-config-directory).
    96  
    97  ```bash
    98  cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
    99  sudo ./edit-config go.d/activemq.conf
   100  ```
   101  #### Options
   102  
   103  The following options can be defined globally: update_every, autodetection_retry.
   104  
   105  
   106  <details><summary>Config options</summary>
   107  
   108  | Name | Description | Default | Required |
   109  |:----|:-----------|:-------|:--------:|
   110  | update_every | Data collection frequency. | 1 | no |
   111  | autodetection_retry | Recheck interval in seconds. Zero means no recheck will be scheduled. | 0 | no |
   112  | url | Server URL. | http://localhost:8161 | yes |
   113  | webadmin | Webadmin root path. | admin | yes |
   114  | max_queues | Maximum number of concurrently collected queues. | 50 | no |
   115  | max_topics | Maximum number of concurrently collected topics. | 50 | no |
   116  | queues_filter | Queues filter. Syntax is [simple patterns](https://github.com/netdata/netdata/tree/master/src/libnetdata/simple_pattern#simple-patterns). |  | no |
   117  | topics_filter | Topics filter. Syntax is [simple patterns](https://github.com/netdata/netdata/tree/master/src/libnetdata/simple_pattern#simple-patterns). |  | no |
   118  | username | Username for basic HTTP authentication. |  | no |
   119  | password | Password for basic HTTP authentication. |  | no |
   120  | proxy_username | Username for proxy basic HTTP authentication. |  | no |
   121  | proxy_password | Password for proxy basic HTTP authentication. |  | no |
   122  | method | HTTP request method. | GET | no |
   123  | timeout | HTTP request timeout. | 1 | no |
   124  | body | HTTP request body. |  | no |
   125  | headers | HTTP request headers. |  | no |
   126  | not_follow_redirects | Redirect handling policy. Controls whether the client follows redirects. | no | no |
   127  | tls_skip_verify | Server certificate chain and hostname validation policy. Controls whether the client performs this check. | no | no |
   128  | tls_ca | Certification authority that the client uses when verifying the server's certificates. |  | no |
   129  | tls_cert | Client TLS certificate. |  | no |
   130  | tls_key | Client TLS key. |  | no |
   131  
   132  </details>
   133  
   134  #### Examples
   135  
   136  ##### Basic
   137  
   138  A basic example configuration.
   139  
   140  ```yaml
   141  jobs:
   142    - name: local
   143      url: http://127.0.0.1:8161
   144      webadmin: admin
   145  
   146  ```
   147  ##### HTTP authentication
   148  
   149  Basic HTTP authentication.
   150  
   151  <details><summary>Config</summary>
   152  
   153  ```yaml
   154  jobs:
   155    - name: local
   156      url: http://127.0.0.1:8161
   157      webadmin: admin
   158      username: foo
   159      password: bar
   160  
   161  ```
   162  </details>
   163  
   164  ##### Filters and limits
   165  
   166  Using filters and limits for queues and topics.
   167  
   168  <details><summary>Config</summary>
   169  
   170  ```yaml
   171  jobs:
   172    - name: local
   173      url: http://127.0.0.1:8161
   174      webadmin: admin
   175      max_queues: 100
   176      max_topics: 100
   177      queues_filter: '!sandr* *'
   178      topics_filter: '!sandr* *'
   179  
   180  ```
   181  </details>
   182  
   183  ##### Multi-instance
   184  
   185  > **Note**: When you define multiple jobs, their names must be unique.
   186  
   187  Collecting metrics from local and remote instances.
   188  
   189  
   190  <details><summary>Config</summary>
   191  
   192  ```yaml
   193  jobs:
   194    - name: local
   195      url: http://127.0.0.1:8161
   196      webadmin: admin
   197  
   198    - name: remote
   199      url: http://192.0.2.1:8161
   200      webadmin: admin
   201  
   202  ```
   203  </details>
   204  
   205  
   206  
   207  ## Troubleshooting
   208  
   209  ### Debug Mode
   210  
   211  To troubleshoot issues with the `activemq` collector, run the `go.d.plugin` with the debug option enabled. The output
   212  should give you clues as to why the collector isn't working.
   213  
   214  - Navigate to the `plugins.d` directory, usually at `/usr/libexec/netdata/plugins.d/`. If that's not the case on
   215    your system, open `netdata.conf` and look for the `plugins` setting under `[directories]`.
   216  
   217    ```bash
   218    cd /usr/libexec/netdata/plugins.d/
   219    ```
   220  
   221  - Switch to the `netdata` user.
   222  
   223    ```bash
   224    sudo -u netdata -s
   225    ```
   226  
   227  - Run the `go.d.plugin` to debug the collector:
   228  
   229    ```bash
   230    ./go.d.plugin -d -m activemq
   231    ```
   232  
   233