Uptime.com-authentication issue #1037
Unanswered
alandreasyans
asked this question in
Specific APIs
Replies: 1 comment
-
The Configuring/adding the API key authentication settings in the Grafana query options would solve this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I want to connect to uptime.com to be able to get the status of my services and visualize in the grafana, however getting an issue error getting data frame. 401 Unauthorized. As for the prefix it uses not a bearer token I've used the API key value pair type for the authentication and specified "Token" as the key and the token itself as value.
With a usual curl command I was able to get details from uptime.com
Below is the official documentation of uptime.com how the token can be used.
API Access
To access our API programatically, you must pass one of the below API keys via a HTTP Header with a key name of "Authorization" and a key prefix of "Token" with the below API Key.
Raw HTTP Example:
GET /api/v1/
Authorization: Token token_value
CURL Example:
curl -H "Authorization: Token token_value" https://uptime.com/api/v1/
Steps to reproduce
Provide steps to reproduce the issue.
Register for uptime.com(it has a trial option) then by using a token try to visualize some data with it by providing the https://uptime.com/api/v1/ as the URL and authentication mechanism as described.
Screenshots
Version Details:
Additional context
Thanks in advance!!
Beta Was this translation helpful? Give feedback.
All reactions