Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526
  1. package stats
  2. const (
  3. DefaultMetricPrefix = "mtg"
  4. DefaultStatsdMetricPrefix = DefaultMetricPrefix + "."
  5. DefaultStatsdTagFormat = "datadog"
  6. MetricClientConnections = "client_connections"
  7. MetricTelegramConnections = "telegram_connections"
  8. MetricTraffic = "traffic"
  9. MetricSessionDuration = "session_duration"
  10. MetricSessionTraffic = "session_traffic"
  11. MetricConcurrencyLimited = "concurrency_limited"
  12. MetricIPBlocklisted = "ip_blocklisted"
  13. TagIPType = "ip_type"
  14. TagTelegramIP = "ip"
  15. TagDC = "dc"
  16. TagDirection = "direction"
  17. TagIPTypeIPv4 = "ipv4"
  18. TagIPTypeIPv6 = "ipv6"
  19. TagDirectionTelegram = "telegram"
  20. TagDirectionClient = "client"
  21. )