How to use this with Mimir? #1127
Replies: 1 comment
-
Seems like they don't plan on supporting Mimir according to this issue which is a real bummer, would be super nice. I did try setting up a remote read similar to what that issue mentioned and I think it's working? I'll leave my steps below but it's by no means optimal so this is probably where I'll stop. Would be interested if there was a better way... Remote read setupTo start, the setup I was testing was using a Mimir instance running in a k8s cluster so there is some clunkiness with port forwarding and it might be better to hit it directly. Gather the rulesFirst had to grab the rules from the Mimir ruler since there is no remote read for rules. Used the > kubectl port-forward svc/mimir-ruler 13498:8080
# Get the rules for `my-tenant` and format them as prometheus rules
> curl 'http://localhost:13498/ruler/rule_groups' | yq '.my-tenant.[] | {"groups": .}' > my-tenant-rules.yaml I wanted to use the Run Prometheus locallyWith the rules then we just need to run prometheus locally with the following config and pointing to the mimir-gateway... > kubectl port-forward svc/mimir-gateway 8888:80
> prometheus --config.file=remote-prometheus-config.yaml remote-prometheus-config.yamlremote_read:
- url: http://localhost:8888/prometheus/api/v1/read
name: mimir
headers:
X-Scope-OrgID: my-tenant
rule_files:
- my-tenant-rules.yaml
# Scrape itself so it can expose the `prometheus_build_info` metric
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090'] Run pintWith all that then can run > pint watch rule_files testing .pint.hclprometheus "testing" {
uri = "http://localhost:9090"
uptime = "prometheus_build_info"
} I will say my port-forwarding was not having a good time so the pint metrics weren't the best indicator of what was working or not. Might work better if it's running in the cluster 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hey folks.
Just found out about this great tool. Wanted to start playing around with it however curious to know how this would work with Mimir instead of a local prom instance.
I've tried various configs but pint is returning various 404s.
Beta Was this translation helpful? Give feedback.
All reactions