Skip to content

A ruby based end to end performance monitoring setup using Jmeter, InfluxDB and Grafana Dashboard.

License

Notifications You must be signed in to change notification settings

Aptimyze/performance-jmeter

 
 

Repository files navigation

This repo executes the performance tests using jmeter in non gui mode pushes data to Influx DB. Which can be viewed through Grafana dashboard.

Alt text

Installation

Before running test, run following commands from command line (make sure you are in your project root directory ):

  • Ruby
    $ brew update
    $ brew install rbenv
    $ brew install ruby-build
    $ rbenv install (this will install jruby version mentioned in your .ruby-version file)
    $ bundle install (this will install all necessary gems mentioned in your Gemfile)
  • Influx DB
    $ brew install influxdb
  • Grafana
    $ brew install grafana
  • Jmeter
    $ brew install jmeter

Execution

  • Make sure Influxdb is up and listening to the port 8086 and host and port details are updated in script file
    $ influxd -config /usr/local/etc/influxdb.conf
    $ source setup.sh (this will export all necessary env and change your USER_NAME, 
      USER_PASSWORD, SITE_URL and jmeter influxdb configuaration.
  • To executae single tests in the scenario folder
    $ rake performance:test[load_admin_page.json]
  • To execute all the tests in folder
    $ rake performance:test_all

Streaming in Grafana

  • Run the grafana server locally
    $ brew services start grafana (visit localhost:3000 to view the dashboard)

About

A ruby based end to end performance monitoring setup using Jmeter, InfluxDB and Grafana Dashboard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 96.3%
  • Shell 3.7%