+ All Categories
Home > Documents > Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting...

Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting...

Date post: 20-May-2020
Category:
Upload: others
View: 8 times
Download: 0 times
Share this document with a friend
15
Getting Started with Docker Containers and Grafana Monitoring of DataCore using Ubuntu Release 1.0 Community Tutorial www.datacore.com
Transcript
Page 1: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and

Grafana Monitoring of DataCore using Ubuntu

Release 1.0 Community Tutorial

www.datacore.com

Page 2: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

Copyright Copyright © 1998-2019 by DataCore Software Corporation. All rights

reserved.

No part of this manual may be copied, reproduced, translated, or reduced to

any electronic medium or machine-readable form without the prior written

consent of DataCore Software Corporation.

DataCore, the DataCore logo, SANsymphony are trademarks of DataCore

Software Corporation. Other DataCore product or service names or logos

referenced herein are trademarks of DataCore Software Corporation.

All other products, services and company names mentioned herein may be

trademarks of their respective owners.

DataCore Software Corporation 6300 NW 5th Way Fort Lauderdale, Florida 33309 Phone: 954-377-6000 Fax: 954-938-7953

www.datacore.com

Page 3: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

2 Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Contents

Step 1: Installing Docker ................................................................................ 4

Step 2: Pulling Grafana dashboard .................................................................. 9

Step 3: Setting up the Container ................................................................... 11

For a copy of this ebook, go to: http://www.datacoreassets.com/community/tutorials/GettingStarted_DockerContainer_ebook.pdf

Page 4: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

Page 5: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

4 Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

Step 1: Installing Docker

sudo apt-get update

Page 6: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

sudo apt install curl

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Page 7: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

6 Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

sudo apt update

Page 8: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

apt-cache policy docker-ce

sudo apt install docker-ce

Page 9: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

8 Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

Y (yes)

Docker is now installed…

Page 10: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

Step 2: Pulling Grafana dashboard

sudo docker login

sudo docker pull datacoresoftware/grafana-dashboard

Page 11: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

10 Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

You are now ready to set up the Grafana Dashboard image in a new container!

Page 12: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

Step 3: Setting up the Container

To start the container the first time launch this by replacing -e variables:

DCSSVR -> DataCore Server (IP or hostname) DCSREST -> DataCore Rest API Server(IP or hostname) DCSUNAME -> DataCore User name DCSPWORD -> DataCore user password sudo docker run --ulimit nofile=66000:66000 \ -d \ --name grafana-datacore \ -p 3000:3000 \ -p 8888:8888 \ -p 8086:8086 \ -p 22022:22 \ -p 8125:8125/udp \ -e "DCSSVR=X.X.X.X" \ -e "DCSREST=X.X.X.X" \ -e "DCSUNAME=administrator" \ -e "DCSPWORD=password" \ datacoresoftware/grafana-dashboard:latest

Page 13: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

12 Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

Find the IP address of the Docker host. Open a web browser that has connectivity to that Docker host and point the URL to: <IP Address>:3000

Username (default): grafana Password (default): grafana

Page 14: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

Click the “Home” button, in the top left hand corner.

Click Datacore Monitor V1.1.

From here, you could enable persistent storage using one of the following plugins: (see documentation for more info) CSI Plugin

o https://github.com/DataCoreSoftware/csi-plugin Docker Volume Plugin

o https://github.com/DataCoreSoftware/dvp

Page 15: Getting Started with Docker Containers and Grafana Monitoring of … · 2019-02-05 · Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu Click

Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

14 Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu

Notes:


Recommended