Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Performance Testing with JMeter  3 - Third Edition

You're reading from  Performance Testing with JMeter 3 - Third Edition

Product type Book
Published in Jul 2017
Publisher Packt
ISBN-13 9781787285774
Pages 166 pages
Edition 3rd Edition
Languages
Author (1):
Bayo Erinle Bayo Erinle
Profile icon Bayo Erinle
Toc

Creating an InfluxDB database for our test plan


In order to use InfluxDB for storing the metrics from our test plan, we first need to create a database to use. InfluxDB comes with both client Command Line Interface (CLI) and an HTTP API for interacting with it. We will be using the HTTP API to interact with InfluxDB. If you wish to use the CLI, refer to the documentation at https://docs.influxdata.com/influxdb/v1.2/tools/shell/.

To create a database named excilys on our local installation of InfluxDB, follow the mentioned steps:

  1. Open up a Terminal window and issue the following command:

This assumes you have curl installed on your machine. If you don't, please download and install curl. See http://bit.ly/2hdYgTW.

curl -i -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE excilys"
  1. If successful, you should be returned an HTTP status code 200, similar to the following output:
HTTP/1.1 200 OK
Connection: close
Content-Type: application/json
Request-Id: 8171b794-52d6-11e7-8bd1...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime