2021-09-24 01:15:43 +08:00
|
|
|
# Twemproxy Input Plugin
|
|
|
|
|
|
2022-06-09 05:22:56 +08:00
|
|
|
The `twemproxy` plugin gathers statistics from
|
|
|
|
|
[Twemproxy](https://github.com/twitter/twemproxy) servers.
|
2021-09-24 01:15:43 +08:00
|
|
|
|
2022-10-27 03:58:36 +08:00
|
|
|
## Global configuration options <!-- @/docs/includes/plugin_config.md -->
|
|
|
|
|
|
|
|
|
|
In addition to the plugin-specific configuration settings, plugins support
|
|
|
|
|
additional global and plugin configuration settings. These settings are used to
|
|
|
|
|
modify metrics, tags, and field or create aliases and configure ordering, etc.
|
|
|
|
|
See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
|
|
|
|
|
|
2023-01-12 23:55:21 +08:00
|
|
|
[CONFIGURATION.md]: ../../../docs/CONFIGURATION.md#plugins
|
2022-10-27 03:58:36 +08:00
|
|
|
|
2021-11-25 02:50:13 +08:00
|
|
|
## Configuration
|
2021-09-24 01:15:43 +08:00
|
|
|
|
2022-05-24 21:49:47 +08:00
|
|
|
```toml @sample.conf
|
2021-09-24 01:15:43 +08:00
|
|
|
# Read Twemproxy stats data
|
|
|
|
|
[[inputs.twemproxy]]
|
|
|
|
|
## Twemproxy stats address and port (no scheme)
|
|
|
|
|
addr = "localhost:22222"
|
|
|
|
|
## Monitor pool name
|
|
|
|
|
pools = ["redis_pool", "mc_pool"]
|
|
|
|
|
```
|
2023-02-09 18:04:41 +08:00
|
|
|
|
|
|
|
|
## Metrics
|
|
|
|
|
|
|
|
|
|
## Example Output
|