da0cdd93d7
Co-authored-by: azure-quickstart-templates pipeline <azure-quickstart-templates@noreply.github.com> |
||
---|---|---|
.. | ||
scripts | ||
README.md | ||
azuredeploy.json | ||
azuredeploy.parameters.json | ||
metadata.json |
README.md
description | page_type | products | urlFragment | languages | |||
---|---|---|---|---|---|---|---|
This template allows you to deploy an instance of Telegraf-InfluxDB-Grafana on a Linux Ubuntu 14.04 LTS VM. This will deploy a VM in the resource group location and return the FQDN of the VM and installs the components of Telegraf, InfluxDB and Grafana. The template provides configuration for telegraf with plugins enabled for Docker,container host metrics. | sample |
|
Telegraf-InfluxDB-Grafana |
|
Telegraf-InfluxDB-Grafana
This template allows you to deploy an instance of Telegraf-InfluxDB-Grafana on a Linux Ubuntu 14.04 LTS VM. This will deploy a VM in the resource group location and return the FQDN of the VM and installs the components of Telegraf, InfluxDB and Grafana. The template provides configuration for telegraf with plugins enabled for Docker,container host metrics.
A. Deploy TIG VM
- Click the "Deploy to Azure" button. If you don't have an Azure subscription, you can follow instructions to signup for a free trial.
- Enter a valid name for the VM, as well as a user name and ssh public key that you will use to login remotely to the VM via SSH.
B. Login remotely to the VM via SSH
Once the VM has been deployed, note down the DNS Name generated in the Azure portal for the VM. To login:
- If you are using Windows, use Putty or any bash shell on Windows to login to the VM with the username and password you supplied.
- If you are using Linux or Mac, use Terminal to login to the VM with the username and password you supplied.
C. Setup SSH port forwarding
Once you have deployed the TIG ARM template, you need to setup port forwarding to view the Grafana UI and InfluxDB UI on your local machine. If you do not know the full DNS name of your instance, go to the Portal and find it in the deployment outputs here: Resource Groups > {Resource Group Name} > Deployments > {Deployment Name, usually 'Microsoft.Template'} > Outputs
If you are using Windows
Install Putty or use any bash shell for Windows (if using a bash shell, follow the instructions for Linux or Mac).
Run this command:
putty.exe -ssh -i <path to private key file> -L 3000:localhost:3000 -L 8083:localhost:8083 <User name>@<Public DNS name of instance you just created>
Or follow these manual steps:
- Launch Putty and navigate to Change Settings > SSH > Tunnels
- In the Options controlling SSH port forwarding window, enter 8083 for Source port. Then enter 127.0.0.1:8083 for the Destination. Click Add.
- Repeat this process for port 3000
- Navigate to 'Connection > SSH > Auth' and enter your private key file for authentication. For more information on using ssh keys with Putty, see here.
- Click Open to establish the connection.
If you are using Linux or Mac
Run this command:
ssh -i <path to private key file> -L 3000:localhost:3000 -L 8083:localhost:8083 <User name>@<Public DNS name of instance you just created>
NOTE: Port 3000 and 8083 correspond to Grafana and InfluxDB UI interfaces, respectively.
E. Connect to Grafana and InfluxDB
- After you have started your tunnel, navigate to http://localhost:3000/ on your local machine, to view Grafana UI. Username: admin, Password: YOUR_PASSWORD
- After you have started your tunnel, navigate to http://localhost:8083/ on your local machine, to view InfluxDB UI. Username: root,Password : root. Give the host name as the full DNS name of your instance and save. Select the database "TIG".
Tags: Microsoft.Storage/storageAccounts, Microsoft.Network/publicIPAddresses, Microsoft.Network/networkSecurityGroups, Microsoft.Network/virtualNetworks, Microsoft.Network/networkInterfaces, Microsoft.Compute/virtualMachines, extensions, CustomScript