Sign inSign up

goodsmileduck/mtproto_proxy_exporter

By goodsmileduck

Updated almost 8 years ago

mtproto_proxy_exporter for mtproto proxy

Image
0

254

goodsmileduck/mtproto_proxy_exporter repository overview

MTProto Proxy Exporter

Go Report Card Build Status

Prometheus exporter for MTProto Proxy Stats. At this moment working only with simple numeric values.

Configuration

Configuration must be stored in YAML file and passed through -config command. Sample configuration can be viewed with -help command.

address:         ":8080"
stats_address:   "http://localhost:2398/stats"
interval:        5
request_timeout: 10

metrics:
  - stat_name: "total_special_connections"
    name:      "mtproto_proxy_users_count"
    help:      "Users count"

  - stat_name: "active_connections"
    name:      "mtproto_active_connections_count"
    help:      "Active connections count"

  - stat_name: "uptime"
    name:      "mtproto_proxy_uptime"
    help:      "Uptime"
PropertyTypeDescription
addressStringListening address
stats_addressStringMTProto Proxy stats URL
intervalIntScan interval
metricsMetric[]Mapping items
PropertyTypeDescription
stat_nameStringInput MTProto Proxy stat name
nameStringOutput Prometheus metric name
helpStringOutput Prometheus metric help

Building and running

go get github.com/Ty3uK/mtproto_proxy_exporter
cd $GOPATH/github.com/Ty3uK/mtproto_proxy_exporter
go build mtproto_proxy_exporter.go
./mtproto_proxy_exporter

To see config file help:

./mtproto_proxy_exporter -help

Tag summary

Content type

Image

Digest

Size

167.4 MB

Last updated

almost 8 years ago

docker pull goodsmileduck/mtproto_proxy_exporter