-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't seem to work with cloudflare analytics and grafana cloud #723
Comments
Try splitting the values in the URL Cloudflare gives you: The server address would be Let me know if this works for you. The HTTP headers feature was specifically added to support this so I appreciate the feedback. |
@SpencerTorres I split up the url. I get a different error. "connection timed out" when i save and test. It first says "testing it could take a few minutes" then times out. i don't see any logs. i tried with and without a leading slash i'm using the default server port. The cloudflare instructions don't give one, but i'm assuming their using the https ports. I've pinged their 443 and 8443 ports and it seems to be valid. |
Good idea with the ports, I looked at the other plugin's UI and it seems like Cloudflare would be exposing In the network log screenshot you showed, the "response" tab would have more information about the error. My next guess is that this is some kind of auth or permission issue, perhaps similar to this one |
@SpencerTorres
• GET https://askluna.grafana.net/api/datasources/uid/<redacted>/health module.ts:31 G
500 (Internal Server Error)
eval
B.r. <computed>
e. ‹computed>. e. ‹computed>
(anonymous)
(anonymous)
Re. add
(anonymous)
Ae. publishUpdate
(anonymous )
Ae. add
(anonymous)
K
callHealthCheck
testDatasource
(anonymous)
withNoBackendCache
(anonymous )
await in (anonymous) (async)
(anonymous )
fe @ module.ts:31
@ module.ts:31
@ (index):1
backend srv.ts: 131
@ ResponseQueue.ts: 32
@ ResponseQueue. ts: 37
@ FetchQueueWorker.ts: 56
@ FetchQueue. ts: 76
@ FetchQueue. ts:55
@ FetchQueue.ts:59
@ backend srv.ts: 136
@ module.ts: 31
@ DataSourceWithBackend.ts: 352
@ DataSourceWithBackend.ts: 369
@ actions.ts: 147
@ backend srv. ts: 485
@ actions.ts: 145
hooks. ts: 47
EditDataSource. tsx: 136
await in fe (async) if i use 8443 its an invalid port as you said |
i'm using the free grafana cloud instance fyi https://grafana.com/get/?pg=graf&plcmt=hero-btn-1 |
Still investigating this using my own Cloudflare account. This is the error it's returning on the plugin backend: Raw error:
Manually formatted/corrected error: {
"@level": "error",
"@message": "clickhouse: unsupported column type",
"@timestamp": "2024-02-28T01:49:55.600261-05:00",
"<manuallyFormatted>": {
"raw": "\"\\n\\t\\t{\\n\\t\\t\\t\\\"name\\\": \\\"timezone()\\\",\\n\\t\\t\\t\\\"type\\\": \\\"String\\\"\\n\\t\\t}\\n\\t],\\n\\n\\t\\\"data\\\":\\n\\t[\\n\\t\\t{\\n\\t\\t\\t\\\"timezone()\\\":\"",
"formatted": {
"data": [
{
"timezone()": {
"name": "timezone()",
"type": "String"
}
}
]
}
}
} Error string formatted: {
"name": "timezone()",
"type": "String"
}
],
"data":
[
{
"timezone()": |
I'm also encountering this issue, and would love if there's some solution. The alternative 3rd party Altinity plugin allows you to query data in Grafana. However the latest version has multiple problems for Cloudflare. |
I'm not sure why it would be reporting a I'll need to see where it runs this query, but if we can disable it, then it could work. It seems like your queries would be very limited though if it doesn't allow these other data types. |
What happened:
I'm trying to connect my grafana cloud instance with clickhouse over https. The clickhouse instance is from cloudflare
api.cloudflare.com/client/v4/accounts/xxx/analytics_engine/sql
where xxx is the account id.
here is a screen shot
i've entered my authorization token as specified in the docs
What you expected to happen:
I expect the connection to work. instead i see plugin health failed
How to reproduce it (as minimally and precisely as possible):
Screenshots
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: