add support for new meter type (#44)
a metrics backend for swift-metrics that uses the statsd protocol, and can be used to integrate applications with observability solutions that support statsd including:
statsd
Create an instance of the StatsdClient and boostrap the MetricsSystem in your application’s main:
StatsdClient
MetricsSystem
main
let statsdClient = try StatsdClient(host: host, port: port) MetricsSystem.bootstrap(statsdClient)
See selecting a metrics backend implementation for more information.
Remember to also shutdown the client before you application terminates:
statsdClient.shutdown()
StatsdClient uses SwiftNIO to establish a UDP connection to the statsd server.
Metrics types are mapped as following:
Please see SECURITY.md for details on the security process.
Do not hesitate to get in touch as well, over on https://forums.swift.org/c/server
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SwiftStatsDClient
a metrics backend for swift-metrics that uses the statsd protocol, and can be used to integrate applications with observability solutions that support
statsd
including:Getting started
Create an instance of the
StatsdClient
and boostrap theMetricsSystem
in your application’smain
:See selecting a metrics backend implementation for more information.
Remember to also shutdown the client before you application terminates:
Architecture
StatsdClient
uses SwiftNIO to establish a UDP connection to thestatsd
server.Metrics types are mapped as following:
Security
Please see SECURITY.md for details on the security process.
Getting involved
Do not hesitate to get in touch as well, over on https://forums.swift.org/c/server