Not able to create data source on Oracle Cloud Infrastructure

Hello Team,

I am successfully able to install Grafana , but when I am trying to create data source but I am getting error like "Data source is not working " when i click on test and save.

Errors I found in log
nown desc = list metrircs failed (monitoring.ListMetricsResponse) { RawResponse={404 Not Found 404 HTTP/1.1 1 1 map[Content-Length:[111] Content-Type:[application/json] Date:[Tue, 03 Mar 2020 10:19:44 GMT] Opc-Request-Id:[74c762c618178b418736c40a7941a7b8/BCE7B1CD3FBB8C021FA39008BBAFDA8D/CA953DC404196801718556B113C58A62] X-Content-Type-Options:[nosniff]] 0xc0003612e0 111 [] false false map[] 0xc0001fec00 0xc0004d2210} Items=[] OpcNextPage= OpcRequestId= }\n 404: Service error:NotAuthorizedOrNotFound. Authorization failed or requested resource not found… http status code: 404. Opc request id: 74c762c618178b418736c40a7941a7b8/BCE7B1CD3FBB8C021FA39008BBAFDA8D/CA953DC404196801718556B113C58A62"
t=2020-03-03T10:19:44+0000 lvl=eror msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=POST path=/api/tsdb/query status=500 remote_addr=115.110.104.174 time_ms=13 size=34 referer=http://132.145.209.213:3000/datasources/edit/3/
t=2020-03-03T10:19:44+0000 lvl=eror msg=“Metric request error” logger=context userId=1 orgId=1 uname=admin error=“rpc error: code = Unknown desc = list metrircs failed (monitoring.ListMetricsResponse) { RawResponse={404 Not Found 404 HTTP/1.1 1 1 map[Content-Length:[111] Content-Type:[application/json] Date:[Tue, 03 Mar 2020 10:19:44 GMT] Opc-Request-Id:[b0476fa1749616ffc554ac3d9df3492a/365C77DE867056BE2BA634C2C1E8C0FA/0FFB8CD537C557A54BE9926A60A7C85C] X-Content-Type-Options:[nosniff]] 0xc000365440 111 [] false false map[] 0xc00027e000 0xc0004d2210} Items=[] OpcNextPage= OpcRequestId= }\n 404: Service error:NotAuthorizedOrNotFound. Authorization failed or requested resource not found… http status code: 404. Opc request id: b0476fa1749616ffc554ac3d9df3492a/365C77DE867056BE2BA634C2C1E8C0FA/0FFB8CD537C557A54BE9926A60A7C85C”
t=2020-03-03T10:19:44+0000 lvl=eror msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=POST path=/api/tsdb/query status=500 remote_addr=115.110.104.174 time_ms=16 size=34 referer=http://132.145.209.213:3000/datasources/edit/3/
t=2020-03-03T10:19:45+0000 lvl=eror msg=“Metric request error” logger=context userId=1 orgId=1 uname=admin error=“rpc error: code = Unknown desc = list metrircs failed (monitoring.ListMetricsResponse) { RawResponse={404 Not Found 404 HTTP/1.1 1 1 map[Content-Length:[111] Content-Type:[application/json] Date:[Tue, 03 Mar 2020 10:19:45 GMT] Opc-Request-Id:[5b986cd4181cb89cfde174e5c9c378c0/5D6C31A416D93BD3F5E4CE5C59BFC04F/3BB3E73CF97F636581EFC31AD68B7BD0] X-Content-Type-Options:[nosniff]] 0xc000365aa0 111 [] false false map[] 0xc0001ff000 0xc0004d2210} Items=[] OpcNextPage= OpcRequestId= }\n 404: Service error:NotAuthorizedOrNotFound. Authorization failed or requested resource not found… http status code: 404. Opc request id: 5b986cd4181cb89cfde174e5c9c378c0/5D6C31A416D93BD3F5E4CE5C59BFC04F/3BB3E73CF97F636581EFC31AD68B7BD0”
t=2020-03-03T10:19:45+0000 lvl=eror msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=POST path=/api/tsdb/query status=500 remote_addr=115.110.104.174 time_ms=13 size=34 referer=http://132.145.209.213:3000/datasources/edit/3/
t=2020-03-03T10:19:46+0000 lvl=eror msg=“Metric request error” logger=context userId=1 orgId=1 uname=admin error="rpc error: code = Unknown desc = list metrircs failed (monitoring.ListMetricsResponse) { RawResponse={404 Not Found 404 HTTP/1.1 1 1 map[Content-Length:[111] Content-Type:[application/json] Date:[Tue, 03 Mar 2020 10:19:46 GMT] Opc-Request-Id:[0c9ddd0bd77be2179bee03914f805012/B8AEAE1564F5A086CC16E22B46007DD0/EF33CC258D1DE6447A87BBE415C03202] X-Content-Type-Options:[nosniff]] 0xc000365d

Thanks,
Ayush

What sort of datasource is it and show us how you have configured it.


Please check this screenshot

Sorry, I know nothing about Oracle Cloud. I suggest you start by renaming the thread so it is clear that it is a problem with that. Then you might get the attention of someone who knows about it.

Yes i renamed it , someone pls help me out from this ?

Tries all possibilities , but still same error i saw in log file:

t=2020-03-03T12:21:06+0000 lvl=eror msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=POST path=/api/tsdb/query status=500 remote_addr=115.110.104.174 time_ms=16 size=34 referer=http://132.145.209.213:3000/datasources/edit/4/
t=2020-03-03T12:21:08+0000 lvl=eror msg=“Metric request error” logger=context userId=1 orgId=1 uname=admin error=“rpc error: code = Unknown desc = list metrircs failed (monitoring.ListMetricsResponse) { RawResponse={404 Not Found 404 HTTP/1.1 1 1 map[Content-Length:[111] Content-Type:[application/json] Date:[Tue, 03 Mar 2020 12:21:08 GMT] Opc-Request-Id:[3127c0b96faf7b0012b531077507515e/73BDCF7A1CF173B8CB0C27E88CEC8B66/CE26A7A0F7A41311F644E0A8995BAD43] X-Content-Type-Options:[nosniff]] 0xc0004f0fe0 111 [] false false map[] 0xc0001ea200 0xc000254b00} Items=[] OpcNextPage= OpcRequestId= }\n 404: Service error:NotAuthorizedOrNotFound. Authorization failed or requested resource not found… http status code: 404. Opc request id: 3127c0b96faf7b0012b531077507515e/73BDCF7A1CF173B8CB0C27E88CEC8B66/CE26A7A0F7A41311F644E0A8995BAD43”
t=2020-03-03T12:21:08+0000 lvl=eror msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=POST path=/api/tsdb/query status=500 remote_addr=115.110.104.174 time_ms=98 size=34 referer=http://132.145.209.213:3000/datasources/edit/4/
t=2020-03-03T12:21:08+0000 lvl=eror msg=“Metric request error” logger=context userId=1 orgId=1 uname=admin error=“rpc error: code = Unknown desc = list metrircs failed (monitoring.ListMetricsResponse) { RawResponse={404 Not Found 404 HTTP/1.1 1 1 map[Content-Length:[111] Content-Type:[application/json] Date:[Tue, 03 Mar 2020 12:21:08 GMT] Opc-Request-Id:[a4cc5bdeaee96391b4793aaa238f13e2/0A35240C33E54D397519D2988FEA8C79/DB1B33927F0760C8F0BBAFBAC1806E1C] X-Content-Type-Options:[nosniff]] 0xc0004b8540 111 [] false false map[] 0xc0001ea600 0xc000254b00} Items=[] OpcNextPage= OpcRequestId= }\n 404: Service error:NotAuthorizedOrNotFound. Authorization failed or requested resource not found… http status code: 404. Opc request id: a4cc5bdeaee96391b4793aaa238f13e2/0A35240C33E54D397519D2988FEA8C79/DB1B33927F0760C8F0BBAFBAC1806E1C”
t=2020-03-03T12:21:08+0000 lvl=eror msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=POST path=/api/tsdb/query status=500 remote_addr=115.110.104.174 time_ms=34 size=34 referer=http://132.145.209.213:3000/datasources/edit/4/

Were you able to resolve the issue, if yes please let me know. I’m also having same issue