In simplexml you can normal do something like the following
<panel>
<title>Single value one</title>
<single>
<search> blah </search>
</single>
<title>TSingle value two</title>
<single>
<search> blah </search>
</single>
</panel>
This would give you two nice single panels right next to each other.
I can't seem to get the same behaviour with the water gauge.
Even if I add it inside the same panel it will be on a brand new row.
Current
What I am after
Following is a run anywhere example based on @nsanchezfernandez 's answer. Padding has been added on top of the panel to push visualization a bit down in the panel.
<dashboard>
<label>Mutiple Watergauges in same Panel</label>
<row>
<panel depends="$alwaysHideCSSPanel$">
<html>
<style>
#panel1 .panel-element-row {
width: 50%;
padding-top:20px;
}
#panel1 .dashboard-panel {
display: flex;
}
</style>
</html>
</panel>
<panel id="panel1">
<viz type="cuviz_water_gauge.water_gauge">
<search>
<query>index=_internal sourcetype=splunkd component="Metrics"
| top 1 component showcount=f
| table percent</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="drilldown">none</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
</viz>
<viz type="cuviz_water_gauge.water_gauge">
<search>
<query>index=_internal sourcetype=splunkd component!="Metrics"
| top 1 component showcount=f
| table percent</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="drilldown">none</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
</viz>
</panel>
</row>
</dashboard>
How will you drill down?
hi can you please write and explain the full command for this...I not understand it clearly
Seeing from web page Dom tree, seems splunk will generate <...custom viz element... > for each custom viz even you put the into one panel. I think that means, by default, each custom viz will be in a separarte row...
Unfortunately the documentation seems to support that only Single value visualizations will group horizontally.
There was another way to do it in an answer on this question with what seems incorporating a script but it seems overly complex for what you would think would be such a simple task
Might double check the most recent examples app and see if they use any weird alignment method or extension.
take a look at the answer they gave here https://answers.splunk.com/answers/221370/splunk6-group-visualization-elements-horizontally.html
Why cant you put them in two different panels on the same row?
I am already grouping multiple singles together in panels.
The panels form the columns. All other normal viz styles support this.