In Grafana Module (icingaweb2-module-grafana) Is it possible to remove the “View in Grafana” link that is presented directly above the Grafana graphs?
The Grafana the module is setup to use iFrames, and I see the link is above (and not a part of the iFrame), but I can’t find in the docs for the Grafana module if this is possible.
Using NETWAYS / icingaweb2-module-grafana
I found where it is being added:
// Add a link to Grafana in the title
if ($this->permission->hasPermission('grafana/showlink')) {
$this->title->add(new Link(
new Icon(
'arrow-up-right-from-square',
['title' => 'View in Grafana']
),
str_replace('/d-solo/', '/d/', $url),
['target' => '_blank', 'class' => 'external-link']
));
}
Need to figure out what $this->permission->hasPermission(‘grafana/showlink’) refers to.
I believe I found it: Settings, Access Control, click a role, then the Grafana Module, and grafana/showlink ( still need to test )
New to Icingaweb and the roles, now I need to figure out why there are separate toggles for checkmarks and red x’s for each option.