oracle / oci-grafana-logs

Grafana datasource plugin for OCI logs
https://grafana.com/grafana/plugins/oci-logs-datasource
Universal Permissive License v1.0
12 stars 12 forks source link

Not able to configure data source in Grafana Cloud (Grafana v11.1.0-69051 (9d44c8e8cf)) #117

Open 0x01F4 opened 7 months ago

0x01F4 commented 7 months ago

Grafana Cloud version: v11.1.0-69051 (9d44c8e8cf) oci-logs-datasource version: 4.0.2

When trying to configure the datasource below error occurs in UI.oci-metrics-datasource is working in same Grafana version

`An unexpected error happened TypeError: Attempted to assign to readonly property.

F@ div vt@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/Connections.5ec3a2949b5ef0cf667d.js:48:2353 o@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/9602.ccb8f3676ec5906e3096.js:1:192 form Pt@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/Connections.5ec3a2949b5ef0cf667d.js:56:1928 At@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/Connections.5ec3a2949b5ef0cf667d.js:56:1481 d@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/9602.ccb8f3676ec5906e3096.js:370:18134 div div div div X@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:903:4472 c@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/9602.ccb8f3676ec5906e3096.js:194:29736 u div V@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/9602.ccb8f3676ec5906e3096.js:370:21864 wt@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/Connections.5ec3a2949b5ef0cf667d.js:56:5002 Bt@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/Connections.5ec3a2949b5ef0cf667d.js:56:5352 K@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1048:29160 K@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1048:31337 Gt@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/Connections.5ec3a2949b5ef0cf667d.js:64:2099 Suspense l@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/9602.ccb8f3676ec5906e3096.js:194:124027 mo@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/9602.ccb8f3676ec5906e3096.js:315:10982 K@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1048:29160 or@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1039:4480 ls@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1039:12025 kt@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1048:17411 K@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1048:31337 main div div div Ts@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/9602.ccb8f3676ec5906e3096.js:315:2467 div Kr@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/9602.ccb8f3676ec5906e3096.js:315:6888 or@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1039:4480 ls@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1039:12025 as@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1039:11388 pr@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1048:17696 K@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1048:25376 g@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:112:8958 v@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1383:97064 u@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/9602.ccb8f3676ec5906e3096.js:610:21215 l@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/9602.ccb8f3676ec5906e3096.js:194:124027 f@ ot@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/885.0dcda3e8870234b9d9f5.js:1020:532 $i@https://grafana-assets.grafana.net/grafana/11.1.0-69051/public/build/9602.ccb8f3676ec5906e3096.js:326:132`

mamorett commented 7 months ago

Hi @giri-vsr . Grafana 11 is not yet supported by the OCI logs plugin.

mamorett commented 2 months ago

Version 5.0.0 now supports Grafana11

Phil57 commented 2 months ago

This doesn't seem to fix it for me

`An unexpected error happened Details TypeError: Cannot assign to read only property 'profile0' of object '[object Object]'

at V (https://xxxxx.grafana.net/public/plugins/oci-logs-datasource/module.js?_cache=5.0.0:2:8167)
at div
at Ds (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/Connections.7281e15e849c49f5833b.js:48:2374)
at o (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:1:183)
at form
at Ls (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/Connections.7281e15e849c49f5833b.js:48:5837)
at Is (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/Connections.7281e15e849c49f5833b.js:48:5394)
at a (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:205:17339)
at div
at div
at h (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:170:2036)
at div
at F (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:205:21257)
at Us (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/Connections.7281e15e849c49f5833b.js:48:8771)
at ws (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/Connections.7281e15e849c49f5833b.js:48:9167)
at je (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:317:25343)
at je (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:317:27534)
at qs (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/Connections.7281e15e849c49f5833b.js:56:2222)
at Suspense
at h (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:12:134183)
at ae (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:159:7133)
at je (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:317:25343)
at ve (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:317:4578)
at We (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:317:12253)
at tr (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:308:18051)
at je (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:317:27534)
at div
at https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/3719.5a4f40f493866b9b64b2.js:1:134086
at main
at div
at div
at div
at lo (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:161:2401)
at yi (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:161:7883)
at ve (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:317:4578)
at We (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:317:12253)
at Le (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:317:11583)
at gr (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:308:18353)
at P (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:5:186772)
at je (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:317:21506)
at Ei (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:161:9318)
at div
at d (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:1944:26584)
at p (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/7639.c24f5a5a1fe43e49c3d2.js:152:9137)
at C (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/4239.a47a62e15d81a0718c37.js:186:17460)
at i (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/3719.5a4f40f493866b9b64b2.js:24:11903)
at h (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:12:134183)
at l (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:12:134692)
at Jn (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/4239.a47a62e15d81a0718c37.js:190:507)
at Fo (https://grafana-assets.grafana.net/grafana/11.3.0-75826/public/build/1180.a1da278974184b635bb5.js:161:11005)`
bscarbrough commented 3 weeks ago

@mamorett, why is this issue closed? The error still happens in Grafana Cloud. I've tried every browser/OS combination I can think of to rule out anything on my side, and I get this error every time:

An unexpected error happened
Details
TypeError: Cannot assign to read only property 'profile0' of object '[object Object]'

    at V (https://kasmtech.grafana.net/public/plugins/oci-logs-datasource/module.js?_cache=5.0.1:2:8498)
    at div
    at Ds (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/Connections.459b7dcfccbbc964b78c.js:48:2376)
    at a (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:1:183)
    at form
    at Is (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/Connections.459b7dcfccbbc964b78c.js:48:5839)
    at Ms (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/Connections.459b7dcfccbbc964b78c.js:48:5396)
    at d (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:196:17912)
    at div
    at div
    at n (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:161:42475)
    at div
    at K (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:196:21807)
    at Us (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/Connections.459b7dcfccbbc964b78c.js:48:8777)
    at $s (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/Connections.459b7dcfccbbc964b78c.js:48:9176)
    at be (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/307.ca9ce46cf9af929fba4e.js:291:4579)
    at Qe (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/307.ca9ce46cf9af929fba4e.js:291:12242)
    at Xs (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/Connections.459b7dcfccbbc964b78c.js:56:2223)
    at Suspense
    at p (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:12:138478)
    at Q (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:159:6828)
    at ee (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:159:7490)
    at be (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/307.ca9ce46cf9af929fba4e.js:291:4579)
    at Qe (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/307.ca9ce46cf9af929fba4e.js:291:12242)
    at div
    at https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/8484.6023d5057c21c3921545.js:1:135642
    at main
    at div
    at div
    at div
    at _a (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:161:5153)
    at po (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:161:10681)
    at d (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:1300:2453)
    at be (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/307.ca9ce46cf9af929fba4e.js:291:4579)
    at Qe (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/307.ca9ce46cf9af929fba4e.js:291:12242)
    at Fe (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/307.ca9ce46cf9af929fba4e.js:291:11572)
    at Sn (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/307.ca9ce46cf9af929fba4e.js:282:18353)
    at y (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:5:190174)
    at Xe (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/307.ca9ce46cf9af929fba4e.js:291:21507)
    at Qr (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:161:12166)
    at div
    at d (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:1476:24683)
    at g (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/307.ca9ce46cf9af929fba4e.js:147:9128)
    at A (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/214.a0012c608e21a3ee3c8f.js:180:17554)
    at i (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/8484.6023d5057c21c3921545.js:24:12176)
    at p (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:12:138478)
    at i (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:12:138987)
    at pn (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/214.a0012c608e21a3ee3c8f.js:184:507)
    at xo (https://grafana-assets.grafana.net/grafana/11.4.0-77868/public/build/7733.528bf84bd45de12856ac.js:161:13887)

Here is the installed plugin info: image

mamorett commented 3 weeks ago

I could not reproduce yet your issue. However I will reopen it and I will have a look.

mamorett commented 2 weeks ago

Hi. I just created a new datasource in Grafana Cloud using OCI Logs plugin 5.0.1 and it works without any problem image Can you try to reconfigure the datasource from scraatch ? Maybe you got some issue in your datasource.

Phil57 commented 2 weeks ago

Tried to delete the datasource and create a new one, as soon that I try to enter the user OCID I get the error

DS

`TypeError: Cannot assign to read only property profile0 of object [object Object]

at V (https://xxxxxx.grafana.net/public/plugins/oci-logs-datasource/module.js?_cache=5.0.1:2:8498)
at div
at Ds (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/Connections.459b7dcfccbbc964b78c.js:48:2376)
at a (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:1:183)
at form
at Is (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/Connections.459b7dcfccbbc964b78c.js:48:5839)
at Ms (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/Connections.459b7dcfccbbc964b78c.js:48:5396)
at d (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:196:17912)
at div
at div
at n (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:161:42554)
at div
at K (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:196:21807)
at Us (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/Connections.459b7dcfccbbc964b78c.js:48:8777)
at $s (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/Connections.459b7dcfccbbc964b78c.js:48:9176)
at Re (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/7681.c245cee2a38203f30ba3.js:291:4579)
at Ye (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/7681.c245cee2a38203f30ba3.js:291:12258)
at Xs (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/Connections.459b7dcfccbbc964b78c.js:56:2223)
at Suspense
at g (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:12:140090)
at se (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:159:6853)
at ne (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:159:7515)
at Re (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/7681.c245cee2a38203f30ba3.js:291:4579)
at Ye (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/7681.c245cee2a38203f30ba3.js:291:12258)
at div
at https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/8484.6023d5057c21c3921545.js:1:135642
at main
at div
at div
at div
at Rr (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:161:5153)
at po (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:161:10681)
at d (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:1300:2453)
at Re (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/7681.c245cee2a38203f30ba3.js:291:4579)
at Ye (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/7681.c245cee2a38203f30ba3.js:291:12258)
at ke (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/7681.c245cee2a38203f30ba3.js:291:11588)
at hn (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/7681.c245cee2a38203f30ba3.js:282:18364)
at y (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:5:190356)
at ze (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/7681.c245cee2a38203f30ba3.js:291:18097)
at _r (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:161:12166)
at div
at d (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:1476:24683)
at v (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/7681.c245cee2a38203f30ba3.js:147:9149)
at A (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/214.b05f62af9760e5ab800c.js:180:17548)
at i (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/8484.6023d5057c21c3921545.js:24:12176)
at g (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:12:140090)
at o (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:12:140599)
at hn (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/214.b05f62af9760e5ab800c.js:184:507)
at qr (https://grafana-assets.grafana.net/grafana/11.4.0-78029/public/build/3240.1206d9b86a67051a9358.js:161:13887)`
bscarbrough commented 2 weeks ago

Same here, still having the same issue. I even uninstalled and reinstalled with the same results. Also, this is in Grafana Cloud, I don't know if that makes a difference or not.

bscarbrough commented 1 week ago

@mamorett, has there been an update on this issue?

mamorett commented 5 days ago

We are investigating. So far we were not able to reproduce the issue, which is quite weird. But we are digging into it.

jvinaya commented 5 days ago

Here’s the latest update: We were able to reproduce the issue in Grafana Cloud. A follow-up story has been added to our backlog to address this. We will provide updates here as we make progress toward a fix.