parvez / snapshot

Report Generation for ElasticSearch Kibana / Grafana
54 stars 18 forks source link

Cannot Detect Dashboard Provided in Config #1

Closed joejean closed 8 years ago

joejean commented 8 years ago

Hi @parvez, Thanks for this tool. I'm trying to use it but it is not working properly.

{
  "app_port": 8080,
  "app_dir": "/deploy",
  "os_type": "linux",
  "phantomjs": {
    "wait_seconds": "30"
  },
  "dashboard_url": "http://localhost:5601/app/kibana#/dashboard/",
  "dashboards_list_url": "http://localhost:5601/app/kibana#/dashboard/For-Cyber-Security",
  "basic_auth_users": [
    {"user": "u1", "password": "p1"},
    {"user": "u2", "password": "p2"}
  ]
}

I have the following error in the log: 2016-06-30T07:59:17.071Z - error: (helper_logger.js 102) [/api/dashboards] []error: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect"}

Do you know how to fix this? Thanks

parvez commented 8 years ago

The list url is the search query for all dashboards. The list of dashboards would be show in the dropdown using this url:

"dashboards_list_url": "http://localhost:5601/elasticsearch/.kibana/dashboard/_search?size=100",

The url you will notice is the direct api call to get the json list of the dashboards. Also can you check if the app has access to kibana?