Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solr metrics #291

Draft
wants to merge 7 commits into
base: monitoring
Choose a base branch
from
Draft

Solr metrics #291

wants to merge 7 commits into from

Conversation

mwiencek
Copy link
Member

This is based on #290 and I'm launching it in the same way (admin/configure add monitoring + docker compose up -d).

I followed https://solr.apache.org/guide/solr/latest/deployment-guide/monitoring-with-prometheus-and-grafana.html and copied the default dashboard under contrib/, only fixing the Prometheus data source name.

reosarevok and others added 7 commits December 13, 2024 17:56
This is based on https://grafana.com/grafana/dashboards/14114-postgres-overview/
with an extra check for max query duration that seemed interesting,
and is mostly intended as a proof of concept for provisioning dashboards.
We can further improve the dashboard as needed.
As a start, monitor the amount of rows on sir-indexed tables.

Includes a dashboard with gauges for every table; I don't see
a reason why it would be useful to have these be line charts since
there's no reason we should expect huge jumps, it's just good
to have a clear idea of which tables are bigger with the numbers.
There seems to be no good reason why we would keep hitting the DB
every 30 seconds to get the counts. 5 minutes seems more than enough.

My understanding is that if I set min_interval here to 300s (5m)
it will just keep the value for that long and keep responding with it,
however often prometheus asks.
* origin/provision-psql-dashboard:
  Only run table counts every 5 minutes
  Set up sql-exporter to monitor db content
  Provision a basic PSQL dashboard for grafana
@mwiencek
Copy link
Member Author

There's a temporary commit here that requires you to build a local metabrainz/mb-solr:solr-9.7.0 image from the solr-9.7.0 branch of the mb-solr repository first:

docker build -t metabrainz/mb-solr:solr-9.7.0 -f Dockerfile .

@reosarevok
Copy link
Member

This works nicely locally - to be honest I have zero clues what is useful data for solr for us, but in https://docs.google.com/document/d/1vQBiHdxO_qkmxUAfS10QWhoULSYcPazxZWSxsxJMS9o/edit?pli=1&tab=t.0 we wanted "Number of collection documents & Data size" - is that in there? There's so much stuff, we should document exactly where to look if so!

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.

2 participants