Coder Social home page Coder Social logo

Provide more metrics about druid-exporter HOT 9 CLOSED

opstree avatar opstree commented on August 23, 2024
Provide more metrics

from druid-exporter.

Comments (9)

iamabhishek-dubey avatar iamabhishek-dubey commented on August 23, 2024 1

Okay we will be reconsidering it

from druid-exporter.

iamabhishek-dubey avatar iamabhishek-dubey commented on August 23, 2024

You can list the status of the task by using PromQL, like:-

count(druid_tasks_duration{task_status=!""}) by (task_status)

from druid-exporter.

schmichri avatar schmichri commented on August 23, 2024

Means I have to add custom rules on prometheus-adapter for a metrics which should be standard. I propose you reconsider this.

from druid-exporter.

iamabhishek-dubey avatar iamabhishek-dubey commented on August 23, 2024

Please use this release https://github.com/opstree/druid-exporter/releases/tag/v0.9. metrics are added

druid_running_tasks
druid_waiting_tasks
druid_completed_tasks
druid_pending_tasks

from druid-exporter.

schmichri avatar schmichri commented on August 23, 2024

Looks working. Thanks a lot!

from druid-exporter.

Aka-shi avatar Aka-shi commented on August 23, 2024

@schmichri Can you share on how you plan to deploy HPA with only task metrics?

from druid-exporter.

schmichri avatar schmichri commented on August 23, 2024

@Aka-shi : I plan so scale a middlemanager (statefulset) when there are too many pending tasks. The metrics are thanks to @iamabhishek-dubey are available now.

from druid-exporter.

Aka-shi avatar Aka-shi commented on August 23, 2024

Hey, @schmichri I understand the scale up. What I am more concerned is the scale down, if you are deploying HPA and when the controller scales up the middle manager pods based on pending tasks, the pending tasks count itself would become zero(ideally) which would in some time trigger a scale down.

IMO, to properly scale up or down, we would also need the total worker capacity of the druid cluster and after that we can use this ratio sum(druid_pending_tasks + druid_running_tasks)/druid_worker_capacity_total. This would give a fair ratio to scale up/down. Thoughts?

from druid-exporter.

schmichri avatar schmichri commented on August 23, 2024

You are right. Didn't thought this through.

from druid-exporter.

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.