Skip to content

Instantly share code, notes, and snippets.

@ghostflare76
Last active March 3, 2023 05:57
Show Gist options
  • Save ghostflare76/8a653fa423fd71381739a3659a4307b4 to your computer and use it in GitHub Desktop.
Save ghostflare76/8a653fa423fd71381739a3659a4307b4 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
prometheus:
image: prom/prometheus:v2.40.7
command:
- --web.enable-remote-write-receiver
- --enable-feature=native-histograms
- --config.file=/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
volumes:
- ./etc/prometheus/scrap.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:9.2.6
ports:
- "3000:3000"
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./grafana:/etc/grafana/provisioning/
influxdb:
image: influxdb:1.8
ports:
- "8086:8086"
environment:
- INFLUXDB_DB=k6
k6:
image: ghcr.io/grafana/xk6-client-prometheus-remote:v0.2.4
build: .
ports:
- "6565:6565"
environment:
- K6_OUT=influxdb=http://influxdb:8086/k6
depends_on:
- prometheus
- victoriametrics
volumes:
- ./samples:/scripts
victoriametrics:
image: victoriametrics/victoria-metrics:v1.88.0
ports:
- 8428:8428
volumes:
- vmdata:/storage
command:
- "--storageDataPath=/storage"
- "--httpListenAddr=:8428"
- "--influxListenAddr=:8089"
volumes:
vmdata: {}
https://phind.com/search?cache=97fdca34-d05a-4a35-b3b6-93e7a42d9651
global:
scrape_interval: 10s
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ["victoriametrics:8428"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment