grafana / k6

A modern load testing tool, using Go and JavaScript - https://k6.io
GNU Affero General Public License v3.0
25.16k stars 1.25k forks source link

Prometheus client and output support unix sock. #3349

Closed fly3366 closed 11 months ago

fly3366 commented 1 year ago

Feature Description

now client in xk6 prometheus plugin only support http client without unix dial context. plz support it where someone need remote write to a unix sock, which listen by prometheus locally.

Suggested Solution (optional)

in remote package use unix dial when url parse a unix:// schema.

Already existing or connected issues / PRs (optional)

No response

codebien commented 1 year ago

Hey @fly3366, it's not clear to me which is the library you are referring to.

Do you want to directly write to your Prometheus instance via remote write some arbitrary data so using https://github.com/grafana/xk6-client-prometheus-remote or do you want to flush the k6's metrics to your Prometheus instance so https://github.com/grafana/xk6-output-prometheus-remote?

codebien commented 11 months ago

Closing, feel free to re-open providing more details.