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

Commit

Permalink
added more dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
skuller committed Oct 16, 2018
1 parent e48c456 commit 4698f76
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
40 changes: 40 additions & 0 deletions template-files/splunk/api-record-trace.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<form>
<label>Record Trace</label>
<fieldset submitButton="true" autoRun="false">
<input type="text" token="correlationId" searchWhenChanged="false">
<label>Correlation Id</label>
</input>
<input type="dropdown" searchWhenChanged="false" token="env">
<label>Environments</label>
<choice value="dev">Development</choice>
<choice value="test">Test</choice>
<choice value="prod">Production</choice>
<default>dev</default>
<initialValue>dev</initialValue>
</input>
<input type="time" token="timestamp">
<label>Time Frame</label>
<default>
<earliest>@d</earliest>
<latest>now</latest>
</default>
</input>
</fieldset>
<row>
<panel>
<table>
<title>Record Trace</title>
<search>
<query>host="splunk-json-logger.localtunnel.me" environment=$env$ correlationId=$correlationId$ | sort by timestamp | fields - _* | fields + priority applicationName applicationVersion message tracePoint elapsed</query>
<earliest>$timestamp.earliest$</earliest>
<latest>$timestamp.latest$</latest>
</search>
<option name="count">100</option>
<option name="drilldown">row</option>
<option name="refresh.display">progressbar</option>
<option name="rowNumbers">true</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
</form>
18 changes: 18 additions & 0 deletions template-files/splunk/api-total-transactions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<dashboard>
<label>API charts</label>
<row>
<panel>
<title>Completed Transactions per API</title>
<chart>
<search>
<query>host="splunk-json-logger.localtunnel.me" environment=dev tracePoint=END | timechart span=1m count by applicationName</query>
<earliest>-1d@d</earliest>
<latest>@d</latest>
</search>
<option name="charting.chart">line</option>
<option name="charting.drilldown">none</option>
<option name="refresh.display">progressbar</option>
</chart>
</panel>
</row>
</dashboard>

0 comments on commit 4698f76

Please sign in to comment.