grafana / xk6-output-timescaledb Goto Github PK
View Code? Open in Web Editor NEWk6 extension to output real-time test metrics to TimescaleDB.
License: Apache License 2.0
k6 extension to output real-time test metrics to TimescaleDB.
License: Apache License 2.0
Update k6 to 0.38.0
once it released
https://github.com/grafana/xk6-output-timescaledb/pull/7/files#r852767434
Keep go.mod
clean
Improve upon the currently provided dashboards (samples/
).
Another goal for this change would be to align the look-and-feel for the Timescale-backed dashboard (this extension), the xk6-output-influxdb, and xk6-output-prometheus-remote possibly with the output provided by the k6 Cloud App. This would provide a consistent user experience for the varied data sources.
Ideally, this dashboard would be promoted to the Grafana site as the "official" dashboard for displaying k6 metrics backed by TimescaleDB datasources.
This issue may supersede the need for #5.
Hello,
I've been attempting to build a Docker image using your Dockerfile from the xk6-output-timescaledb
repository (link: https://github.com/grafana/xk6-output-timescaledb/blob/main/Dockerfile), but I've run into an issue.
During the image build process, the build fails on the step RUN CGO_ENABLED=0 xk6 build --with github.com/grafana/xk6-output-timescaledb=. --output /tmp/k6
, with an error indicating the github.com/grafana/xk6-output-timescaledb
module cannot be found.
Could you assist in understanding how I can successfully build this Docker image with this extension? Is there anything I may have overlooked in the documentation or the structure of your project?
Thank you for your help.
We have a test running at ~1200 req/s with 1 K vu. It runs from a 16 Gb memory 8 core EC2 of some sort on Ubuntu Linux.
The test itself is a rather simple two-request use case.
It ramps up fine to the max rate over 20 min so a pretty slow ramp up.
Once at max it just gobbles up memory until it runs out.
Running the same test using no output except the console summary consumes some 7% total of the memory.
Running the same test setting the K6_TIMESCALEDB_PUSH_INTERVAL to 500ms or even shorter makes the test work. It still uses a lot of memory but not as much.
We would like to optimize memory usage a bit better so as not to consume such large amounts of memory.
A self sizing reporting window could be one possibility.
With a well scaled db reverting the connection pool and having parallel connections to the db would also work very well. The db has very high parallel throughput but shortening to push interval to something like 200 ms will max out the one core tied to the connection.
This is of course only valid for a monolith running the entire test. Scaling out using several smaller loadgens will not hit this issue unless they are pressed for high request rates.
As mentioned it the title, when passing tagged metrics in thresholds like so:
'http_req_duration{name:login}': ['p(95)<55000'],
they are not saved properly in the database, namely the metrics are not separated from their tags and the 'tags' column in the threshold table is populated with null
s.
Need automated build and testing.
The Dockerfile pulls golang:1.17-alpine
as the builder for k6.
It references <...>net/netip which is only introduced in golang 1.18
Updating the Dockerfile to use a later image (ex golang:1.19-alpine
) fixes the build issue.
After #4 the tests list dashboard will give you a link for a testid and will "zoom" on it but it will still not actually filter only the testid results.
We've recently updated the requirements for maintaining an extension within the listing on our site. As such, please address the following items to maintain your listing within the registry:
For more information on these and other listing requirements, please take a look at the registry requirements.
Using batch
from pgx
doesn't write the data to the db in a batch write.
In effect it just piles all the inserts in a a big package (the "batch") and sends the big package in one go.
The db then commences to do all the inserts in one transaction but in sequence. If the sequence of inserts takes too much time, the connection will be severed and the fail ignored by pgx.
Batches are very limited in capacity for high volume use cases and need a better implementation.
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.