Skip to content

Commit

Permalink
Updating URL placeholder in curl example
Browse files Browse the repository at this point in the history
  • Loading branch information
lshippy committed Jan 4, 2024
1 parent 5de95cf commit f11c61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sources/reference/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ curl -u "Tenant1|Tenant2|Tenant3:$API_TOKEN" \
To query against your hosted log tenant in Grafana Cloud, use the **User** and **URL** values provided in the Loki logging service details of your Grafana Cloud stack. You can find this information in the [Cloud Portal](https://grafana.com/docs/grafana-cloud/account-management/cloud-portal/#your-grafana-cloud-stack). Use an access policy token in your queries for authentication. The password in this example is an access policy token that has been defined in the `API_TOKEN` environment variable:
```bash
curl -u "User:$API_TOKEN" \
-G -s "<URL-PROVIDED-IN-DATA-SOURCE-SETTINGS>/loki/api/v1/query" \
-G -s "<URL-PROVIDED-IN-LOKI-DATA-SOURCE-SETTINGS>/loki/api/v1/query" \
--data-urlencode 'query=sum(rate({job="varlogs"}[10m])) by (level)' | jq
```

Expand Down

0 comments on commit f11c61d

Please sign in to comment.