mtanda / grafana-sumologic-datasource

Apache License 2.0
10 stars 4 forks source link

not working in Grafana version 6.x #32

Open ashoktmw opened 4 years ago

ashoktmw commented 4 years ago

Error is not actually displayed in Front end.When i configure the datasource in Grafana and click "save and test", it should save the config and display the message Datasource successfully connected. (this is expected) But, I'm not getting the datasource connection successful, rather i'm seeing it shows testing for long time.

sanat1772 commented 4 years ago

Yes, this is coming for me too.

sanat1772 commented 4 years ago

@mtanda Any clue?

mtanda commented 4 years ago

Sorry for late reply. I use provisioning to setup datasource, I didn't notice the issue.

1.0.11 release may fix reported issue, please test.

sanat1772 commented 4 years ago

Hey @mtanda Thanks for new version. But issue still persists, it is stuck on testing, and after following the same steps it is giving 403, but i am able to query sumologic via api call from server, but from grafana not happening.

mtanda commented 4 years ago

If possible, would you try to get error message from your browser's dev tools. I can't replicate your issue in my env, so it is hard to investigate...

sanat1772 commented 4 years ago

{ "status" : 403, "id" : "<>", "code" : "forbidden", "message" : "This operation is not allowed for your account type." }

@mtanda I am getting this error when i am testing.

ashoktmw commented 4 years ago

@mtanda , Thanks for working on this to get latest version ..Still I too getting same error. Here are the steps I followed to install the plugin.

Step1: grafana-cli --pluginUrl https://github.com/mtanda/grafana-sumologic-datasource/releases/download/1.0.11/grafana-sumologic-datasource-1.0.11.zip plugins install mtanda-sumologic-datasource Step2: Copy SRC folder in my plugin and restarted grafana . image Any thing that we need to change in installation steps

ashoktmw commented 4 years ago

@mtanda , Its working after I realize the error in the backend.. When i use HTTP URL as "https://api.us2.sumologic.com/api" then its connecting successfully. Once again! Thanks for the wonderful plugin

mtanda commented 4 years ago

@ashoktmw That's good.😄

mtanda commented 4 years ago

@sanat1772 According to doc, the account type is not allowed to use search job api. https://help.sumologic.com/APIs/Troubleshooting-APIs/API-403-Error-This-operation-is-not-allowed-for-your-account-type Is your account type is Enterprise?

sanat1772 commented 4 years ago

@mtanda My account type is Sumo Logic Logs and Metrics Analytics Service - Professional Edition (Cloud Flex). Is it not enterprise?

mtanda commented 4 years ago

Sorry, I use Enterprise. I don't know Pro account can use search API. Would you test to use API by curl.

https://help.sumologic.com/APIs/Search-Job-API/About-the-Search-Job-API

sanat1772 commented 4 years ago

@mtanda Yes I am getting same error. I checked also, it is not available for professional account.

michaelfward commented 4 years ago

Hi,

I'm getting this error, but do have an enterprise account.

I am seeing 202 when creating the job, and then a DELETE request without ever getting any data.

Screen Shot 2020-06-30 at 12 26 11 PM Screen Shot 2020-06-30 at 12 28 19 PM

I'm using grafana-server v7.0.5

ashoktmw commented 2 years ago

@mtanda - I see same issue again that in version 8, when I save and test the datasource connection it shows testing for long time

ashoktmw commented 2 years ago

image