Skip to content

Commit

Permalink
Update playground
Browse files Browse the repository at this point in the history
  • Loading branch information
arunvelsriram committed Aug 13, 2020
1 parent 3c91e22 commit 996efcc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
20 changes: 17 additions & 3 deletions playground/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ services:
- "$PWD/ssh/key_without_passphrase.pub:/home/foo/.ssh/keys/key_without_passphrase.pub"
- "$PWD/ssh/key_with_passphrase.pub:/home/foo/.ssh/keys/key_with_passphrase.pub"
- "$PWD/ssh/sshd_config:/etc/ssh/sshd_config"
sftp-exporter:
container_name: sftp-exporter
hostname: sftp-exporter
sftp-basic-exporter:
container_name: sftp-basic-exporter
hostname: sftp-basic-exporter
build:
context: ../
dockerfile: ./Dockerfile
Expand All @@ -45,3 +45,17 @@ services:
SFTP_USER: foo
SFTP_PASS: password
SFTP_PATHS: "/upload1 /upload2"
prometheus:
container_name: prometheus
hostname: prometheus
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- "$PWD/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml"
grafana:
container_name: grafana
hostname: grafana
image: grafana/grafana
ports:
- "3000:3000"
6 changes: 6 additions & 0 deletions playground/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
global:
scrape_interval: 15s
scrape_configs:
- job_name: sftp-basic
static_configs:
- targets: ["sftp-basic-exporter:8080"]

0 comments on commit 996efcc

Please sign in to comment.