You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With K6, using thresholds to indicate potential issues with load is a common practice with the load testing. Looking at the k6 summary in our logs, show whether the thresholds passed or failed. When using the prometheus output, the thresholds are not pushed up into prometheus, or at least we are not able to find them. This seems to be a big piece of testing information that is missing if we choose to output to Prometheus. We did try using the xk6-output-timescaledb output, and it writes the information to a thresholds table that is used in the sample dashboard. We prefer using PromQL, so we would like to be able to see the thresholds in Grafana. I believe we can manually setup thresholds in the dashboard, but that would be a static threshold that can't be defined in our k6 test script or option file. Are we missing something obvious, or are there plans to add thresholds in the future?
The text was updated successfully, but these errors were encountered:
Hi @xendren,
you're right, at the moment the Prometheus remote write output doesn't support the Thresholds export. In the future, we could add this feature making Prometheus rw output aligned with the TimescaleDB's feature set.
How do you expect to see this feature implemented? Does it work for you for a Gauge metric exporting the status of thresholds where the single time series is based on the metric monitored by k6 and the expression set on it, like the following example?
k6_thresholds{metric="http_req_duration", expression="p(95) < 800"} 1 where 0 equals pass and 1 equals fail
I don't expect this feature will be enabled by default so a k6 option would be required for an explicit set of the Thresholds export.
With K6, using thresholds to indicate potential issues with load is a common practice with the load testing. Looking at the k6 summary in our logs, show whether the thresholds passed or failed. When using the prometheus output, the thresholds are not pushed up into prometheus, or at least we are not able to find them. This seems to be a big piece of testing information that is missing if we choose to output to Prometheus. We did try using the xk6-output-timescaledb output, and it writes the information to a thresholds table that is used in the sample dashboard. We prefer using PromQL, so we would like to be able to see the thresholds in Grafana. I believe we can manually setup thresholds in the dashboard, but that would be a static threshold that can't be defined in our k6 test script or option file. Are we missing something obvious, or are there plans to add thresholds in the future?
The text was updated successfully, but these errors were encountered: