vegeta icon indicating copy to clipboard operation
vegeta copied to clipboard

Prometheus + Grafana Integration not working

Open QAInsights opened this issue 1 year ago • 3 comments

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

QAInsights avatar Oct 26 '23 02:10 QAInsights

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

tsenart avatar Oct 26 '23 12:10 tsenart

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

QAInsights avatar Oct 27 '23 02:10 QAInsights

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

ocodista avatar Dec 15 '23 14:12 ocodista