Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JyotiPrakashMallick opened this issue Sep 14, 2023 · 0 comments

Comments

@JyotiPrakashMallick
Copy link

JyotiPrakashMallick commented Sep 14, 2023

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/[email protected]/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

@JyotiPrakashMallick JyotiPrakashMallick changed the title Trying to import the dashboard t influxDB but it is failing [Windows 10] Trying to import the dashboard t influxDB but it is failing Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant