azurehpc/examples/grafana
Xavier Pillons 398a76a428 disable PR trigger 2020-05-01 14:58:11 +02:00
..
config.json fix name and add deps 2020-04-01 17:01:30 +02:00
pipeline.yml disable PR trigger 2020-05-01 14:58:11 +02:00
readme.md fix typo 2020-04-29 11:50:52 +02:00

readme.md

Deploy and initialize a Grafana server

Build Status

This example shows how deploy a Grafana server and configure Telegraf on monitored machines.

The configuration file requires the following variables to be set:

Variable Description
location The location of resources
resource_group The resource group for the project
vm_type Azure GPU VM full name (NC or ND series)
key_vault Keyvault to store the GrafanaPassword secret

Note : Create an Azure Key Vault and store the Grafana Password in the secret named GrafanaPassword

Once deployed:

  • Add port 3000 to the NSG of the grafana server
  • access the portal thru the URL : http://[grafana server fqdn]:3000/
  • Authenticate with the admin user and the password stored into your KeyVault
  • Access the dashboard thru the left meny Dashboards/Manage and then select "Telegraf : system dashboard"

Note : To monitor other VMs, just add the telegraf tag to your resources and its associated install script as specified the in the configuration file

        {
            "script": "install-telegraf.sh",
            "tag": "telegraf",
            "sudo": true,
            "args": [
                "<grafana server or ip address>",
                "azhpc",
                "secret.{{variables.key_vault}}.GrafanaPassword"
             ] 
        }