hastic-zzz / hastic-server

Hastic data management server for analyzing patterns and anomalies from Grafana
GNU General Public License v3.0
330 stars 23 forks source link

Error: Request failed with status code 404 #698

Closed Djam36 closed 5 years ago

Djam36 commented 5 years ago

hi,all i use hastic-server-0.3.5-beta to label data, but it will return 404, Have you ever encountered a 404 error?

i see in hastic server's log message strange url

Data kit: fail while request data: Request failed with status code 404 query url: "/http://url_prometheus:9090/api/v1/query_range"

is it somehow connected with my problem? HasticProblem

amper43 commented 5 years ago

Hi, @Djam36

  1. Is Access type set to Server in datasource settings?
  2. Do you have real Prometheus url set for datasource or is it http://url_prometheus:9090 like in logs
  3. Does datasource url start with / in datasource tab or / is visible only in Hastic-server logs?
Djam36 commented 5 years ago

Hi, @Djam36

  1. Is Access type set to Server in datasource settings?
  2. Do you have real Prometheus url set for datasource or is it http://url_prometheus:9090 like in logs
  3. Does datasource url start with / in datasource tab or / is visible only in Hastic-server logs?
  1. Yes,
  2. Yes, i has hidden url because of security policy
  3. Url start with '/' only in Hastic-server logs
amper43 commented 5 years ago

@Djam36

Can I ask you to check datasource settings for Prometheus? Error looks like chosen access type is Browser. Hastic can query metrics only from datasources with Server access type.

Djam36 commented 5 years ago

@Djam36

Can I ask you to check datasource settings for Prometheus? Error looks like chosen access type is Browser. Hastic can query metrics only from datasources with Server access type.

Hi, i checked it, realy it is my mistake, sorry