mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 04:05:49 +00:00
Configure statsd: copy-edits
This commit is contained in:
@@ -6,27 +6,31 @@
|
|||||||
|
|
||||||
To enable StatsD on your `rippled` server, perform the following steps:
|
To enable StatsD on your `rippled` server, perform the following steps:
|
||||||
|
|
||||||
1. Set up a `rippledmon` instance on another machine to receive and aggregate stats. For more information about configuring `rippledmon`, see the [`rippledmon` repository](https://github.com/ripple/rippledmon).
|
1. Set up a `rippledmon` instance on another machine to receive and aggregate stats.
|
||||||
|
|
||||||
$ git clone https://github.com/rippled/rippledmon.git
|
$ git clone https://github.com/rippled/rippledmon.git
|
||||||
$ cd rippledmon
|
$ cd rippledmon
|
||||||
$ docker-compose up
|
$ docker-compose up
|
||||||
|
|
||||||
Make sure [Docker](https://docs.docker.com/) and [Docker Compose](https://docs.docker.com/compose/install/) are installed on your machine when performing the steps above.
|
Make sure [Docker](https://docs.docker.com/) and [Docker Compose](https://docs.docker.com/compose/install/) are installed on your machine when performing the steps above. For more information about configuring `rippledmon`, see the [`rippledmon` repository](https://github.com/ripple/rippledmon).
|
||||||
|
|
||||||
0. Add the `[insight]` stanza to your `rippled`'s config file. For the address, use the IP `address` and port where `rippledmon` is listening. By default, this port is 8125. For the prefix, choose a name that identifies the rippled server you are configuring. The prefix will appear on all of the StatsD metrics exported from this server. With the configuration below, metrics would appear as `my_rippled.metric_name`. The prefix must not include whitespace, colons ":", or the vertical bar "|".
|
0. Add the `[insight]` stanza to your `rippled`'s config file.
|
||||||
|
|
||||||
[insight]
|
[insight]
|
||||||
server=statsd
|
server=statsd
|
||||||
address=192.0.2.0:8125
|
address=192.0.2.0:8125
|
||||||
prefix=my_rippled
|
prefix=my_rippled
|
||||||
|
|
||||||
|
- For the `address`, use the IP address and port where `rippledmon` is listening. By default, this port is 8125.
|
||||||
|
- For the `prefix`, choose a name that identifies the `rippled` server you are configuring. The prefix must not include whitespace, colons ":", or the vertical bar "|". The prefix appears on all of the StatsD metrics exported from this server.
|
||||||
|
|
||||||
|
{% include '_snippets/conf-file-location.md' %}<!--_ -->
|
||||||
|
|
||||||
0. Restart the `rippled` service.
|
0. Restart the `rippled` service.
|
||||||
|
|
||||||
$ sudo systemctl restart rippled
|
$ sudo systemctl restart rippled
|
||||||
|
|
||||||
0. Check that the metrics are being exported by executing the following command.
|
0. Check that the metrics are being exported:
|
||||||
|
|
||||||
$ tcpdump -i en0 | grep UDP
|
$ tcpdump -i en0 | grep UDP
|
||||||
|
|
||||||
@@ -36,9 +40,9 @@ Sample Output:
|
|||||||
|
|
||||||
00:41:53.066333 IP 192.0.2.2.63409 > 192.0.2.0.8125: UDP, length 196
|
00:41:53.066333 IP 192.0.2.2.63409 > 192.0.2.0.8125: UDP, length 196
|
||||||
|
|
||||||
Assuming you are using the default destination port in your config file, you should periodically see the 8125 suffix on the destination address.
|
You should periodically see messages indicating outbound traffic to the configured address and port of your `rippledmon` instance.
|
||||||
|
|
||||||
For descriptions of each StatsD metric see the `rippledmon` [repository](https://github.com/ripple/rippledmon)
|
For descriptions of each StatsD metric, see the [`rippledmon` repository](https://github.com/ripple/rippledmon).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -51,12 +55,6 @@ For descriptions of each StatsD metric see the `rippledmon` [repository](https:/
|
|||||||
- **Tutorials:**
|
- **Tutorials:**
|
||||||
- [Install `rippled`](install-rippled.html)
|
- [Install `rippled`](install-rippled.html)
|
||||||
- [Capacity Planning](capacity-planning.html)
|
- [Capacity Planning](capacity-planning.html)
|
||||||
|
|
||||||
- **References:**
|
- **References:**
|
||||||
- [server_info method](server_info.html)
|
- [server_info method](server_info.html)
|
||||||
- [print method](print.html)
|
- [print method](print.html)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user