Skip to content

metwork-framework/lua-resty-statsd

 
 

lua-resty-statsd

Status

Experimental

What is it ?

This is a fork of lua-resty-stats.

The referenced project does not work at all for us but is built on good ideas. We plan to maintain this fork with some modifications for our use case.

But we are waiting for license clarification for the moment.

Usage

init_worker_by_lua_block {
  statsd = require("resty.statsd").new({host="127.0.0.1", port=12345, delay=100})
}

server {
  log_by_lua_block{
    statsd.count(statsd, "requests", 1, 1, {tag1="foo1", tag2="foo2"})
  }
}

About

Statsd client for OpenResty

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 80.9%
  • Shell 17.2%
  • Makefile 1.9%