Sign inSign up

n8500x/sql-server-rca-assistant-collector

By n8500x

Updated about 2 months ago

DMV collector for the SQL Server RCA Assistant monitoring stack (optional companion image).

Image
0

197

n8500x/sql-server-rca-assistant-collector repository overview

sql-server-rca-assistant-collector

Companion image to n8500x/sql-server-rca-assistant — the DMV collector for its optional monitoring stack. You only need this image if you want ClickHouse-backed recent-vs-baseline trend analysis; the assistant runs fine without it.

What it does

Continuously polls a SQL Server target's DMVs (wait stats, blocking chains, memory grants, query stats, schedulers, file stats, missing indexes) plus First Responder Kit results, and writes them into ClickHouse. Exposes a small Flask health/incident API on :8080 (GET /health).

SQL Server ──(DMV polling every N s)──▶ collector ──▶ ClickHouse ──▶ Grafana / the assistant

Not standalone

This image is meant to be deployed by the project's Helm chart (monitoring.deploy=true) or openshift/monitoring/, which wire it to ClickHouse and SQL Server. Run directly only for testing:

docker run --rm -p 8080:8080 \
  -e SQLSERVER_HOST=mssql -e SQLSERVER_USER=sa -e SQLSERVER_PASSWORD='YourSecurePassword123!' \
  -e SQLSERVER_DATABASE=master \
  -e CLICKHOUSE_HOST=clickhouse -e CLICKHOUSE_PORT=8123 \
  -e CLICKHOUSE_DATABASE=rca_metrics -e CLICKHOUSE_USER=rca -e CLICKHOUSE_PASSWORD=rca_password \
  -e COLLECTION_INTERVAL=5 \
  n8500x/sql-server-rca-assistant-collector:latest

Environment

VariableDefaultPurpose
SQLSERVER_HOST / _PORT / _USER / _PASSWORD / _DATABASE— / 1433 / sa / — / masterTarget SQL Server
CLICKHOUSE_HOST / _PORT / _DATABASE / _USER / _PASSWORD— / 8123 / rca_metrics / rca / rca_passwordClickHouse sink
COLLECTION_INTERVAL5Seconds between polls

Built from the pinned upstream commit of dzigz/sql-server-rca-assistant (sim/docker/collectors/dmv). Runs as a non-root, OpenShift-arbitrary-UID-clean container. Tags: latest + dated YYYYMMDD-HHMMSS. License: MIT (upstream).

Tag summary

Content type

Image

Digest

sha256:ef65a2588

Size

98.6 MB

Last updated

about 2 months ago

docker pull n8500x/sql-server-rca-assistant-collector