Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tF0Mn-00Aqvc-Oe for pgsql-general@arkaria.postgresql.org; Sun, 24 Nov 2024 00:20:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tF0Mm-0058vg-DE for pgsql-general@arkaria.postgresql.org; Sun, 24 Nov 2024 00:20:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tF0Ml-0058vY-Te for pgsql-general@lists.postgresql.org; Sun, 24 Nov 2024 00:20:44 +0000 Received: from mail-oa1-x33.google.com ([2001:4860:4864:20::33]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tF0Mj-003Rq4-2a for pgsql-general@postgresql.org; Sun, 24 Nov 2024 00:20:42 +0000 Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-27d0e994ae3so1719218fac.3 for ; Sat, 23 Nov 2024 16:20:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732407640; x=1733012440; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XnnQiNE4c6fL8ko+0yAHxY0/MLlvNTr8RJXqmOwBXLE=; b=dMMIwI2S7W+jTUnfcbiqdZqAkCG/Jecls3cl71Hr1izMwoacPjvPMg4bQAjeI1tzDH qV+6u9pN1InA7hMJixUryf1Zw29Oy9FkOsEH+uD2hS2wcNHmHe5z3mT/lkQHXvdj+GRi bCQcLDQ1GonUFpWH5/fmYIcuzNyfaxEnB/jo7XX7T8Gjb2RLjHwQPCWvfUcKlv2J/Vwn D/mhcFnuQRQeAyOGLqUhpqGbt0dBgFZ9I114ODIXmeV/n2fxrIvKARJvJ5jWWpKJ0Y9l 6pAb9Gxash+OH8JDuRvdbE3r3qejyYUztjvh6OqBcFxo0E9L1qmNzjOqWPO+8BwFJ1UC Yddw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732407640; x=1733012440; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XnnQiNE4c6fL8ko+0yAHxY0/MLlvNTr8RJXqmOwBXLE=; b=p1DKxAUXoG8celfYM6O+WGOjO3eIgw5quzHr49ECkA+3uWsSkx4F4QP4iwI7JC6SKl 2NZ8a5HUEiclasg4dcG+9xiTbm48X0e1YtkqPW6Lfwsnp+UzdOWz8H91i0eGpCVP+Zim ymfYM471EkpRjSyOoEG/zA0jrfOKlbF5byshPP8DkNvDeUN1Z/OIn1dNXehomaV+INzY aGWVUOIWXS8GDTKDp+RVK3l0scRS1ymFxP5ICZTbCJLMT9DcTA0D6yjDLZfZc43B6vUU XHdCx/B9hAxnDKwO46lgrhRI8DQJKMcNxvoZaYPAPVN0EjGDNAwc4UE1QeOOqm9yocvZ lwVg== X-Forwarded-Encrypted: i=1; AJvYcCVixBd6beTAm8ycXqDBhFZVQIGOp36IQbuH329BHKyyffT4m+D8OGcaAv3fZbceol0fz5FPtFlF60lvtgTX@postgresql.org X-Gm-Message-State: AOJu0YyktufrFuMOtNHcpCiflJgDYi79CBkMTz5X9Z2wElT+Tv4MbaY0 8o5Uee3sqGBr1ViDYOgjWO39MVcxtogAuvmV0wWnOGk57HeOC5MCF18WVy7EPBFu28h826qSajy RPCdTJC2C6Pm0nCWJpHurn/hox50= X-Gm-Gg: ASbGncvo/RFBKz4RMe0Z8ieSwyW3fqDTNR/IFW5xUSLLPivpB7o6PhUlVJTfjNH7bti X3coC/yIRhDJ9M1y3gWfETXitxsjvwZA= X-Google-Smtp-Source: AGHT+IFUx3jWFkQwV1O8ErIWPezTLdeaSoATFovB7K4Ei+jOuDuYKMbh/oukclkEIbEEHKrOQW5xK/rNBdc7ABUaEtE= X-Received: by 2002:a05:6870:e86:b0:261:f8e:a37a with SMTP id 586e51a60fabf-29720bee474mr7286031fac.14.1732407640060; Sat, 23 Nov 2024 16:20:40 -0800 (PST) MIME-Version: 1.0 References: <6a157286-5948-48ac-bc50-7bb4e65ee5e5@aklaver.com> <38725031-5e80-46ee-b403-a92107b24c39@aklaver.com> <1e2db3f5-00f4-4ec2-800f-46136c2fad59@aklaver.com> <1270021b-c5b5-4ca8-b48d-7dfb163bb6f7@aklaver.com> <9a0d0e80-13e1-421a-9d84-da000fe4433a@aklaver.com> <01020193592431ad-0fedca70-38e9-4fd0-bf49-f5bbf628c76e-000000@eu-west-1.amazonses.com> <793d8f62-fdfe-44d5-b11f-0da978743ccf@aklaver.com> In-Reply-To: <793d8f62-fdfe-44d5-b11f-0da978743ccf@aklaver.com> From: Steeve Boulanger Date: Sat, 23 Nov 2024 18:20:28 -0600 Message-ID: Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why? To: Adrian Klaver Cc: "Ray O'Donnell" , pgsql-general Content-Type: multipart/alternative; boundary="000000000000fdfcee06279d95c9" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000fdfcee06279d95c9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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! :-) 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 On Sat, Nov 23, 2024 at 10:19=E2=80=AFAM Adrian Klaver wrote: > On 11/23/24 05:16, Steeve Boulanger wrote: > >> Here (Ireland) we sometimes say "common-or-garden variety".... It mean= s > a normal, everyday variety. :-) > > > > I'm afraid that my Irish dialect is limited to "sl=C3=A1inte" only ;-) = In > > any case, thanks for taking the time to help with this issue. I'm > > still investigating, but I think that calling the "ghostbusters" is > > moving up the list now lol. > > I'm guessing shutting down Netdata did not stop the resets? > > You might try setting log_min_messages to info to see if that catches > anything. > > > > > > > > On Sat, Nov 23, 2024 at 7:09=E2=80=AFAM Ray O'Donnell wrote: > >> > >> On 23/11/2024 13:06, Steeve Boulanger wrote: > >> > >> > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > --000000000000fdfcee06279d95c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Apologies for the late reply.

> I'm guessing= shutting down Netdata did not stop the resets?

There was a hiccup y= esterday, so I had to redo the test and wait until today to see if there we= re any stats resets ... and NONE today!!

= =C2=A0 =C2=A0 reset_status =C2=A0 =C2=A0| cnt
--------------------+-----=
=C2=A0reset before today | 100
=C2=A0no reset =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 | =C2=A057
=C2=A0reset today =C2=A0 =C2=A0 =C2=A0 =C2=A0| = =C2=A0 0

This is quite interesting, and a lit= tle unexpected... but in order to confirm this theory, I have done the foll= owing just now:=C2=A0

1) Restart Netdata service2) rename the "pg_stat_reset()" function , as you suggested in = another post=C2=A0 - very clever btw! :-)=C2=A0=C2=A0

<= div>Now let's wait=C2=A0until tomorrow to see if we have any stats rese= t and/or some relevant errors in the=C2=A0PG logs!=C2=A0

Quick note: I did do a quick check in any user functions for any &qu= ot;pg_stat_reset" calls , but didn't find any. With that said, we = have 150+ databases in our cluster, so perhaps=C2=A0I missed something. I a= lso did a grep on the netdata directories, but nothing=C2=A0as well.=C2=A0<= /div>

-Steeve


On Sat, Nov 23, 2024 at 10:19=E2= =80=AFAM Adrian Klaver <adr= ian.klaver@aklaver.com> wrote:
On 11/23/24 05:16, Steeve Boulanger wrote:
>> Here (Ireland) we sometimes say "common-or-garden variety&quo= t;.... It means a normal, everyday variety. :-)
>
> I'm afraid that my Irish dialect is limited to "sl=C3=A1inte&= quot; only ;-)=C2=A0 In
> any case, thanks for taking the time to help with this issue. I'm<= br> > still investigating, but I think that calling the "ghostbusters&q= uot; is
> moving up the list now lol.

I'm guessing shutting down Netdata did not stop the resets?

You might try setting log_min_messages to info to see if that catches
anything.


>
>
> On Sat, Nov 23, 2024 at 7:09=E2=80=AFAM Ray O'Donnell <ray@rodonnell.ie> wro= te:
>>
>> On 23/11/2024 13:06, Steeve Boulanger wrote:
>>
>>


--
Adrian Klaver
adrian.klave= r@aklaver.com

--000000000000fdfcee06279d95c9--