Giter Site home page Giter Site logo

k6performancetesting's Introduction

k6performancetesting

Git clone this project and do npm install once and then run docker-compose up -d For grafana the default credential is admin and admin For influx you can set the credentials from compose file In package json for influxDB -> Provide the Db you have created

Steps to setup the framework:

  1. brew install k6
  2. brew install influxdb@1
  3. brew install influxdb-cli

Then

  1. npm init - for initialising the node project
  2. npm install influx - for creating the DB from scripts.

docker-compose up -d -> This will start the grafana and influxdb images in 3003 and 8087 ports

Then login to the grafana dashboard with admin and admin credentials at first and change the password

For Data setup in grafana select influx db and provide the url as http://systemip:8087 -> default port For Data setup of influx with container name use-> http://systemip/containername

For creating influx db run the createDB.js from db folder using node createDB.js

In grafana data setup, now add the db name and credentials. The credentials are provided in compose file

Then run the scripts using npm run

You can also create databases from influx db container by using the below commands.

  1. docker ps -a -> To list down the containers
  2. docker exec -it bash -> This will go into the container bash
  3. Now execute influx. This will connect to the influxdb
  4. SHOW DATABASES;
  5. CREATE DATABASE
  6. We can create retention policy in influx for the data bases;
    1. CREATE RETENTION POLICY "a_year" ON "DB_NAM" DURATION 52w REPLICATION 1
    2. CREATE RETENTION POLICY "two_hour" ON "DB_NAM" DURATION 2h REPLICATION 1 DEFAULT

k6performancetesting's People

Contributors

arun2411 avatar arunk2493 avatar

Watchers

James Cloos avatar

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.