public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: Steeve Boulanger <[email protected]>
Cc: Ray O'Donnell <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why?
Date: Sat, 23 Nov 2024 16:28:28 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAAiSvx-=6He5yKjqGZbZ_4BusMdNH4JRhSzY2xjriSAA=sPRFA@mail.gmail.com>
References: <CAAiSvx8_Z6QGey92dC+6Yona18KDMLWinfR5LOJsMgj-42XJtg@mail.gmail.com>
<[email protected]>
<CAAiSvx_vsiCmL3gBj+1hRpMxo=nOc3HUa+VaGO9_GfOXDWCsrQ@mail.gmail.com>
<[email protected]>
<CAAiSvx-pwz562KrTPdayK+qqRm9DxbrU1r9_Qkpm5BLh-1G+pA@mail.gmail.com>
<[email protected]>
<CAAiSvx_ZtM72ZO=uq56X=iJ=a17KcgB=07c5abyFnQ8vAses0Q@mail.gmail.com>
<[email protected]>
<CAAiSvx-JPJCGc_VR+YrUNo75pb0yrmB8Ng3zBOCf+Mksdo5JYg@mail.gmail.com>
<[email protected]>
<CAAiSvx9CangeS_yZ6RLXsXHBZSKmuRvrcB39DNSB_Ler3=OhTw@mail.gmail.com>
<01020193592431ad-0fedca70-38e9-4fd0-bf49-f5bbf628c76e-000000@eu-west-1.amazonses.com>
<CAAiSvx9HPJAXtTxyjs7uyJN+0NSBXGtwJiF15GSAjHdYwh4V7A@mail.gmail.com>
<[email protected]>
<CAAiSvx-=6He5yKjqGZbZ_4BusMdNH4JRhSzY2xjriSAA=sPRFA@mail.gmail.com>
On 11/23/24 16:20, Steeve Boulanger wrote:
> Apologies for the late reply.
>
> > I'm guessing shutting down Netdata did not stop the resets?
>
> There was a hiccup yesterday, so I had to redo the test and wait until
> today to see if there were any stats resets ... and NONE today!!
>
> reset_status | cnt
> --------------------+-----
> reset before today | 100
> no reset | 57
> reset today | 0
Getting closer.
>
> This is quite interesting, and a little unexpected... but in order to
> confirm this theory, I have done the following just now:
>
> 1) Restart Netdata service
> 2) rename the "pg_stat_reset()" function , as you suggested in another
> post - very clever btw! :-)
Not sure who 'you' refers to, but just to be clear that was Greg Sabino
Mullane.
>
> Now let's wait until tomorrow to see if we have any stats reset and/or
> some relevant errors in the PG logs!
>
> Quick note: I did do a quick check in any user functions for any
> "pg_stat_reset" calls , but didn't find any. With that said, we have
> 150+ databases in our cluster, so perhaps I missed something. I also did
> a grep on the netdata directories, but nothing as well.
>
> -Steeve
>
>
--
Adrian Klaver
[email protected]
view thread (15+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox