tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.01k stars 1.34k forks source link

Prometheus + Grafana Integration not working #662

Open QAInsights opened 8 months ago

QAInsights commented 8 months ago

Version and Runtime

Version: 12.11.1
Commit: 
Runtime: go1.21.3 darwin/arm64
Date: 2023-10-02T09:03:39Z

Expected Behaviour

echo "GET http://localhost/" | vegeta attack -duration=15m -prometheus-addr 0.0.0.0:9090 command works fine. I can see the prometheus stats in the browser. But the Grafana integration is failing.

Actual Behaviour

While trying to add Prometheus data source in Grafana showing below error. image

Steps to Reproduce

  1. Install vegeta
  2. Install grafana
  3. Run vegeta w/ prometheus flag
  4. Add prometheus datasource in Grafana

Additional Context

grafana version 10.2.0

tsenart commented 8 months ago

That seems like an issue between Grafana and Prometheus. Or am I misunderstanding?

QAInsights commented 8 months ago

Yes, that's correct. I reinstalled everything starting from scratch. Started the test in vegeta. But the dashboard is blank.

image

But the Grafana dashboard looks empty.

image

Prometheus data source image

ocodista commented 6 months ago

It seems that adding the -prometheus-addr is not pushing any data to prometheus, I wonder why would that be.