-
Notifications
You must be signed in to change notification settings - Fork 852
API is only returning 404 #1872
Description
I am hoping someone can assist or point me in the right direction.
I am configuring cortex fresh per the getting started documentation to connect to a already existing prometheus/grafana etc. So basically nothing is currently trying to push or pull anything from/to Cortex
Before connecting it to either of those pieces I want to verify Cortex is good to go so I thought doing a couple api calls would confirm this for me.
No matter what API call I try though I am only getting 404 page not found. Cortex seems to only be listening on the ipv6 address
tcp6 0 0 :::9009 :::* LISTEN 23371/./cortex
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 :::9095 :::* LISTEN 23371/./cortex
I tried changing the ip address in single-process-config.yml to its assigned ip address, or even 127.0.0.1, but Cortex still continues to start up with
level=info ts=2019-12-03T16:38:28.895228587Z caller=server.go:117 http=[::]:9009 grpc=[::]:9095 msg="server listening on addresses"
Granted I am not sure if any of the ip stuff is related to the api returning 404, but I am not sure why I can't get any api returns.
Here are just a couple of the calls I have tried
curl http://[::]:9009/api/prom/configs/rules
404 page not found
curl http://127.0.0.1:9009/api/prom/configs/rules
404 page not found
curl http://127.0.0.1:9009/api/prom/configs/templates
404 page not found
Any help or guidance would be greatly appreciated