Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus support #477

Closed
axot opened this issue Feb 14, 2020 · 13 comments
Closed

Prometheus support #477

axot opened this issue Feb 14, 2020 · 13 comments

Comments

@axot
Copy link

axot commented Feb 14, 2020

Hello, it is great to see metrics in prometheus, is it possible to do this?
jaggr is used to plot realtime graph, so I think it should possible to convert it to prometheus format.

Any thoughts?

@tsenart
Copy link
Owner

tsenart commented Feb 16, 2020

It would be possible to create a sub command that consumes vegeta attack results (i.e. like vegeta report or vegeta encode) that is a prometheus exporter.

@flaviostutz
Copy link
Contributor

flaviostutz commented Jun 29, 2020

Proposal

What do you think about creating a new command category called "monitor" aside report, encode, dump?

Monitor

So for monitoring with Prometheus one could do something like

GET http://www.google.com" | vegeta attack -duration=5m | vegeta monitor -type='prometheus[8880,0.0.0.0]'
  • "-type" may be omitted. defaults to 'prometheus'
  • "8880" is the Prometheus exporter http port (may be omitted and defaults to 8880)
  • "0.0.0.0" is the bind host for the listener (may be omitted and defaults to 0.0.0.0)

After launching the tests, just point Prometheus scraper to http://host:8880/metrics or do something like

curl http://host:8880/metrics

Prometheus Metrics

  • request_seconds_count{method, path, status}
  • request_seconds_sum{method, path, status}
  • request_bytes_sum{method, path, status}
  • response_bytes_sum{method, path, status}

What do you think?

@tsenart
Copy link
Owner

tsenart commented Jun 30, 2020 via email

@tsenart
Copy link
Owner

tsenart commented Jun 30, 2020 via email

@flaviostutz
Copy link
Contributor

flaviostutz commented Jun 30, 2020 via email

@tsenart
Copy link
Owner

tsenart commented Jul 1, 2020

@flaviostutz: Contributions welcome! :)

@flaviostutz
Copy link
Contributor

flaviostutz commented Jul 1, 2020 via email

flaviostutz added a commit to flaviostutz/vegeta that referenced this issue Jul 1, 2020
@flaviostutz flaviostutz mentioned this issue Jul 2, 2020
3 tasks
flaviostutz added a commit to flaviostutz/vegeta that referenced this issue Jul 4, 2020
flaviostutz added a commit to flaviostutz/vegeta that referenced this issue Jul 24, 2020
flaviostutz added a commit to flaviostutz/vegeta that referenced this issue Jul 24, 2020
@varyumin
Copy link

varyumin commented Aug 7, 2020

Do you have news about prom metrics? I am really looking forward!

@flaviostutz
Copy link
Contributor

I implemented it and a PR is being analyzed. Soon we will have it! ;)

flaviostutz added a commit to flaviostutz/vegeta that referenced this issue Oct 9, 2020
@shydefoo
Copy link

Is there any update on the status of this PR? This feature would be really useful, thanks!

@real-zony
Copy link

Is there any update on the status of this PR? This is a very useful feature in our DevOps process.

flaviostutz added a commit to flaviostutz/vegeta that referenced this issue Jul 22, 2023
flaviostutz added a commit to flaviostutz/vegeta that referenced this issue Jul 22, 2023
flaviostutz added a commit to flaviostutz/vegeta that referenced this issue Jul 22, 2023
Signed-off-by: Flávio Stutz <flaviostutz@gmail.com>
flaviostutz added a commit to flaviostutz/vegeta that referenced this issue Jul 22, 2023
Signed-off-by: Flávio Stutz <flaviostutz@gmail.com>
@flaviostutz
Copy link
Contributor

🎉🎉🎉

@ocodista
Copy link

Hi!!

Can you please add a command example on the docs? I've been trying to make it work but simply cant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants