Dashboards & Visualizations

How to hide a title on a single value panel in the dashboard?

adubblenie
New Member

Hello,

I want to display two single values on the same line in one panel. Because I only need to use one title for each value, the right value is displaying higher than the left value. I've tried adding in black spaces in the XML to make up for the lack of title, but it's not working. Is there anyway I can fix this? I'm not sure how I would go about fixing it if I used CSS either. Any suggestions?

Tags (5)
0 Karma

fdi01
Motivator

use `` tag to do it like this :

<title>"Value Title"</title>
<description>This example shows description Values </description>
 <row>
 <single>
         <search>
       <query>source="Source" | stats last(StatusCode) as value  | rangemap field=value  low=200-200 default=severe</query>
     </search>
     <option name="classField">range</option>
     <option name="field">value</option>
     <option name="drilldown">none</option>
     <option name="linkView">search</option>
     <option name="underLabel">Availability</option>
   </single>
   <single>
     <search>
       <query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value  low=0-5 elevated=5-10 default=severe</query>
     </search>
     <option name="classField">range</option>
     <option name="field">value</option>
     <option name="drilldown">none</option>
     <option name="linkView">search</option>
     <option name="underLabel">Performance</option>
   </single>
 </row>
0 Karma

adubblenie
New Member

Thanks, but I think that will give the entire tier a title. I want multiple single values lined up in one panel... have a look at my image here to get a better understanding.

http://imgur.com/nke5RTv

Thanks!

0 Karma

adubblenie
New Member
<panel>
  <title>"Title"</title>
  <single>
    <title>"Value Title"</title>
    <search>
      <query>source="Source" | stats last(StatusCode) as value  | rangemap field=value  low=200-200 default=severe</query>
    </search>
    <option name="classField">range</option>
    <option name="field">value</option>
    <option name="drilldown">none</option>
    <option name="linkView">search</option>
    <option name="underLabel">Availability</option>
  </single>
  <single>
    <search>
      <query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value  low=0-5 elevated=5-10 default=severe</query>
    </search>
    <option name="classField">range</option>
    <option name="field">value</option>
    <option name="drilldown">none</option>
    <option name="linkView">search</option>
    <option name="underLabel">Performance</option>
  </single>
0 Karma

MichaelPriest
Communicator

I've put your code into a dashboard but I can't see your issue, could you be a little more descriptive please so i can help.

0 Karma

adubblenie
New Member

Sure. I've added the second title back into the code below for better understanding. Because there is a title on the first Single Value, but not the second, the right value is displaying higher on the panel than the left one. I'd like them to be even, so I basically want to trick the code into thinking there is a title on the second Single Value so they display correctly.

 <title>"Value Title"</title>
 <search>
   <query>source="Source" | stats last(StatusCode) as value  | rangemap field=value  low=200-200 default=severe</query>
 </search>
 <option name="classField">range</option>
 <option name="field">value</option>
 <option name="drilldown">none</option>
 <option name="linkView">search</option>
 <option name="underLabel">Availability</option>



 <search>
   <query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value  low=0-5 elevated=5-10 default=severe</query>
 </search>
 <option name="classField">range</option>
 <option name="field">value</option>
 <option name="drilldown">none</option>
 <option name="linkView">search</option>
 <option name="underLabel">Performance</option>
0 Karma

adubblenie
New Member

Sorry... I noticed the code didn't post correctly.

 <title>"Value Title"</title>
 <search>
   <query>source="Source" | stats last(StatusCode) as value  | rangemap field=value  low=200-200 default=severe</query>
 </search>
 <option name="classField">range</option>
 <option name="field">value</option>
 <option name="drilldown">none</option>
 <option name="linkView">search</option>
 <option name="underLabel">Availability</option>


 <search>
  <title> </title>
   <query>source="Source" | eval value=round((ResponseTime)*1,2) | rangemap field=value  low=0-5 elevated=5-10 default=severe</query>
 </search>
 <option name="classField">range</option>
 <option name="field">value</option>
 <option name="drilldown">none</option>
 <option name="linkView">search</option>
 <option name="underLabel">Performance</option>
0 Karma

adubblenie
New Member

Here's an image of what's happening to give you more clarity.

0 Karma

adubblenie
New Member
0 Karma

stephanefotso
Motivator

Can we get your sample code?

SGF
0 Karma
Get Updates on the Splunk Community!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...