Microsoft Azure monitoring - agent install guide
Please read the prerequisites Prerequisites - data collectors
Download and install Influx Telegraf. Influx Telegraf is one of the most used open source agents to collect metrics from sensors and systems. See https://www.influxdata.com/time-series-platform/telegraf/ for more information. Make sure you download the version corresponding to your OS.
Download the eyer_telegraf_azure configuration file from Eyer. Please see the following article on how to configure your Azure credentials and resources.
This config file comes preconfigured for some Azure resource types. We recommend that you add the resource types you want to monitor and then run Telegraf manually to check the output with the following command in a cmd.
.\telegraf.exe --config eyer_telegraf_azure.conf
You will see that Telegraf starts and after some time will show the output in the cmd window, and it will also be logged to the file “azure_file.out” in the Telegraf folder.
Verify the output, and that you get data for the selected resource types. If not, please remove the config for the resource type in question.
Repeat this process until you have all working resource types in your output, and proceed to step 4.
Once you are happy with the Azure resource types, navigate to the “outputs.http” section. Insert your Eyer apiTokenPush in the “authenticate” line as seen below
authenticate = "your_apiTokenPush_here"
Uncomment (remove all # signs) from the http section so it looks like the following
[[outputs.http]] url = "https://data.eyer.ai/api/telegraf/azure" timeout = "30s" method = "POST" data_format = "json" use_batch_format = true [outputs.http.headers] #Insert your Eyer authentication key here authenticate = "your_apiTokenPush_here"
Comment the [[outputs.file]] section completely, so that data is no longer written to disk.
Save the config.
Register the Telegraf agent as a service and start it(see instructions per OS). With Windows use