Gather and graph table of historical runtimes #759
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. |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions