grafana / k6-docs

The k6 documentation website.
https://grafana.com/docs/k6/latest/
84 stars 216 forks source link

Add support for VictoriaMetrics metrics storage backend #289

Open valyala opened 3 years ago

valyala commented 3 years ago

Feature Description

It would be great to add support for VictoriaMetrics as metrics storage backends for k6. VictoriaMetrics supports data ingestion via Influx line protocol (see these docs). It supports PromQL-based query language - MetricsQL, which is better suited for typical monitoring tasks and graph building than InfluxQL or Flux. See this PromQL tutorial for details. VictoriaMetrics is compatible with Prometheus datasource in Grafana - see these docs.

imiric commented 3 years ago

Hi, it looks interesting, I wasn't familiar with the project.

If it supports the Influx line protocol, then it should be supported by k6 already, no?

We're trying to limit the amount of output backends k6 supports directly, in favor of generic protocols that are supported by more than one service, so it's unlikely support for this will be part of k6 core. That said, it could be easily used as an output extension.

valyala commented 3 years ago

If it supports the Influx line protocol, then it should be supported by k6 already, no?

Yes - it should work OK on data ingestion side. As for data querying side, then the output extension for VictoriaMetrics looks like a way to go.

na-- commented 3 years ago

I see that VictoriaMetrics also supports statsd metrics, which k6 is capable of outputting, and supports Prometheus remote_write, which we plan to add in k6 (https://github.com/k6io/k6/issues/1761). So, given that we currently have 2 ways to send data to it, and we plan to have a 3rd one in the near future, I'll move this issue to the docs repo - I don't think we need a 4th way to send data to it, but should document the ones we already have... :sweat_smile:

simskij commented 3 years ago

@valyala, we'd love a pull request adding information on how to use it with VictoriaMetrics! 👍🏽

patsevanton commented 6 months ago

A useful feature.