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

     1  <!--startmeta
     2  custom_edit_url: "https://github.com/netdata/go.d.plugin/edit/master/modules/couchbase/README.md"
     3  meta_yaml: "https://github.com/netdata/go.d.plugin/edit/master/modules/couchbase/metadata.yaml"
     4  sidebar_label: "Couchbase"
     5  learn_status: "Published"
     6  learn_rel_path: "Data Collection/Databases"
     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  # Couchbase
    12  
    13  
    14  <img src="https://netdata.cloud/img/couchbase.svg" width="150"/>
    15  
    16  
    17  Plugin: go.d.plugin
    18  Module: couchbase
    19  
    20  <img src="https://img.shields.io/badge/maintained%20by-Netdata-%2300ab44" />
    21  
    22  ## Overview
    23  
    24  This collector monitors Couchbase servers.
    25  
    26  
    27  
    28  
    29  This collector is supported on all platforms.
    30  
    31  This collector supports collecting metrics from multiple instances of this integration, including remote instances.
    32  
    33  
    34  ### Default Behavior
    35  
    36  #### Auto-Detection
    37  
    38  This integration doesn't support auto-detection.
    39  
    40  #### Limits
    41  
    42  The default configuration for this integration does not impose any limits on data collection.
    43  
    44  #### Performance Impact
    45  
    46  The default configuration for this integration is not expected to impose a significant performance impact on the system.
    47  
    48  
    49  ## Metrics
    50  
    51  Metrics grouped by *scope*.
    52  
    53  The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.
    54  
    55  
    56  
    57  ### Per Couchbase instance
    58  
    59  These metrics refer to the entire monitored application.
    60  
    61  This scope has no labels.
    62  
    63  Metrics:
    64  
    65  | Metric | Dimensions | Unit |
    66  |:------|:----------|:----|
    67  | couchbase.bucket_quota_percent_used | a dimension per bucket | percentage |
    68  | couchbase.bucket_ops_per_sec | a dimension per bucket | ops/s |
    69  | couchbase.bucket_disk_fetches | a dimension per bucket | fetches |
    70  | couchbase.bucket_item_count | a dimension per bucket | items |
    71  | couchbase.bucket_disk_used_stats | a dimension per bucket | bytes |
    72  | couchbase.bucket_data_used | a dimension per bucket | bytes |
    73  | couchbase.bucket_mem_used | a dimension per bucket | bytes |
    74  | couchbase.bucket_vb_active_num_non_resident | a dimension per bucket | items |
    75  
    76  
    77  
    78  ## Alerts
    79  
    80  There are no alerts configured by default for this integration.
    81  
    82  
    83  ## Setup
    84  
    85  ### Prerequisites
    86  
    87  No action required.
    88  
    89  ### Configuration
    90  
    91  #### File
    92  
    93  The configuration file name for this integration is `go.d/couchbase.conf`.
    94  
    95  
    96  You can edit the configuration file using the `edit-config` script from the
    97  Netdata [config directory](https://github.com/netdata/netdata/blob/master/docs/configure/nodes.md#the-netdata-config-directory).
    98  
    99  ```bash
   100  cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
   101  sudo ./edit-config go.d/couchbase.conf
   102  ```
   103  #### Options
   104  
   105  The following options can be defined globally: update_every, autodetection_retry.
   106  
   107  
   108  <details><summary>All options</summary>
   109  
   110  | Name | Description | Default | Required |
   111  |:----|:-----------|:-------|:--------:|
   112  | update_every | Data collection frequency. | 1 | no |
   113  | autodetection_retry | Recheck interval in seconds. Zero means no recheck will be scheduled. | 0 | no |
   114  | url | Server URL. | http://127.0.0.1:8091 | yes |
   115  | username | Username for basic HTTP authentication. |  | no |
   116  | password | Password for basic HTTP authentication. |  | no |
   117  | proxy_url | Proxy URL. |  | no |
   118  | proxy_username | Username for proxy basic HTTP authentication. |  | no |
   119  | proxy_password | Password for proxy basic HTTP authentication. |  | no |
   120  | timeout | HTTP request timeout. | 2 | no |
   121  | method | HTTP request method. | GET | no |
   122  | body | HTTP request body. |  | no |
   123  | headers | HTTP request headers. |  | no |
   124  | not_follow_redirects | Redirect handling policy. Controls whether the client follows redirects. | no | no |
   125  | tls_skip_verify | Server certificate chain and hostname validation policy. Controls whether the client performs this check. | no | no |
   126  | tls_ca | Certification authority that the client uses when verifying the server's certificates. |  | no |
   127  | tls_cert | Client tls certificate. |  | no |
   128  | tls_key | Client tls key. |  | no |
   129  
   130  </details>
   131  
   132  #### Examples
   133  
   134  ##### Basic
   135  
   136  An example configuration.
   137  
   138  <details><summary>Config</summary>
   139  
   140  ```yaml
   141  jobs:
   142    - name: local
   143      url: http://127.0.0.1:8091
   144  
   145  ```
   146  </details>
   147  
   148  ##### Basic HTTP auth
   149  
   150  Local server with basic HTTP authentication.
   151  
   152  <details><summary>Config</summary>
   153  
   154  ```yaml
   155  jobs:
   156    - name: local
   157      url: http://127.0.0.1:8091
   158      username: foo
   159      password: bar
   160  
   161  ```
   162  </details>
   163  
   164  ##### Multi-instance
   165  
   166  > **Note**: When you define multiple jobs, their names must be unique.
   167  
   168  Collecting metrics from local and remote instances.
   169  
   170  
   171  <details><summary>Config</summary>
   172  
   173  ```yaml
   174  jobs:
   175    - name: local
   176      url: http://127.0.0.1:8091
   177  
   178    - name: remote
   179      url: http://203.0.113.0:8091
   180  
   181  ```
   182  </details>
   183  
   184  
   185  
   186  ## Troubleshooting
   187  
   188  ### Debug Mode
   189  
   190  To troubleshoot issues with the `couchbase` collector, run the `go.d.plugin` with the debug option enabled. The output
   191  should give you clues as to why the collector isn't working.
   192  
   193  - Navigate to the `plugins.d` directory, usually at `/usr/libexec/netdata/plugins.d/`. If that's not the case on
   194    your system, open `netdata.conf` and look for the `plugins` setting under `[directories]`.
   195  
   196    ```bash
   197    cd /usr/libexec/netdata/plugins.d/
   198    ```
   199  
   200  - Switch to the `netdata` user.
   201  
   202    ```bash
   203    sudo -u netdata -s
   204    ```
   205  
   206  - Run the `go.d.plugin` to debug the collector:
   207  
   208    ```bash
   209    ./go.d.plugin -d -m couchbase
   210    ```
   211  
   212