-
Notifications
You must be signed in to change notification settings - Fork 50
Pushing the name field (instead of the url) into influxdb name tag to prevent index flood #125
Comments
We successfully added manually a name tag to each request. |
@nio101 I'm experiencing similar problems with K6 and the reporting in InfluxDB/grafana. I was already working on a PR to allow such behaviour, but I what would you prefer:
|
@thim81 : as to me, the latter (request name + postman folder name) would be the best solution. |
@nio101 That way I'm sure that what is generated is matching with the correct tags for influxdb. |
Hello @thim81, a example of tag added manually : postman[Request]({
...
name: "save order content without customer - Error 40017",
headers: {
Accept: "application/json"
},
tags: { name: 'save order content without customer - Error 40017'},
...
}); |
@nio101 @flegris-orange the basic code to include tags, is pretty much finished. I wanted some input on the cli config and was playing around with providing a tagging strategy CLI parameter. Example: To support the 3 strategies:
What do you think or what did you expected as config option? |
That seems great to me! :) |
I have provided a forked NPM package version that contains the feature to set K6 request tags. Replace in your packages.json:
to
Question for you: I'm curious which dashboards you are using? I'm using one of the public K6 Grafana dashboard, but looking for more complete ones. |
Great! Thank you! :)
Here is the grafana dashboard I did, I'm using it on a daily basis: https://gist.github.com/nio101/08ed091ea154a7dcb664c218a41cd25f |
@nio101 Thanks for sharing your Grafana Dashboard. It looks great, although I havent been able to get it show actual data, since when altering the InfluxDB sources, the browser keeps stuck at loading. You should publish it on the Grafana https://grafana.com/grafana/dashboards?search=K6, since others might also like it that struggle to display K6 results. This is my current dashboard: I'm trying to find a way to show the checks as well, but it is not easy. |
@nio101 Could you also give a bit more info on the "scenario UC1 & UC2"? I'm curious to see how you use it. |
Yes, if you have a look at the Variables definition, you'll see that the dashboard is extracting all the different scenarios, groups and requests name tag values to fill in the corresponding variables. You can ignore the container variable and the openshift metrics... The debug details tab will bring long requests details, and also low level and http errors details for debugging. note: if you already have some data in your influxdb with lots of requests whose name tag has not been set in your scripts, they may have been set at the url by default, and if your url is varying each time, you index is full of different values and the dashboard may then freeze when trying to request influxb for the name tag when loading ... in that case, just clear influxdb and set the name tag for every request in your scripts... :) 'Scenario UC1&UC2' might just be the last value used when exporting the dashboard json... And yes, I should share it with the community through the grafana website, I never took the time to do so, some cleaning and info should come along with it also... :) |
@nio101 I'm still running into 2 things that I dont know how fix: Which widget, needs the promotheus DBM? Since I only have InfluxDB, I want to remove the widget How do you alter these filters? |
@nio101 It works now 🚀 , after I removed the Namespace/container/pod and changed the variables datasource. It all works without any Grafana errors. My browers still has difficulties loading all the data, but that can be sorted out. Thanks for sharing and helping out. |
Great! Thanks for helping us sorting out this converter limitation! :) |
I finally took some time: https://grafana.com/grafana/dashboards/15030 :) |
@thim81 I have tested the two proposed strategies (request and folder-request) it works as expected. Thanks a lot. |
@thim81 Great work, thanks! Could you please add support for |
@sasha240100 I ll have a look. Could you share a sample what you would expect from the generated K6 script, a single request would be sufficient? |
@sasha240100 I had a look at the available https://k6.io/docs/using-k6/tags-and-groups/ but Example: --requestTag=test_run_id --requestTagValue=1234567 |
Apologies for the inactivity on this project. Due to the inability to properly support this project, the k6 team has decided not to continue its development. The primary reason is that k6 scope has grown significantly with the launch of k6 extensions. The team is prioritizing extending k6 capabilities over the converters. We suggest you post your issue at api-deck/postman-to-k6. The project is active and maintained on this fork. |
Hello,
We are using the converter, but upon running the generated script with k6, the name tags in influxdb for our requests are set to the url of the request, and as our url changes everytime, it floods influxdb (index with so many different values) and make the script unusable.
Is there any way to easily set the pushed tag name, or to disable this url to name tag redirection mechanism, or to have the converter use the proper name field of the request instead of the always changing url?
Thanks.
The text was updated successfully, but these errors were encountered: