Skip to content

Commit

Permalink
Solr metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiencek committed Feb 3, 2025
1 parent 8c74717 commit c3249b5
Show file tree
Hide file tree
Showing 3 changed files with 8,026 additions and 0 deletions.
24 changes: 24 additions & 0 deletions compose/monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ version: '3.1'
services:
db:
command: postgres -c "shared_buffers=2048MB" -c "shared_preload_libraries=pg_amqp.so, pg_stat_statements" -c pg_stat_statements.track=all

search:
expose:
- 9983

prometheus:
image: prom/prometheus
container_name: prometheus
Expand All @@ -26,9 +31,11 @@ services:
- grafana-storage:/var/lib/grafana
- ./default/grafana-provisioning:/etc/grafana/provisioning
depends_on:
- solr-exporter
- postgres-exporter
- prometheus
- sql-exporter

postgres-exporter:
image: prometheuscommunity/postgres-exporter
container_name: postgres-exporter
Expand Down Expand Up @@ -61,5 +68,22 @@ services:
restart: unless-stopped


solr-exporter:
build:
context: build/solr
args:
- MB_SOLR_VERSION=${MB_SOLR_VERSION:-solr-9.7.0}
image: musicbrainz-docker_search:${MB_SOLR_VERSION:-solr-9.7.0}
container_name: solr-exporter
expose:
- 9854
command: sh -c 'cd /opt/solr-9.7.0/contrib/prometheus-exporter; exec bin/solr-exporter -p 9854 -z search:9983 -f conf/solr-exporter-config.xml'
depends_on:
prometheus:
condition: service_started
search:
condition: service_healthy
restart: unless-stopped

volumes:
grafana-storage: {}
Loading

0 comments on commit c3249b5

Please sign in to comment.