Comments (5)
Just for you to know, there is a similar issue on Vegeta itself: tsenart/vegeta#477
from vegeta-server.
Exporting metrics to prometheus using promauto should be a straight-forward task.
https://godoc.org/github.com/prometheus/client_golang/prometheus/promauto
from vegeta-server.
@nitishm Typically prometheus is meant to scrape metrics endpoints, as opposed to being pushed to.
Would a metrics endpoint be an acceptable outcome for this issue?
from vegeta-server.
Sorry, I think I misunderstood it when I read the comments last night. It does seem that you were requesting an exported endpoint.
Would the models/report_response
be the model we want to export?
from vegeta-server.
@ryanhartje From what I recall, I wanted to capture the metrics live through the AttackFn
as shown here https://github.com/nitishm/vegeta-server/blob/v1.0.0/pkg/vegeta/vegeta.go#L68-L102
Prior to encoding the result, we can use the members of vegeta.Result
to increment the prometheus metrics (counters, gauges, etc) as each result is received through the channel.
The idea is mimic how the vegeta plot
functionality works in the original command line vegeta tool. See https://github.com/tsenart/vegeta/blob/master/plot.go
This task is a little involved wherein you will need to play around with vegeta CLI command for live plotting and understand how that works to mimic it via prometheus metrics, which must be exported to grafana through relevant dashboards (future task).
Let me know if that makes sense.
from vegeta-server.
Related Issues (20)
- Replace go-swagger with gin-gonic for backend server. HOT 1
- Switch from IAttackStore implementation from temporary map store to SQL (or NoSQL) implementation HOT 2
- Add support for histogram format for GET /api/v1/report endpoint HOT 2
- Support format text in GET /api/v1/report endpoint
- Add support for binary encoded format for GET /api/v1/report endpoint
- Fix golint issues by adding comments to all exported functions and fields
- Remove dependency on vegeta lib from the internal package
- Remove context from task struct as it violates the pattern HOT 2
- Add CreatedAt and UpdatedAt fields to models.AttackDetails HOT 4
- Change default server port to port 80.
- Report in format TEXT does not display the attack ID
- Add make container_stop target to makefile HOT 2
- Make dispatcher and reporter more unit testable HOT 2
- Move API documentation to new doc directory HOT 1
- Vegeta attacker does not stop attacking on Cancel
- Race condition when testing dispatcher.Cancel
- Gracefully cancel all ongoing attacks on SIGINT quit HOT 1
- Wrap all upstream errors with errors.Wrap HOT 2
- Add more query params to `GET /api/v1/attack` HOT 3
- Unable to build the project using docker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vegeta-server.