Bobcares

Grafana Docker allow_embedding | About

by | May 8, 2023

Learn more about the Grafana Docker allow_embedding feature from our experts. Our Docker Support team is here to help you with your questions and concerns.

An Introduction to Grafana Docker allow_embedding feature

Did you know that we have access to the allow_embedding feature when we run Grafana as a Docker container?

According to our experts, this feature allows us to embed Grafana dashboards into other websites or applications via an iframe. To put it in simple terms, we can display our Grafana dashboard on another website or application by adding an iframe pointing to the Grafana instance running within our Docker container.

We can easily enable allow_embedding, by using the GF_SECURITY_ALLOW_EMBEDDING environment variable when we start our Grafana Docker container.

For instance:

docker run -d -p 3000:3000 \ -e "GF_SECURITY_ALLOW_EMBEDDING=true" \ grafana/grafana

After enabling the feature, we can easily generate an embed code for our Grafana dashboards. This is done by clicking the Share button followed by Embed in the top right corner of the dashboard.

This results in an HTML code snippet. We can copy and paste this snippet into our website or application to display the dashboard.

Our experts would like to point out that when we generate an embed code, Grafana generates a unique API key associated with the embedded dashboard.

Furthermore, this API key is responsible for authenticating requests from the embedded dashboard to the Grafana instance running within our Docker container.

Additionally, we can mention which dashboards or panels are allowed to be embedded, as well as set a time limit for the API key validity.

However, our experts caution that enabling the allow_embedding feature can expose our Grafana instance to security risks. In other words, it enables external websites or applications to access our Grafana dashboards.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

In summary, our Support Techs introduced us to the Grafana Docker allow_embedding feature and the benefits offered by it.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.