I need to transition to use Grafana Cloud Loki. I’m not finding the resources I need, maybe I don’t know the keywords to google, and I’m really at a loss.
In your account portal, click on the “details” button next to Loki to find the Loki username (which is the instance ID) and generate an API Key or Access Policy token for auth.
The Loki HTTP API endpoint for your Grafana Cloud’s instance should look something like https://$region.grafana.net/loki/api/v1/push
Access to fetch at 'https://<this>.grafana.net/loki/api/v1/query_range?query=%7Bjob%3D%22bobjobs%22%7D' from origin 'http://<wherever>.net' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
Hello,friends.Have you already solved this problem?I use the cURL tool and request the Loki API:curl -s -u “7xxx4:” https://logs-prod-020.grafana.net/loki/api/v1/labels,and I can get the right results:{“status”:“success”,“data”:[“container_name”,“filename”,“instance”,“job”,“namespace”,“stream”]}