Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Prometheus's internal metrics #961

Closed
fabxc opened this Issue Aug 4, 2015 · 12 comments

Comments

Projects
None yet
5 participants
@fabxc
Copy link
Member

fabxc commented Aug 4, 2015

Many parts of Prometheus itself are not instrumented as well they should be.

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Aug 4, 2015

/cc @brian-brazil because he has mentioned this at times and probably has opinions about what should be changed (besides, ehem, changing everything to seconds!).

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Aug 4, 2015

I maintain that the correct way to measure memory usage is in terms of how much of it you can read in a second!

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Aug 4, 2015

@brian-brazil Haha, 👍 💯 Let's make it so!

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Aug 4, 2015

On a more serious note, I'll be doing up consoles templates for prometheus itself in the next few days so I should have some concrete suggestions from that.

@fabxc

This comment has been minimized.

Copy link
Member Author

fabxc commented Aug 4, 2015

There are also parts which are not instrumented at all – namely the
different SD mechanisms and the query engine.
The more generic the SD instrumentation the better. But there may be some
reasonable specific metrics.

On Tue, Aug 4, 2015 at 2:37 PM Brian Brazil notifications@github.com
wrote:

On a more serious note, I'll be doing up consoles templates for prometheus
itself in the next few days so I should have some concrete suggestions from
that.


Reply to this email directly or view it on GitHub
#961 (comment)
.

@mwitkow

This comment has been minimized.

Copy link
Contributor

mwitkow commented Aug 14, 2015

Can I drop a feature request here?

  • number of targets per job
  • number of metrics collected and retained last scrape per job

:)

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Aug 14, 2015

Per-instance/job metrics are something that should come from the scrape, and don't belong on the /metrics for prometheus as they're not about prometheus at a systems level.

number of targets per job

count by(job)(up{job="job"}

number of metrics collected and retained last scrape per job

count by (job)({job="job"})

Be careful with that one, it's going to be slow.

@mwitkow

This comment has been minimized.

Copy link
Contributor

mwitkow commented Aug 14, 2015

Yea, the last one is precisely the reason why we'd like a counter :)

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Aug 14, 2015

The way to do that would be as scrape_samples_collected similar to scrape_duration_seconds.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Oct 26, 2016

scrape_samples_scraped has been added. The rest of this ticket is rather generic, so if there's specific metrics you're looking for please open issues for then.

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented Oct 26, 2016

I guess @fabxc original intention was to keep this as a reminder to eventually rewrite the instrumentation from scratch. I don't know if anybody ever will have the time and nerves to do so. We could just keep improving instrumentation iteratively as we see fit.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.