Upload
others
View
8
Download
0
Embed Size (px)
Citation preview
Getting Started with Docker Containers and
Grafana Monitoring of DataCore using Ubuntu
Release 1.0 Community Tutorial
www.datacore.com
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
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
Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu
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
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"
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
Getting Started with Docker Containers and Grafana Monitoring of DataCore – using Ubuntu
apt-cache policy docker-ce
sudo apt install docker-ce
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…
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
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!
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
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
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
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: