Skip to content

Commit

Permalink
Merge pull request #552 from psarna/prometheus_script
Browse files Browse the repository at this point in the history
scripts: add a dockerized prometheus helper
  • Loading branch information
LucioFranco authored Nov 7, 2023
2 parents 24111a6 + 1f8973a commit 027daa3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions libsql-server/scripts/prometheus_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# my global config
global:
scrape_interval: 5s
evaluation_interval: 5s
scrape_timeout: 4s

scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["127.0.0.1:9090"]
- job_name: "sqld"
metrics_path: "/metrics"
static_configs:
- targets: ["host.docker.internal:8081"]
3 changes: 3 additions & 0 deletions libsql-server/scripts/run_prometheus_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/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

0 comments on commit 027daa3

Please sign in to comment.