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

How can I achieve a weekly increment of *_seconds_count. My project restarted several times during this period of time #5028

Closed
nope-J opened this Issue Dec 21, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@nope-J
Copy link

nope-J commented Dec 21, 2018

Proposal

Use case. Why is this important?

“Nice to have” is not a good use case. :)

Bug Report

What did you do?

What did you expect to see?

What did you see instead? Under which circumstances?

Environment

  • System information:

    insert output of uname -srm here

  • Prometheus version:

    insert output of prometheus --version here

  • Alertmanager version:

    insert output of alertmanager --version here (if relevant to the issue)

  • Prometheus configuration file:

insert configuration here
  • Alertmanager configuration file:
insert configuration here (if relevant to the issue)
  • Logs:
insert Prometheus and Alertmanager logs relevant to the issue here
@nope-J

This comment has been minimized.

Copy link
Author

nope-J commented Dec 21, 2018

I want to get the count of requests this week, is there any function to get it?

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Dec 21, 2018

increase(my_metric_seconds_count[1w]) should do it. Note that you shouldn't assume that the result is 100% accurate.

I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search.

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