Grafana embedded html and LAN access

Enter the address C:\XXX\XXX\grafana\conf folder, do not change defaults.ini , copy the sample.ini file, and rename it to custom.ini, in grafana, the settings of custom.ini can override defaults.ini

There are two places to change in custom.ini, the first is to control the embedding of grafana into the page, and the second is to log in anonymously

  1. # set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
    allow_embedding = true
  2. #################################### Anonymous Auth ######################
    [auth.anonymous]
    # enable anonymous access
    enabled = true

 Then enter grafana and click share . At this time, no matter whether it is share link or share embed, you need to turn off the Current time range option when sharing , otherwise your time series data cannot be refreshed.

 Finally, it is a beautification. When sharing link, if you only want the panel and nothing else, you can add kiosk.

The kiosk removes all borders:

xxxxxxxx&refresh=1m&kiosk

kiosk=tv removes the left function bar, but does not remove the top.

xxxxxxxx&refresh=1m&kiosk=tv


If the same network segment cannot be accessed, you need to set up a firewall, first enter the firewall advanced settings

 

Then select Inbound Rules, New 

 

 Grafana defaults to port 3000, and then follow the steps to set it up

Guess you like

Origin blog.csdn.net/Cecidit_824/article/details/124363108