Greetings,
We are using a Powershell script to collect metrics from Veeam and ship the data to influxDB to visualize in Grafana. We are using Telegraf to execute the Powershell script.I’m traying to collect backup jobnames from Veeam but I keep getting the error;
[inputs.exec] Error in plugin: metric parse error: expec
ted field at 45:59: “veeam-stats jobname=AD_HU6SITES_(Incremental)=”
Snippet of script:
# Get Backup Job Name -1 day and output results Telegraf
seshJobName = Get-VBRBackupSession | ?{.CreationTime -ge (Get-Date).AddDays(-1)} | ?{$.name}
$seshJobNameout = $seshJobName | select-object -expandProperty Name -Last 1
#region: Influxdb Output for Telegraf
$seshJobNameout = $seshJobNameout -replace ‘\s’,’_’
$body=“veeam-stats jobname=$seshJobNameout”
Write-Host $body