You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/04/26 08:47:01 UTC

[GitHub] [skywalking] kasimLZ opened a new issue #6839: [KONG]

kasimLZ opened a new issue #6839:
URL: https://github.com/apache/skywalking/issues/6839


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [x] Question or discussion
   - [x] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   
   I installed a skywalking plugin on my service in kong. I would like to use it to monitor my ES cluster. 
   
   The skywalking configuraion like this.
   ```json
    "config": {
       "service_name": "Kong Service",
       "sample_ratio": 1,
       "namespace": null,
       "max_callback_time_spent": 5000,
       "service_instance_name": "Kong Service Instance",
       "backend_http_uri": "http://192.168.1.101:12800"
     }
   ```
   
   I sure about that back end URL is accessible.
   
   But when I switch on this plugin, the kong gateway will throw a error message like this:
   ```json
   {
       "message": "An unexpected error occurred"
   }
   ```
   
   I checked  the proxy error log. follow this
   
   ```
   2021/04/26 08:15:13 [error] 24#0: *254687 [kong] init.lua:271 [skywalking] ...uarocks/share/lua/5.1/kong/plugins/skywalking/tracer.lua:72: attempt to concatenate local 'namespace' (a nil value), client: 192.168.1.250, server: kong, request: "POST /myindex/_search HTTP/1.1", host: "192.168.1.1:9200"
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] kasimLZ commented on issue #6839: [KONG] Skywalking agent plugin for Kong throw an exception

Posted by GitBox <gi...@apache.org>.
kasimLZ commented on issue #6839:
URL: https://github.com/apache/skywalking/issues/6839#issuecomment-826733293


   I follow this document [README.md](https://github.com/apache/skywalking-kong/blob/master/README.md) to install the plugin.
   
   I repackaged the image based on kong:2.4.0. This is my dockerfile:
   ```Dockerfile
   FROM kong:2.4.0
   
   RUN luarocks install kong-plugin-skywalking --local
   
   ENV KONG_NGINX_HTTP_LUA_SHARED_DICT="tracing_buffer 128m"
   
   ENTRYPOINT ["/docker-entrypoint.sh"]
   
   EXPOSE 8000 8001 8443
   
   STOPSIGNAL SIGQUIT
   
   CMD ["kong", "docker-start"]
   ```
   
   Then I can see the Skywalking-Kong plugins in konga.  Did I install a wrong plugin?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #6839: [KONG] Skywalking agent plugin for Kong throw an exception

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #6839:
URL: https://github.com/apache/skywalking/issues/6839


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6839: [KONG] Skywalking agent plugin for Kong throw an exception

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6839:
URL: https://github.com/apache/skywalking/issues/6839#issuecomment-826671427


   Which codes are you using? I don't think SkyWalking has a Kong plugin release.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] dmsolr commented on issue #6839: [KONG] Skywalking agent plugin for Kong throw an exception

Posted by GitBox <gi...@apache.org>.
dmsolr commented on issue #6839:
URL: https://github.com/apache/skywalking/issues/6839#issuecomment-826714139


   I am sure Skywalking-Kong agent does not have these two configurations, `namespace` or `max_callback_time_spent`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] dmsolr commented on issue #6839: [KONG] Skywalking agent plugin for Kong throw an exception

Posted by GitBox <gi...@apache.org>.
dmsolr commented on issue #6839:
URL: https://github.com/apache/skywalking/issues/6839#issuecomment-826743763


   Hi @kasimLZ 
   I found two unnecessary items in the configurations you provided. You need to remove `namespace` and `max_callback_time_spent`. 
   ```
    "config": {
       "service_name": "Kong Service",
       "sample_ratio": 1,
       "service_instance_name": "Kong Service Instance",
       "backend_http_uri": "http://192.168.1.101:12800"
     }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org