<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why does cell_fill_gauge.js not work on all panels in my dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-cell-fill-gauge-js-not-work-on-all-panels-in-my/m-p/238273#M14786</link>
    <description>&lt;P&gt;Without knowing what the script does I can only guess.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;is the script loaded in the browser? If not, figure out if it's sitting in the right path and possibly restart Splunk if it was just added.&lt;/LI&gt;
&lt;LI&gt;any errors in the JS console?&lt;/LI&gt;
&lt;LI&gt;does the script refer to a table view by an ID? If so, give your table that ID.&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Thu, 24 Nov 2016 23:14:34 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2016-11-24T23:14:34Z</dc:date>
    <item>
      <title>Why does cell_fill_gauge.js not work on all panels in my dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-cell-fill-gauge-js-not-work-on-all-panels-in-my/m-p/238272#M14785</link>
      <description>&lt;P&gt;Why doesn't this dashboard use cell_fill_gauge.js?&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/173293-capture.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard hideEdit="false" script="cell_fill_gauge.js,common_control.js"&amp;gt;
  &amp;lt;label&amp;gt;Summary TEST&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| rest splunk_server=*idnd01 /services/server/status/partitions-space
| join type=outer splunk_server, mount_point [
  | rest splunk_server=*idnd01 /services/server/status/resource-usage/iostats
  | eval iops = round(reads_ps + writes_ps)
  | fields splunk_server, mount_point, iops, cpu_pct]
| eval free = if(isnotnull(available), available, free)
| eval usage = round((capacity - free) / 1024, 2)
| eval capacity = round(capacity / 1024, 2)
| eval compare_usage = usage." / ".capacity
| eval pct_usage = round(usage / capacity * 100, 2) 
| stats first(compare_usage) as compare_usage by splunk_server, mount_point
| rename splunk_server as "Indexer", mount_point as "Mount Point", compare_usage as "Disk Usage (GB)"
| streamstats current=false last(Indexer) as PrevIndexer
| eval Indexer=if(match(Indexer,PrevIndexer),"",Indexer)
| fields - PrevIndexer&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:52:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-cell-fill-gauge-js-not-work-on-all-panels-in-my/m-p/238272#M14785</guid>
      <dc:creator>lycollicott</dc:creator>
      <dc:date>2020-09-29T11:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why does cell_fill_gauge.js not work on all panels in my dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-cell-fill-gauge-js-not-work-on-all-panels-in-my/m-p/238273#M14786</link>
      <description>&lt;P&gt;Without knowing what the script does I can only guess.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;is the script loaded in the browser? If not, figure out if it's sitting in the right path and possibly restart Splunk if it was just added.&lt;/LI&gt;
&lt;LI&gt;any errors in the JS console?&lt;/LI&gt;
&lt;LI&gt;does the script refer to a table view by an ID? If so, give your table that ID.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 24 Nov 2016 23:14:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-cell-fill-gauge-js-not-work-on-all-panels-in-my/m-p/238273#M14786</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-11-24T23:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why does cell_fill_gauge.js not work on all panels in my dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-cell-fill-gauge-js-not-work-on-all-panels-in-my/m-p/238274#M14787</link>
      <description>&lt;P&gt;It is a builtin part of Splunk:  &lt;CODE&gt;etc\apps\splunk_monitoring_console\appserver\static\cell_fill_gauge.js&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;There are no errors.&lt;/P&gt;

&lt;P&gt;The .js does have code  that defines table1 &amp;amp; table 2, but it only looks like definition and I can't see how it uses the definition.  (I'm definitely not a .js dude though, so I could be full of crap about that.)&lt;/P&gt;

&lt;P&gt;The script get used in lots of DMC screens like "Indexes and Volumes: Instance" and I made a custom executive summary dashboard based on a clone of one of those from the DMC.   &lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 14:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-cell-fill-gauge-js-not-work-on-all-panels-in-my/m-p/238274#M14787</guid>
      <dc:creator>lycollicott</dc:creator>
      <dc:date>2016-11-25T14:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why does cell_fill_gauge.js not work on all panels in my dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-cell-fill-gauge-js-not-work-on-all-panels-in-my/m-p/238275#M14788</link>
      <description>&lt;P&gt;Assuming your dashboard is in a different app, you will need to prefix the script attribute with &lt;CODE&gt;splunk_monitoring_console:&lt;/CODE&gt; to tell Splunk where to look.&lt;/P&gt;

&lt;P&gt;A word of warning, this is no documented or supported interface - hence it can change or disappear without notice on any upgrade of Splunk. If you want a more reliable future you should make a copy.&lt;/P&gt;

&lt;P&gt;Another word of warning, around line 200 that script seems to add its cell renderers to tables called &lt;CODE&gt;table1&lt;/CODE&gt; and &lt;CODE&gt;table2&lt;/CODE&gt;... depending on how your dashboard is generated from SimpleXML, those IDs may or may not match. I'd recommend defining your own IDs and then adding the renderers specifically to those IDs.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 16:57:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-cell-fill-gauge-js-not-work-on-all-panels-in-my/m-p/238275#M14788</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-11-25T16:57:49Z</dc:date>
    </item>
  </channel>
</rss>

