This repository was archived by the owner on Dec 17, 2024. It is now read-only.
Gather and graph table of historical runtimes #759
Unanswered
jasonhill-ds
asked this question in
Q&A
Replies: 1 comment 1 reply
Yes, absolutely.
Sorry, I don't get it. The easiest way would be to take an existing metric and apply some changes to it. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Apologies for what might be a newbie question, and I might be barking up the wrong tree with trying to do this with pgwatch2, but:
If I have a table in the database to be monitored that has a Timestamp as one column and an Int as another column, is there a way to set up a custom metric to be able to graph the integer by timestamp?
If I write a metric which just does a "select rundate, num_secs from run_table order by rundate" I can get the data I need, but this isn't the sort of "one metric per gather" that pgwatch2 expects. I don't want to store all the results everytime the metric runs... I could just get the latest row from the table and run the check once per day, but that doesn't seems like a hack.
An example of the data that I want to graph below. Graph say second_taken vs start_time.
Thanks and apologies for such a rudimentary question.
J
All reactions