I’m trying loadtesting on grpc endpoint.
I exported metrics to DataDog following the procedure on document and almost everything goes fine, but I’m in trouble that I wrote in title.
Is it normal behavior? (or something I try exist?)
Thanks for your help in advance.
This is likely caused by the known issue #1833. Unfortunately, the vus metric is emitted in a different way from the rest of the metrics, which is why it’s not tagged as the rest.
I tried doing a workaround with a custom metric and the k6/execution module.
import { Gauge } from 'k6/metrics';
import exec from 'k6/execution';
const myVUs = new Gauge('my_vus');
export default function() {
myVUs.add(exec.instance.vusActive, { scenario: exec.scenario.name });
...
}
But for some reason I’m not seeing the tag in Datadog, while it appears fine in the JSON output :
I’m not sure if there’s a way to make this work, but maybe someone else has a better idea. In the meantime, you can subscribe to the GitHub issue to get notified when this is fixed. It’s currently not a high priority, but you can vote for it with a and we’ll plan it for an upcoming release.
EDIT: Ah, the custom metric workaround does actually work