github.com/netdata/go.d.plugin@v0.58.1/modules/geth/integrations/go-ethereum.md (about) 1 <!--startmeta 2 custom_edit_url: "https://github.com/netdata/go.d.plugin/edit/master/modules/geth/README.md" 3 meta_yaml: "https://github.com/netdata/go.d.plugin/edit/master/modules/geth/metadata.yaml" 4 sidebar_label: "Go-ethereum" 5 learn_status: "Published" 6 learn_rel_path: "Data Collection/Blockchain Servers" 7 most_popular: True 8 message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE" 9 endmeta--> 10 11 # Go-ethereum 12 13 14 <img src="https://netdata.cloud/img/geth.png" width="150"/> 15 16 17 Plugin: go.d.plugin 18 Module: geth 19 20 <img src="https://img.shields.io/badge/maintained%20by-Netdata-%2300ab44" /> 21 22 ## Overview 23 24 This collector monitors Go-ethereum 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 By default, it detects Go-ethereum instances running on localhost. 39 40 41 #### Limits 42 43 The default configuration for this integration does not impose any limits on data collection. 44 45 #### Performance Impact 46 47 The default configuration for this integration is not expected to impose a significant performance impact on the system. 48 49 50 ## Metrics 51 52 Metrics grouped by *scope*. 53 54 The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels. 55 56 57 58 ### Per Go-ethereum instance 59 60 These metrics refer to the entire monitored application. 61 62 This scope has no labels. 63 64 Metrics: 65 66 | Metric | Dimensions | Unit | 67 |:------|:----------|:----| 68 | geth.eth_db_chaindata_ancient_io_rate | reads, writes | bytes/s | 69 | geth.eth_db_chaindata_ancient_io | reads, writes | bytes | 70 | geth.eth_db_chaindata_disk_io | reads, writes | bytes | 71 | geth.goroutines | goroutines | goroutines | 72 | geth.eth_db_chaindata_disk_io_rate | reads, writes | bytes/s | 73 | geth.chaindata_db_size | level_db, ancient_db | bytes | 74 | geth.chainhead | block, receipt, header | block | 75 | geth.tx_pool_pending | invalid, pending, local, discard, no_funds, ratelimit, replace | transactions | 76 | geth.tx_pool_current | invalid, pending, local, pool | transactions | 77 | geth.tx_pool_queued | discard, eviction, no_funds, ratelimit | transactions | 78 | geth.p2p_bandwidth | ingress, egress | bytes/s | 79 | geth.reorgs | executed | reorgs | 80 | geth.reorgs_blocks | added, dropped | blocks | 81 | geth.p2p_peers | peers | peers | 82 | geth.p2p_peers_calls | dials, serves | calls/s | 83 | geth.rpc_calls | failed, successful | calls/s | 84 85 86 87 ## Alerts 88 89 There are no alerts configured by default for this integration. 90 91 92 ## Setup 93 94 ### Prerequisites 95 96 No action required. 97 98 ### Configuration 99 100 #### File 101 102 The configuration file name for this integration is `go.d/geth.conf`. 103 104 105 You can edit the configuration file using the `edit-config` script from the 106 Netdata [config directory](https://github.com/netdata/netdata/blob/master/docs/configure/nodes.md#the-netdata-config-directory). 107 108 ```bash 109 cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata 110 sudo ./edit-config go.d/geth.conf 111 ``` 112 #### Options 113 114 The following options can be defined globally: update_every, autodetection_retry. 115 116 117 <details><summary>Config options</summary> 118 119 | Name | Description | Default | Required | 120 |:----|:-----------|:-------|:--------:| 121 | update_every | Data collection frequency. | 1 | no | 122 | autodetection_retry | Recheck interval in seconds. Zero means no recheck will be scheduled. | 0 | no | 123 | url | Server URL. | http://127.0.0.1:6060/debug/metrics/prometheus | yes | 124 | timeout | HTTP request timeout. | 1 | no | 125 | username | Username for basic HTTP authentication. | | no | 126 | password | Password for basic HTTP authentication. | | no | 127 | proxy_url | Proxy URL. | | no | 128 | proxy_username | Username for proxy basic HTTP authentication. | | no | 129 | proxy_password | Password for proxy basic HTTP authentication. | | no | 130 | method | HTTP request method. | GET | no | 131 | body | HTTP request body. | | no | 132 | headers | HTTP request headers. | | no | 133 | not_follow_redirects | Redirect handling policy. Controls whether the client follows redirects. | no | no | 134 | tls_skip_verify | Server certificate chain and hostname validation policy. Controls whether the client performs this check. | no | no | 135 | tls_ca | Certification authority that the client uses when verifying the server's certificates. | | no | 136 | tls_cert | Client TLS certificate. | | no | 137 | tls_key | Client TLS key. | | no | 138 139 </details> 140 141 #### Examples 142 143 ##### Basic 144 145 A basic example configuration. 146 147 ```yaml 148 jobs: 149 - name: local 150 url: http://127.0.0.1:6060/debug/metrics/prometheus 151 152 ``` 153 ##### HTTP authentication 154 155 Basic HTTP authentication. 156 157 <details><summary>Config</summary> 158 159 ```yaml 160 jobs: 161 - name: local 162 url: http://127.0.0.1:6060/debug/metrics/prometheus 163 username: username 164 password: password 165 166 ``` 167 </details> 168 169 ##### Multi-instance 170 171 > **Note**: When you define multiple jobs, their names must be unique. 172 173 Collecting metrics from local and remote instances. 174 175 176 <details><summary>Config</summary> 177 178 ```yaml 179 jobs: 180 - name: local 181 url: http://127.0.0.1:6060/debug/metrics/prometheus 182 183 - name: remote 184 url: http://192.0.2.1:6060/debug/metrics/prometheus 185 186 ``` 187 </details> 188 189 190 191 ## Troubleshooting 192 193 ### Debug Mode 194 195 To troubleshoot issues with the `geth` collector, run the `go.d.plugin` with the debug option enabled. The output 196 should give you clues as to why the collector isn't working. 197 198 - Navigate to the `plugins.d` directory, usually at `/usr/libexec/netdata/plugins.d/`. If that's not the case on 199 your system, open `netdata.conf` and look for the `plugins` setting under `[directories]`. 200 201 ```bash 202 cd /usr/libexec/netdata/plugins.d/ 203 ``` 204 205 - Switch to the `netdata` user. 206 207 ```bash 208 sudo -u netdata -s 209 ``` 210 211 - Run the `go.d.plugin` to debug the collector: 212 213 ```bash 214 ./go.d.plugin -d -m geth 215 ``` 216 217