2017-11-02 04:28:00 +08:00
|
|
|
# Teamspeak 3 Input Plugin
|
|
|
|
|
|
2022-06-09 05:22:56 +08:00
|
|
|
This plugin uses the Teamspeak 3 ServerQuery interface of the Teamspeak server
|
|
|
|
|
to collect statistics of one or more virtual servers. If you are querying an
|
|
|
|
|
external Teamspeak server, make sure to add the host which is running Telegraf
|
|
|
|
|
to query_ip_allowlist.txt in the Teamspeak Server directory. For information
|
|
|
|
|
about how to configure the server take a look the [Teamspeak 3 ServerQuery
|
|
|
|
|
Manual][1].
|
|
|
|
|
|
|
|
|
|
[1]: http://media.teamspeak.com/ts3_literature/TeamSpeak%203%20Server%20Query%20Manual.pdf
|
2017-11-02 04:28:00 +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
|
2017-11-02 04:28:00 +08:00
|
|
|
|
2022-05-24 21:49:47 +08:00
|
|
|
```toml @sample.conf
|
2017-11-02 04:28:00 +08:00
|
|
|
# Reads metrics from a Teamspeak 3 Server via ServerQuery
|
|
|
|
|
[[inputs.teamspeak]]
|
|
|
|
|
## Server address for Teamspeak 3 ServerQuery
|
|
|
|
|
# server = "127.0.0.1:10011"
|
|
|
|
|
## Username for ServerQuery
|
|
|
|
|
username = "serverqueryuser"
|
|
|
|
|
## Password for ServerQuery
|
|
|
|
|
password = "secret"
|
2022-04-14 00:06:01 +08:00
|
|
|
## Nickname of the ServerQuery client
|
|
|
|
|
nickname = "telegraf"
|
2017-11-02 04:28:00 +08:00
|
|
|
## Array of virtual servers
|
|
|
|
|
# virtual_servers = [1]
|
|
|
|
|
```
|
|
|
|
|
|
2022-06-09 05:22:56 +08:00
|
|
|
## Metrics
|
2017-11-02 04:28:00 +08:00
|
|
|
|
|
|
|
|
- teamspeak
|
2021-11-25 02:50:13 +08:00
|
|
|
- uptime
|
|
|
|
|
- clients_online
|
|
|
|
|
- total_ping
|
|
|
|
|
- total_packet_loss
|
|
|
|
|
- packets_sent_total
|
|
|
|
|
- packets_received_total
|
|
|
|
|
- bytes_sent_total
|
|
|
|
|
- bytes_received_total
|
|
|
|
|
- query_clients_online
|
|
|
|
|
|
2022-06-09 05:22:56 +08:00
|
|
|
### Tags
|
2017-11-02 04:28:00 +08:00
|
|
|
|
|
|
|
|
- The following tags are used:
|
2021-11-25 02:50:13 +08:00
|
|
|
- virtual_server
|
|
|
|
|
- name
|
2017-11-02 04:28:00 +08:00
|
|
|
|
2022-06-09 05:22:56 +08:00
|
|
|
## Example Output
|
2017-11-02 04:28:00 +08:00
|
|
|
|
2023-04-04 19:43:49 +08:00
|
|
|
```text
|
2021-03-17 04:48:19 +08:00
|
|
|
teamspeak,virtual_server=1,name=LeopoldsServer,host=vm01 bytes_received_total=29638202639i,uptime=13567846i,total_ping=26.89,total_packet_loss=0,packets_sent_total=415821252i,packets_received_total=237069900i,bytes_sent_total=55309568252i,clients_online=11i,query_clients_online=1i 1507406561000000000
|
2021-11-25 02:50:13 +08:00
|
|
|
```
|