Giter VIP home page Giter VIP logo

Comments (7)

dor15 avatar dor15 commented on May 29, 2024 1

you're right, my Prometheus configuration was totally messed up🙈😳
thank you!

from karton-dashboard.

nazywam avatar nazywam commented on May 29, 2024

I think you should just point prometheus to the /varz endpoint. I.E. set the data source url to 'https://your-karton-dashboard/varz'

from karton-dashboard.

dor15 avatar dor15 commented on May 29, 2024

I'm getting Error reading Prometheus: client_error: client error: 404

image

from karton-dashboard.

nazywam avatar nazywam commented on May 29, 2024

That's weird 🤔, can you see the request in karton-dashboard logs? Are you sure you're running the correct version of karton-dashboard?

from karton-dashboard.

dor15 avatar dor15 commented on May 29, 2024

we have the latest version of karton-dash.
I see the logs in /varz but for some reason when I'm trying to config the DS (Prometheus) in Grafana I got this error.
we run grafana from docker and for making sure there is no connectivity issue, I connected to docker and run curl to the same URL I've tried to config and got the logs, for example:

bash-5.1curl http://karton-dashboard.training.cprgit.com/varz karton_tasks{name="karton_reporter",priority="high",status="Declared"} 0.0 karton_tasks{name="karton_reporter",priority="high",status="Spawned"} 0.0 karton_tasks{name="karton_reporter",priority="high",status="Started"} 0.0 karton_tasks{name="karton_reporter",priority="high",status="Finished"} 0.0 karton_tasks{name="karton_reporter",priority="high",status="Crashed"} 0.0 karton_tasks{name="karton_reporter",priority="normal",status="Declared"} 0.0 karton_tasks{name="karton_reporter",priority="normal",status="Spawned"} 2072.0 karton_tasks{name="karton_reporter",priority="normal",status="Started"} 37.0 karton_tasks{name="karton_reporter",priority="normal",status="Finished"} 0.0 karton_tasks{name="karton_reporter",priority="normal",status="Crashed"} 0.0 karton_tasks{name="karton_reporter",priority="low",status="Declared"} 0.0 karton_tasks{name="karton_reporter",priority="low",status="Spawned"} 0.0 karton_tasks{name="karton_reporter",priority="low",status="Started"} 0.0 karton_tasks{name="karton_reporter",priority="low",status="Finished"} 0.0 karton_tasks{name="karton_reporter",priority="low",status="Crashed"} 0.0 karton_tasks{name="karton_extractor",priority="high",status="Declared"} 0.0 karton_tasks{name="karton_extractor",priority="high",status="Spawned"} 0.0 karton_tasks{name="karton_extractor",priority="high",status="Started"} 0.0 karton_tasks{name="karton_extractor",priority="high",status="Finished"} 0.0 karton_tasks{name="karton_extractor",priority="high",status="Crashed"} 0.0 karton_tasks{name="karton_extractor",priority="normal",status="Declared"} 0.0 karton_tasks{name="karton_extractor",priority="normal",status="Spawned"} 0.0 karton_tasks{name="karton_extractor",priority="normal",status="Started"} 0.0 karton_tasks{name="karton_extractor",priority="normal",status="Finished"} 0.0 karton_tasks{name="karton_extractor",priority="normal",status="Crashed"} 0.0 karton_tasks{name="karton_extractor",priority="low",status="Declared"} 0.0 karton_tasks{name="karton_extractor",priority="low",status="Spawned"} 0.0 karton_tasks{name="karton_extractor",priority="low",status="Started"} 0.0 karton_tasks{name="karton_extractor",priority="low",status="Finished"} 0.0 karton_tasks{name="karton_extractor",priority="low",status="Crashed"} 0.0 karton_tasks{name="karton_classifier",priority="high",status="Declared"} 0.0 karton_tasks{name="karton_classifier",priority="high",status="Spawned"} 0.0 karton_tasks{name="karton_classifier",priority="high",status="Started"} 0.0 karton_tasks{name="karton_classifier",priority="high",status="Finished"} 0.0 karton_tasks{name="karton_classifier",priority="high",status="Crashed"} 0.0 karton_tasks{name="karton_classifier",priority="normal",status="Declared"} 0.0 karton_tasks{name="karton_classifier",priority="normal",status="Spawned"} 0.0 karton_tasks{name="karton_classifier",priority="normal",status="Started"} 0.0 karton_tasks{name="karton_classifier",priority="normal",status="Finished"} 0.0 karton_tasks{name="karton_classifier",priority="normal",status="Crashed"} 0.0 karton_tasks{name="karton_classifier",priority="low",status="Declared"} 0.0 karton_tasks{name="karton_classifier",priority="low",status="Spawned"} 0.0 karton_tasks{name="karton_classifier",priority="low",status="Started"} 0.0 karton_tasks{name="karton_classifier",priority="low",status="Finished"} 0.0 karton_tasks{name="karton_classifier",priority="low",status="Crashed"} 0.0

logs from docker:
t=2021-12-30T09:59:16+0000 lvl=eror msg="Instant query failed" logger=tsdb.prometheus query=1+1 err="client_error: client error: 404" t=2021-12-30T09:59:16+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/ds/query status=400 remote_addr=77.126.184.153 time_ms=1054 size=65 referer=http://54.77.213.22:3000/datasources/edit/_LjxkH0nz/

from karton-dashboard.

dor15 avatar dor15 commented on May 29, 2024

error from karton-dasboard logs:
INFO:werkzeug:10.0.1.217 - - [30/Dec/2021 14:34:23] "�[33mPOST /varz/api/v1/query HTTP/1.1�[0m" 404 -

it looks like the request from grafana send to a wrong route- /varz/api/v1/query, while the route in the code (GET) is /varz

from karton-dashboard.

nazywam avatar nazywam commented on May 29, 2024

Seems like a simple misconfiguration.

Setup the endpoint host using https://prometheus.io/docs/introduction/first_steps/

And remember to set the metrics_path to /varz instead of the default /metrics: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config

from karton-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.