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

     1  <!--startmeta
     2  custom_edit_url: "https://github.com/netdata/go.d.plugin/edit/master/modules/solr/README.md"
     3  meta_yaml: "https://github.com/netdata/go.d.plugin/edit/master/modules/solr/metadata.yaml"
     4  sidebar_label: "Solr"
     5  learn_status: "Published"
     6  learn_rel_path: "Data Collection/Search Engines"
     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  # Solr
    12  
    13  
    14  <img src="https://netdata.cloud/img/solr.svg" width="150"/>
    15  
    16  
    17  Plugin: go.d.plugin
    18  Module: solr
    19  
    20  <img src="https://img.shields.io/badge/maintained%20by-Netdata-%2300ab44" />
    21  
    22  ## Overview
    23  
    24  This collector monitors Solr instances.
    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 Solr 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  | solr.search_requests | search | requests/s |
    68  | solr.search_errors | errors | errors/s |
    69  | solr.search_errors_by_type | client, server, timeouts | errors/s |
    70  | solr.search_requests_processing_time | time | milliseconds |
    71  | solr.search_requests_timings | min, median, mean, max | milliseconds |
    72  | solr.search_requests_processing_time_percentile | p75, p95, p99, p999 | milliseconds |
    73  | solr.update_requests | search | requests/s |
    74  | solr.update_errors | errors | errors/s |
    75  | solr.update_errors_by_type | client, server, timeouts | errors/s |
    76  | solr.update_requests_processing_time | time | milliseconds |
    77  | solr.update_requests_timings | min, median, mean, max | milliseconds |
    78  | solr.update_requests_processing_time_percentile | p75, p95, p99, p999 | milliseconds |
    79  
    80  
    81  
    82  ## Alerts
    83  
    84  There are no alerts configured by default for this integration.
    85  
    86  
    87  ## Setup
    88  
    89  ### Prerequisites
    90  
    91  #### Solr version 6.4+
    92  
    93  This collector does not work with Solr versions lower 6.4.
    94  
    95  
    96  
    97  ### Configuration
    98  
    99  #### File
   100  
   101  The configuration file name for this integration is `go.d/solr.conf`.
   102  
   103  
   104  You can edit the configuration file using the `edit-config` script from the
   105  Netdata [config directory](https://github.com/netdata/netdata/blob/master/docs/configure/nodes.md#the-netdata-config-directory).
   106  
   107  ```bash
   108  cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
   109  sudo ./edit-config go.d/solr.conf
   110  ```
   111  #### Options
   112  
   113  The following options can be defined globally: update_every, autodetection_retry.
   114  
   115  
   116  <details><summary>All options</summary>
   117  
   118  | Name | Description | Default | Required |
   119  |:----|:-----------|:-------|:--------:|
   120  | update_every | Data collection frequency. | 1 | no |
   121  | autodetection_retry | Recheck interval in seconds. Zero means no recheck will be scheduled. | 0 | no |
   122  | url | Server URL. | http://127.0.0.1:8983 | yes |
   123  | socket | Server Unix socket. |  | no |
   124  | address | Server address in IP:PORT format. |  | no |
   125  | fcgi_path | Status path. | /status | no |
   126  | timeout | HTTP request timeout. | 1 | no |
   127  | username | Username for basic HTTP authentication. |  | no |
   128  | password | Password for basic HTTP authentication. |  | no |
   129  | proxy_url | Proxy URL. |  | no |
   130  | proxy_username | Username for proxy basic HTTP authentication. |  | no |
   131  | proxy_password | Password for proxy basic HTTP authentication. |  | no |
   132  | method | HTTP request method. | GET | no |
   133  | body | HTTP request body. |  | no |
   134  | headers | HTTP request headers. |  | no |
   135  | not_follow_redirects | Redirect handling policy. Controls whether the client follows redirects. | no | no |
   136  | tls_skip_verify | Server certificate chain and hostname validation policy. Controls whether the client performs this check. | no | no |
   137  | tls_ca | Certification authority that the client uses when verifying the server's certificates. |  | no |
   138  | tls_cert | Client TLS certificate. |  | no |
   139  | tls_key | Client TLS key. |  | no |
   140  
   141  </details>
   142  
   143  #### Examples
   144  
   145  ##### Basic
   146  
   147  An example configuration.
   148  
   149  <details><summary>Config</summary>
   150  
   151  ```yaml
   152  jobs:
   153    - name: local
   154    url: http://localhost:8983
   155  
   156  ```
   157  </details>
   158  
   159  ##### Basic HTTP auth
   160  
   161  Local Solr instance with basic HTTP authentication.
   162  
   163  <details><summary>Config</summary>
   164  
   165  ```yaml
   166  jobs:
   167    - name: local
   168      url: http://localhost:8983
   169      username: foo
   170      password: bar
   171  
   172  ```
   173  </details>
   174  
   175  ##### Multi-instance
   176  
   177  > **Note**: When you define multiple jobs, their names must be unique.
   178  
   179  Local and remote instances.
   180  
   181  
   182  <details><summary>Config</summary>
   183  
   184  ```yaml
   185  jobs:
   186    - name: local
   187      url: http://localhost:8983
   188  
   189    - name: remote
   190      url: http://203.0.113.10:8983
   191  
   192  ```
   193  </details>
   194  
   195  
   196  
   197  ## Troubleshooting
   198  
   199  ### Debug Mode
   200  
   201  To troubleshoot issues with the `solr` collector, run the `go.d.plugin` with the debug option enabled. The output
   202  should give you clues as to why the collector isn't working.
   203  
   204  - Navigate to the `plugins.d` directory, usually at `/usr/libexec/netdata/plugins.d/`. If that's not the case on
   205    your system, open `netdata.conf` and look for the `plugins` setting under `[directories]`.
   206  
   207    ```bash
   208    cd /usr/libexec/netdata/plugins.d/
   209    ```
   210  
   211  - Switch to the `netdata` user.
   212  
   213    ```bash
   214    sudo -u netdata -s
   215    ```
   216  
   217  - Run the `go.d.plugin` to debug the collector:
   218  
   219    ```bash
   220    ./go.d.plugin -d -m solr
   221    ```
   222  
   223