|
|
|
|
|
|
145
|
port 3129 will show you some statistics if you are interested in.
|
145
|
port 3129 will show you some statistics if you are interested in.
|
|
146
|
|
146
|
|
|
147
|
Also, you can use [run-mtg.sh](https://github.com/9seconds/mtg/blob/master/run-mtg.sh) script
|
147
|
Also, you can use [run-mtg.sh](https://github.com/9seconds/mtg/blob/master/run-mtg.sh) script
|
|
|
|
148
|
+
|
|
|
|
149
|
+
|
|
|
|
150
|
+# statsd integration
|
|
|
|
151
|
+
|
|
|
|
152
|
+mtg provides an integration with statsd, you can enable it with command
|
|
|
|
153
|
+line interface. To enable it, you have to provide IP address of statsd
|
|
|
|
154
|
+service.
|
|
|
|
155
|
+
|
|
|
|
156
|
+Out of the box, mtg supports 2 additional dialects: [InfluxDB](https://www.influxdata.com/blog/getting-started-with-sending-statsd-metrics-to-telegraf-influxdb/)
|
|
|
|
157
|
+and [Datadog](https://docs.datadoghq.com/developers/dogstatsd/).
|
|
|
|
158
|
+
|
|
|
|
159
|
+All metrics are gauges. Here is the list of metrics and their meaning:
|
|
|
|
160
|
+
|
|
|
|
161
|
+| Metric name | Unit | Description |
|
|
|
|
162
|
+|---------------------------------|---------|-----------------------------------------------------------|
|
|
|
|
163
|
+| `connections.abridged.ipv4` | number | The number of active abridged IPv4 connections |
|
|
|
|
164
|
+| `connections.abridged.ipv6` | number | The number of active abridged IPv6 connections |
|
|
|
|
165
|
+| `connections.intermediate.ipv4` | number | The number of active intermediate IPv4 connections |
|
|
|
|
166
|
+| `connections.intermediate.ipv6` | number | The number of active intermediate IPv6 connections |
|
|
|
|
167
|
+| `connections.secure.ipv4` | number | The number of active secure intermediate IPv4 connections |
|
|
|
|
168
|
+| `connections.secure.ipv6` | number | The number of active secure intermediate IPv6 connections |
|
|
|
|
169
|
+| `crashes` | number | An amount of crashes in client handlers |
|
|
|
|
170
|
+| `traffic.ingress` | bytes | Ingress traffic from the start of application (incoming) |
|
|
|
|
171
|
+| `traffic.egress` | bytes | Egress traffic from the start of application (outgoing) |
|
|
|
|
172
|
+| `speed.ingress` | bytes/s | Ingress bandwidth of the latest second (incoming traffic) |
|
|
|
|
173
|
+| `speed.egress` | bytes/s | Egress bandwidth of the latest second (outgoing traffic) |
|
|
|
|
174
|
+
|
|
|
|
175
|
+All metrics are prefixed with given prefix. Default prefix is `mtg`.
|
|
|
|
176
|
+With such prefix metric name `traffic.ingress`, for example, would be
|
|
|
|
177
|
+`mtg.traffic.ingress`.
|