Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Unable to set iframe height in uchiwa #775

Open
richard-gb opened this issue Apr 17, 2018 · 0 comments
Open

Unable to set iframe height in uchiwa #775

richard-gb opened this issue Apr 17, 2018 · 0 comments
Labels

Comments

@richard-gb
Copy link

richard-gb commented Apr 17, 2018

It seems that iframe implementation for uchiwa doesn't support dynamic width and height options, like in native html

At this moment iframe option works amazingly, but width and height options can't be modified.

The following is one of my checks

{
 "checks":{
  "Windows-Memory": {
   "handlers": ["mailer"],
   "command": "powershell.exe  c:\\opt\\sensu\\plugins\\check-memory.ps1",
   "interval": 60,
   "subscribers": ["Windows"],
   "VM-SRVSP02-MEMORY": "iframe:http://192.168.10.238:3020/d-solo/YX1cX3mik/srvsp02?refresh=5s&orgId=1&panelId=8"
  }
 }
}

With the iframe option, uchiwa dashboard shows the following output:

image

As can be seen, because of the default height, the chart reduces its Y axis to only 3 values:

  • 100%
  • 50%
  • 0%

Expected Behavior

By using html code, as an example, with a width of 450 and two different heights of 200 and 300

<html>
<iframe src="http://192.168.10.238:3020/d-solo/YX1cX3mik/srvsp02?refresh=5s&orgId=1&panelId=8" width="450" height="200" frameborder="0"></iframe>
<br>
<iframe src="http://192.168.10.238:3020/d-solo/YX1cX3mik/srvsp02?refresh=5s&orgId=1&panelId=8" width="450" height="300" frameborder="0"></iframe>
</htm>

As can be seen in the image below, the 2nd iframe with height of 300, shows more values on its Y axis

image

It is possible to implement a solution for this issue with iframe usage?

@richard-gb richard-gb changed the title Unable to set iframe height Unable to set iframe height within uchiwa Apr 17, 2018
@richard-gb richard-gb changed the title Unable to set iframe height within uchiwa Unable to set iframe height in uchiwa Apr 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants