snap-app icon indicating copy to clipboard operation
snap-app copied to clipboard

can't get the list of tasks from grafana dashboard

Open irom77 opened this issue 9 years ago • 6 comments

I have snap DS http://10.73.21.205:8181 configured in grafana 3.0 (running on separate host than DS) but can't get the list of tasks from grafana dashboard GUI when I try Graph->Task name->select task. From grafana host I can reach DS and list tasks without any problem, see below

$ curl -L http://10.73.21.205:8181/v1/tasks
{
  "meta": {
    "code": 200,
    "message": "Scheduled tasks retrieved",
    "type": "scheduled_task_list_returned",
    "version": 1
  },
  "body": {
    "ScheduledTasks": [
      {
        "id": "13b9f7d5-614c-41f1-a65b-526d517843b1",
        "name": "Task-13b9f7d5-614c-41f1-a65b-526d517843b1",
        "deadline": "5s",
        "creation_timestamp": 1468610189,
        "last_run_timestamp": 1468611289,
        "hit_count": 220,
        "task_state": "Running",
        "href": "http://10.73.21.205:8181/v1/tasks/13b9f7d5-614c-41f1-a65b-526d517843b1"
      }
    ]
  }

irom77 avatar Jul 15 '16 19:07 irom77

I am also having this issue, but with snapd running on the same host as grafana. I can add snap as datasource, but when it comes to adding a task and its metrics to a dashboard graph, there are no drop down options.

ommoreno avatar Sep 09 '16 23:09 ommoreno

i'm also getting this behavior like @ommoreno

i have snapped running on same host as grafana, but when i click on metric nothing shows up

following this tutorial: https://github.com/intelsdi-x/snap-demo-idf/blob/master/using-snap/explore-snap.md

theluke55 avatar Nov 08 '16 20:11 theluke55

i was able to fix this by running grafana v3.x.x

theluke55 avatar Nov 10 '16 20:11 theluke55

I'm running Grafana v3.1.1 (commit: a4d2708) and I still have this issue.

ommoreno avatar Nov 10 '16 20:11 ommoreno

@ommoreno for my data source i used this

url: http://localhost:8181 access: proxy

also are you trying to do this behind a proxy.

I'm guessing your setup is snapd and grafana on remote server, and accessing with local laptop or machine?

theluke55 avatar Nov 11 '16 17:11 theluke55

@theluke55 Yes, I am also behind a proxy accessing remotely on my local machine.

It looks like running grafana v4.1.1 and snap v1.0.0 fixes this issue.

Now I'm running into another issue where nothing is graphed even after selecting or creating a task and watching it. I may open another thread for it.

ommoreno avatar Jan 31 '17 21:01 ommoreno