GoogleCloudPlatform / cloud-logging-data-source-plugin

https://grafana.com/grafana/plugins/googlecloud-logging-datasource/
Apache License 2.0
17 stars 13 forks source link

failed to run test query: list entries: timeout #63

Open reuvygroovy opened 9 months ago

reuvygroovy commented 9 months ago

When testing the datasource I get the following error: failed to run test query: list entries: timeout

I have had similar problem also when connecting via python, and found I could use the the following switch to disable grpc:

logging_client = logging.Client(project=project_id, _use_grpc=0)

Is there a way to disable grpc in the plugin?

My query works just fine since when I click on the View in Cloud Logging button I can see my data. This is just the connection method.

xiangshen-dk commented 9 months ago

The plugin has never been tested with grpc disabled. Actually, it's probably won't function correctly. When you have the connection issue, is that caused by network or something else?

reuvygroovy commented 9 months ago

We found it related to either one of both of the following: 1. using a proxy server 2. The network/security appliance at the edge uses HTTPS Inspection.

We had this issue with Python and only by disabling the proxy and/or HTTPS Inspection did we get around this. Of course if you app is already in GCP there is no issue. Here we were accessing the site remotely.

xiangshen-dk commented 8 months ago

The logging client we use for this plugin is on gRPC. Unfortunately, it's not trivial to support an HTTPClient based communication.