commit | a6bce7ec7e30ca65c6bf82e7a9956eab8cb88173 | [log] [tgz] |
---|---|---|
author | Daming <zteny@foxmail.com> | Sat Apr 17 22:43:52 2021 +0800 |
committer | GitHub <noreply@github.com> | Sat Apr 17 22:43:52 2021 +0800 |
tree | bc05a49694cde7c677697c1166a0c89a0cfdfcb9 | |
parent | cedfbd0816596d538968105f9902dc81d6111c87 [diff] |
polish docs (#1)
SkyWalking Kong agent built on SkyWalking Nginx Lua agent to trace Kong API gateway to integrate with the Apache SkyWalking distributed tracing system.
Install kong-plugin-skywalking using luarocks
:
$ luarocks install kong-plugin-skywalking --local
Edit kong.conf:
plugins = bundled,skywalking lua_package_path = ${user.home}/.luarocks/share/lua/5.1/?.lua;;
Set environment:
$ export KONG_NGINX_HTTP_LUA_SHARED_DICT="tracing_buffer 128m"
Restart Kong
Add the plugin to a service:
$ curl -i -X POST \ --url http://localhost:8001/services/{service_name}/plugins/ \ --data 'name=skywalking' \ --data 'config.backend_http_uri=http://localhost:12800' \ --data 'config.sample_ratio=100' \ --data 'config.service_name=kong' --data 'config.service_instance_name=kong-with-skywalking'
Add the plugin to global:
$ curl -X POST --url http://localhost:8001/plugins/ \ --data 'name=skywalking' \ --data 'config.backend_http_uri=http://localhost:12800' \ --data 'config.sample_ratio=100' \ --data 'config.service_name=kong' --data 'config.service_instance_name=kong-with-skywalking'
[KONG]
as the issue title prefix.dev-subscribe@skywalking.apache.org
, follow the reply to subscribe the mail list.skywalking
channel at Apache Slack. If the link is not working, find the latest one at Apache INFRA WIKI.Apache 2.0