Hi @bandorko
I have a central LGTM stack running on K8s and from grafana-agents on all our clusters, I can see metrics written for different tenant ids, so multi-tenancy works on Mimir side.
Using same test script, I got following results.
If I use following command I get that “status code: 401” message in K6 run command output
K6_PROMETHEUS_RW_HTTP_HEADERS="X-Scope-OrgID:demo" K6_PROMETHEUS_RW_PASSWORD=<redacted> K6_PROMETHEUS_RW_USERNAME=<redacted> K6_PROMETHEUS_RW_SERVER_URL=https://prometheus.<redacted>.com/api/v1/push k6 run -o experimental-prometheus-rw test_script.js
If I use following, no errors and all sent to our Mimir… I can visualize with Grafana using a Datasource defined with X-Scope-OrgID:anonymous
K6_PROMETHEUS_RW_PASSWORD=<redacted> K6_PROMETHEUS_RW_USERNAME=<redacted> K6_PROMETHEUS_RW_SERVER_URL=https://prometheus.<redacted>.com/api/v1/push k6 run -o experimental-prometheus-rw test_script.js