Giter VIP home page Giter VIP logo

Comments (5)

flaviostutz avatar flaviostutz commented on July 29, 2024 1

Just for you to know, there is a similar issue on Vegeta itself: tsenart/vegeta#477

from vegeta-server.

nitishm avatar nitishm commented on July 29, 2024

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.

goshlanguage avatar goshlanguage commented on July 29, 2024

@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.

goshlanguage avatar goshlanguage commented on July 29, 2024

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.

nitishm avatar nitishm commented on July 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.