martymarron / xk6-output-prometheus-pushgateway Goto Github PK
View Code? Open in Web Editor NEWThis is a k6 extension for publishing test-run metrics to Prometheus via Pushgateway.
License: Apache License 2.0
This is a k6 extension for publishing test-run metrics to Prometheus via Pushgateway.
License: Apache License 2.0
When you add new func (labels) my tests run but always get error. When I start them up, I immediately get an error display:
level=error msg="Could not add to pushgateway" component=output-prometheus-pushgateway error="1008 error(s) occurred: collected metric "checks" { gauge:value:1 } was collected before with the same name and label values .... for all metrics. I deleted all custom metrics from my code and got same errors.
I set my dockerfile and set up build to tag v0.1.1 - tests and custom metrics work.
Additional question how labels work, if I want to have for example for custom metrics label named "aaa" to have the status of each request sent, it is possible to do this? Needs this for my grafana :)
built k6 according to README
xk6 build --with github.com/martymarron/xk6-output-prometheus-pushgateway@latest
trying to start test according to README, but getting this error:
invalid output type 'output-prometheus-pushgateway', available types are: cloud, csv, experimental-prometheus-rw, influxdb, json, statsd
First off, thanks for the extension!
What would be needed to support the metrics used in the official k6 Grafana dashboard?
I was able to get VUs metrics to show up with the following env var K6_PUSHGATEWAY_NAMESPACE=k6
, but it seems like there are some aggregated metrics with _total
suffix not being emitted by this extension.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.