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:
 | 
					services:
 | 
				
			||||||
  prometheus:
 | 
					  prometheus:
 | 
				
			||||||
    image: quay.io/prometheus/prometheus:latest
 | 
					    image: quay.io/prometheus/prometheus:latest
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
    command:
 | 
					    command:
 | 
				
			||||||
      - --enable-feature=native-histograms
 | 
					      - --enable-feature=native-histograms
 | 
				
			||||||
      - --web.enable-remote-write-receiver
 | 
					      - --web.enable-remote-write-receiver
 | 
				
			||||||
@ -18,6 +19,7 @@ services:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  grafana:
 | 
					  grafana:
 | 
				
			||||||
    image: grafana/grafana:latest
 | 
					    image: grafana/grafana:latest
 | 
				
			||||||
 | 
					    restart: unless-stopped
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      GF_AUTH_ANONYMOUS_ENABLED: "true"
 | 
					      GF_AUTH_ANONYMOUS_ENABLED: "true"
 | 
				
			||||||
      GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
 | 
					      GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
 | 
				
			||||||
 | 
				
			|||||||
@ -7,7 +7,7 @@ BASE_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
 | 
				
			|||||||
function _k6 {
 | 
					function _k6 {
 | 
				
			||||||
    local filename="${1}"
 | 
					    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_TREND_AS_NATIVE_HISTOGRAM=true \
 | 
				
			||||||
    K6_PROMETHEUS_RW_PUSH_INTERVAL=1s \
 | 
					    K6_PROMETHEUS_RW_PUSH_INTERVAL=1s \
 | 
				
			||||||
    k6 run \
 | 
					    k6 run \
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user