etichy / grafana-swis-datasource

DataSource plugin for grafana to access SolarWinds data via SWIS REST API
MIT License
52 stars 11 forks source link

Can't add a datasource #1

Closed Atem18 closed 4 years ago

Atem18 commented 5 years ago

Hi @etichy ,

I cannot add a datasource, I have the following error :

Invalid SWIS uri at character 12: Incomplete uri. Parser did not finish in End state, but instead was left in Scheme state
 Parameter name: uri

I think it's because for me : https://localhost:17778/SolarWinds/InformationService/v3/Json/openapi.json does not work.

I think you should test with : https://localhost:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+Uri+FROM+Orion.Pollers+ORDER+BY+PollerID+WITH+ROWS+1+TO+3+WITH+TOTALROWS

Src: https://github.com/solarwinds/OrionSDK/wiki/REST

etichy commented 5 years ago

it should work without issue. Can you pass this URI into your browser? You should get all REST API commands of SWIS service.

I know it will be silly question, but are you running grafana server on orion server?

Atem18 commented 5 years ago

@etichy I know I tried it already but I get no answer.

And no of course, but I already tried to make SWIS requests via curl and they work from grafana server.

etichy commented 5 years ago

Hmmm which SWIS version are you running? This is probably something new. I will add version check, thanks.

Atem18 commented 5 years ago

@etichy I am using 2018.2 and they released Swagger/OpenAPI in 2018.4 : https://thwack.solarwinds.com/thread/123515

junaid360 commented 5 years ago

Im having the same issue.

Message "Invalid SWIS uri at character 0: Incomplete uri. Parser did not finish in End state, but instead was left in Scheme state\r\nParameter name: uri"
etichy commented 4 years ago

oki, let me fix it asap.

etichy commented 4 years ago

Fixed by changing TestDataSource URI -.... /Query?query=SELECT Description FROM System.NullEntity