opentelemetry-demo icon indicating copy to clipboard operation
opentelemetry-demo copied to clipboard

Grafana doesn't work without an Internet connection

Open flands opened this issue 1 week ago • 2 comments

Bug Report

Which version of the demo you are using? 1.10.0

Symptom

If you attempt to start the demo application without an Internet connection (containers already pulled down), then Grafana is not access and restarts every minute

What is the expected behavior?

If you have the demo environment containers locally, then the demo environment should work without an Internet connection.

What is the actual behavior?

The demo environment requires an Internet connection for Grafana to work even if container are already pulled down.

Reproduce

Pull version 1.10.0 and run make start-minimal with an Internet connection. Once running, run make stop. Disable your Internet. Run make start-minmal. Once running, attempt to access Grafana.

Additional Context

If you look at the logs for Grafana without an Internet connection you will see: Error: ✗ Get "https://grafana.com/api/plugins/grafana-opensearch-datasource/versions": dial tcp: lookup grafana.com on 127.0.0.11:53: no such host

I see several potential issues. The root cause appears to be because src/grafana/provisioning/datasources/opensearch.yaml has access: proxy set. If you remove this, the issue is resolved. I can make this change if everyone is aligned.

Beyond this, it appears src/grafana/grafana.ini has check_for_updates = true and check_for_plugin_updates = true. I'm not sure whether this will result in Grafana being unavailable, but also seems unnecessary for the demo environments. I can make this change if everyone is aligned.

flands avatar Jun 23 '24 19:06 flands