Giter Club home page Giter Club logo

dingtalk's Introduction

sensor日志监控sdk lua版

概述

该SDK是用于广告等接口提供日志监控服务的lua版sdk

注意

  • **该sdk会在服务器端缓存1k的日志,需要在服务器开启lua_shared_dict
  • **luajit版本目前兼容lua 5.1 API+ABI, 需要安装luasocket的2.0.2版本

安装需求

  • **luaJIT
  • **luasocket

版本

接入指南

(一)参数说明

参数 值类型 默认值 说明
disabled boolean false 是否关闭采样服务
buffer_key string sensor_log 日志缓存名称

(二)配置说明

参数 值类型 默认值 说明
buffer_size integer 1024 日志缓存大小
sensor_server.host string 10.79.80.109(测试ip) 日志服务器ip
sensor_server.port integer 29981 日志服务器监听端口号
prefix.*.key string acc.sso.、gauge.sso.、spl.sso. 日志记录前缀
prefix.*.rule string ACC、NUM udp协议规则前缀

(三)接入代码示例

http {

		lua_shared_dict buffer 1m 


        server {
                
			location /sensor {
 
                	content_by_lua '

						local cfg = {

						}
					    client = require "src.client"
						hc = client.new(cfg)
						hc:acc("api.ceshi.cc.ok", 1) 
               		';
               } 
        }
}

dingtalk's People

Contributors

ftdream avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.