adejoux / nmon2influxdb

Make NMON data dynamic with InfluxDB
GNU Affero General Public License v3.0
80 stars 29 forks source link

[Windows 10] Trying to import the dashboard t influxDB but it is failing #84

Open JyotiPrakashMallick opened 1 year ago

JyotiPrakashMallick commented 1 year ago

Statement : I am trying to import the nmon file to influxdb which is running on my local machine on localhost, I am able to import the file using the below command,

PS C:\Users\MallicJ\nmon2influxdb> .\nmon2influxdb.exe import prf-morph01_230913_0946.nmon 2023/09/13 22:10:33 Using configuration file C:\Users\MallicJ.nmon2influxdb.cfg 2023/09/13 22:10:33 Creating InfluxDB database nmon_reports 2023/09/13 22:10:33 NMON file separator: , File prf-morph01_230913_0946.nmon imported : 151 points !

When I am trying to create the dashboard it is throwing error :

PS C:\Users\MallicJ\nmon2influxdb> .\nmon2influxdb.exe dashboard file --gurl http://localhost:3000 prf-morph01_230913_0946.nmon 2023/09/13 22:31:05 Using configuration file C:\Users\MallicJ.nmon2influxdb.cfg panic: open file: The system cannot find the file specified.

goroutine 1 [running]: github.com/adejoux/grafanaclient.ConvertTemplate(0xc0000a2098, 0x4, 0x0, 0x6c7f9d, 0xc, 0x6c2725, 0x4, 0x6c2725, 0x4, 0x6c68ca, ...) C:/Users/Admin/go/pkg/mod/github.com/adejoux/grafanaclient@v0.2.0/api.go:659 +0x1639 github.com/adejoux/nmon2influxdb/nmon.DashboardTemplate(0xc000164f00, 0xc0000a2098, 0x4) C:/Users/Admin/go/src/github.com/adejoux/nmon2influxdb/nmon/dashboard.go:83 +0x7d

How to fix this error ? I have checked the .nmon2influxdb.cfg and provided the correct user name and password for influxdb and also provided the absolute path of the nmon file but getting the same error,

PS C:\Users\MallicJ\nmon2influxdb> .\nmon2influxdb.exe dashboard file --gurl http://localhost:3000 prf-C:\Users\MallicJ\nmon2influxdb\morph01_230913_0946.nmon