-
Notifications
You must be signed in to change notification settings - Fork 837
Bug: Konga StatsD Plugin Issue #131
Comments
This issue is affecting us a lot as we cannot update the StatsD plugin from Konga. Even worse, if someone tries to do it, they will mess up our existing configuration. I can try making a fix but if you can give me some pointers on what to focus on, it would greatly help. I'm guessing you already know what the issue is but just in case, I've tracked it down to
177 if (fields[key].value instanceof Array) { As you can see, when dealing with an array, line 179 assumes that the array contains strings and joins them using a comma. With StatsD, the content of the array are objects. Here is the content of the default list of metrics as described in this issue: metrics: I'm not sure how to fix this because I don't yet understand what the konga server side is expecting to receive. Thanks |
Right, as I discussed with Pantsel on this on in a private chat these were his findings:
So we will need to look at the dif in formatting between 10.3 StatsD and 11.1. @pantsel said he should be back in action in February for cracking into some konga @marckhouzam . I am not entirely sure which Konga files need investigating for the change. |
To help out here I am dumping the format of the default Plugin configuration as seen in the cassandra DB(For Kong 11.2), hope this helps you with fixing the form formatting Pantsel! :)
|
@jeremyjpj0916 , @marckhouzam , this issue is fixed in v0.10.2. Feel free to reopen if things are not working as expected. |
Will test it out, currently running v 12.2 Kong so will see how it behaves if I tweak or edit the statsD objects in UI and report back. |
Tested with Kong 12.2 and it works great. I like the new interface for the StatsD plugin. Thanks for this fix! |
I am running kong 13.1 and it still doesn't work. |
Steps to replicate:
Kong: 11.1
Konga: 0.9.0
Already mentioned to pantsel, this is just for tracking purposes.
The text was updated successfully, but these errors were encountered: