allow configuring remove write endpoint
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
		@ -2,6 +2,7 @@
 | 
			
		||||
services:
 | 
			
		||||
  prometheus:
 | 
			
		||||
    image: quay.io/prometheus/prometheus:latest
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
    command:
 | 
			
		||||
      - --enable-feature=native-histograms
 | 
			
		||||
      - --web.enable-remote-write-receiver
 | 
			
		||||
@ -18,6 +19,7 @@ services:
 | 
			
		||||
 | 
			
		||||
  grafana:
 | 
			
		||||
    image: grafana/grafana:latest
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
    environment:
 | 
			
		||||
      GF_AUTH_ANONYMOUS_ENABLED: "true"
 | 
			
		||||
      GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
 | 
			
		||||
 | 
			
		||||
@ -7,7 +7,7 @@ BASE_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
 | 
			
		||||
function _k6 {
 | 
			
		||||
    local filename="${1}"
 | 
			
		||||
 | 
			
		||||
    K6_PROMETHEUS_RW_SERVER_URL=http://localhost:9090/api/v1/write \
 | 
			
		||||
    K6_PROMETHEUS_RW_SERVER_URL=${PROMETHEUS_REMOVE_WRITE_ENDPOINT:-http://localhost:9090/api/v1/write} \
 | 
			
		||||
    K6_PROMETHEUS_RW_TREND_AS_NATIVE_HISTOGRAM=true \
 | 
			
		||||
    K6_PROMETHEUS_RW_PUSH_INTERVAL=1s \
 | 
			
		||||
    k6 run \
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user