Skip to content

Add new panel - cache hit ratio#52

Open
pchovelon wants to merge 4 commits into
cloudnative-pg:mainfrom
pchovelon:add-more-panels
Open

Add new panel - cache hit ratio#52
pchovelon wants to merge 4 commits into
cloudnative-pg:mainfrom
pchovelon:add-more-panels

Conversation

@pchovelon
Copy link
Copy Markdown

Add a new panel to follow cache hit ratio of databases.
The panel used this promql query :

image

@sxd
Copy link
Copy Markdown
Member

sxd commented Feb 26, 2026

Hi @itay-grudev @jsilvela
Can you take a look into this ?

@pchovelon
Copy link
Copy Markdown
Author

pchovelon commented Feb 26, 2026

As @sxd suggested, it could be nice to remove template databases. I'll have a look into it.

@itay-grudev
Copy link
Copy Markdown
Collaborator

Until now I've always added a custom monitoring query for cache hit ratios. I didn't realise we've had the data already.

Copy link
Copy Markdown

@jsilvela jsilvela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested out and looks good

@jsilvela
Copy link
Copy Markdown

jsilvela commented Mar 2, 2026

Just a comment that on testing, I saw the warning notice which complains about metric names.
Pretty annoying "feature" coming from grafana.
See grafana/grafana-prometheus-datasource#159
:/

Comment thread charts/cluster/grafana-dashboard.json Outdated
@pchovelon
Copy link
Copy Markdown
Author

@jsilvela @itay-grudev I just changed the query to exclude template0 and template1 series.

@jsilvela
Copy link
Copy Markdown

jsilvela commented Mar 2, 2026

@pchovelon not working properly. Malformed JSON. Going to see if I can do a quick fix for you.

@jsilvela
Copy link
Copy Markdown

jsilvela commented Mar 2, 2026

Ah, yes, it's all the unescaped quotes in the JSON...

Copy link
Copy Markdown

@jsilvela jsilvela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unescaped quotes in JSON. I left you a suggestion that fixes it, I hope

Comment thread charts/cluster/grafana-dashboard.json Outdated
@pchovelon
Copy link
Copy Markdown
Author

Anything I can do to see this PR merged ? @jsilvela @itay-grudev
Thx :)

@jsilvela
Copy link
Copy Markdown

@pchovelon did you even read my review from 3 weeks ago? The code as it stands doesn't work.

@pchovelon
Copy link
Copy Markdown
Author

@pchovelon did you even read my review from 3 weeks ago? The code as it stands doesn't work.

Oh I see ... I wrote a review ... but it seems you never get it. You should saw it now. Is it right ? 🤔

@jsilvela
Copy link
Copy Markdown

@pchovelon ok I see it now, but I'm confused. The only difference I see between your fix and mine is that you have two newlines. I'll have to test this ... later, possibly today can't promise.

@jsilvela
Copy link
Copy Markdown

jsilvela commented Apr 6, 2026

For the sake of readability of this thread (tsk, Github).
Your proposed edit will work, so I'll approve after you apply @pchovelon

@jsilvela jsilvela self-requested a review April 8, 2026 08:55
pchovelon and others added 4 commits April 13, 2026 14:05
Signed-off-by: Pierrick Chovelon <pierrick.chovelon@dalibo.com>
Signed-off-by: Pierrick <139142330+pchovelon@users.noreply.github.com>
Signed-off-by: Pierrick <139142330+pchovelon@users.noreply.github.com>
Signed-off-by: Pierrick <139142330+pchovelon@users.noreply.github.com>
@sxd sxd force-pushed the add-more-panels branch from bd2d711 to 95f781a Compare April 13, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants