0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-16 14:58:49 +00:00
libsql/libsql-server/scripts/run_prometheus_docker.sh
Piotr Sarna 1f8973a476 scripts: add a dockerized prometheus helper
It makes metrics development easier, with the prometheus image
already seeded with configuration that scrapes events
from localhost:8081.

Runs properly with `cargo run -- --admin-listen-addr 0.0.0.0:8081`
2023-11-02 15:15:26 +01:00

4 lines
164 B
Bash
Executable File

#!/usr/bin/env sh
docker run --net=host --rm --name libsql-server-prometheus -v $(dirname $0)/prometheus_docker.yml:/etc/prometheus/prometheus.yml prom/prometheus