Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Commit d1429ee

Browse files
author
Domnick Eger
committed
Cleanup of Visualization for New Version of Addon
0 parents  commit d1429ee

17 files changed

+916
-0
lines changed

README.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is an add-on powered by the Splunk Add-on Builder.

README/addon_builder.conf.spec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[base]
2+
builder_version = <string>
3+
builder_build = <string>
4+
is_edited = <bool>

app.manifest

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"schemaVersion": "1.0.0",
3+
"info": {
4+
"title": "Splunk App for Puppet Enterprise",
5+
"id": {
6+
"group": null,
7+
"name": "SplunkAppForPuppetEnterprise",
8+
"version": "2.0"
9+
},
10+
"author": [
11+
{
12+
"name": "Domnick Eger",
13+
"email": null,
14+
"company": null
15+
}
16+
],
17+
"releaseDate": null,
18+
"description": "",
19+
"classification": {
20+
"intendedAudience": null,
21+
"categories": [],
22+
"developmentStatus": null
23+
},
24+
"commonInformationModels": null,
25+
"license": {
26+
"name": null,
27+
"text": null,
28+
"uri": null
29+
},
30+
"privacyPolicy": {
31+
"name": null,
32+
"text": null,
33+
"uri": null
34+
},
35+
"releaseNotes": {
36+
"name": null,
37+
"text": null,
38+
"uri": null
39+
}
40+
},
41+
"dependencies": {
42+
},
43+
"tasks": [],
44+
"inputGroups": {
45+
},
46+
"incompatibleApps": {
47+
},
48+
"platformRequirements": {
49+
"splunk": {
50+
"Enterprise": "*"
51+
}
52+
}
53+
}

default/addon_builder.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# this file is generated by add-on builder automatically
2+
# please do not edit it
3+
[base]
4+
builder_version = 2.2.0
5+
builder_build = 12
6+
is_edited = 1
7+

default/app.conf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# this add-on is powered by splunk Add-on builder
2+
[install]
3+
state_change_requires_restart = true
4+
is_configured = 0
5+
state = enabled
6+
build = 3
7+
8+
[launcher]
9+
author = Domnick Eger
10+
version = 2.0.0
11+
12+
[ui]
13+
is_visible = 1
14+
label = Splunk App for Puppet Enterprise
15+
docs_section_override = AddOns:released
16+
17+
[package]
18+
id = SplunkAppForPuppetEnterprise
19+
20+
[triggers]
21+
reload.addon_builder = simple
22+
reload.splunkappforpuppetenterprise_account = simple
23+
reload.splunkappforpuppetenterprise_settings = simple
24+
reload.passwords = simple
25+

default/data/ui/nav/default.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<nav color="#000000">
2+
<view name="puppet_enterprise__overview" default="true" label="Puppet System Overview" />
3+
<view name="overview" default="true" label="Puppet Enterprise Overview" />
4+
<view name="puppet_enterprise__facts" default="true" label="Puppet Facts" />
5+
<view name="puppet_enterprise__extended_details" default="true" label="Extended Details" />
6+
7+
<collection label="Documentation">
8+
<!-- <view name="data_source" /> -->
9+
<a target="_blank" href="https://splunkbase.splunk.com/app/3611/#/details">Install Documentation</a>
10+
<a target="_blank" href="https://answers.splunk.com/answers/ask.html?appid=3611">Ask a Question</a>
11+
</collection>
12+
13+
14+
15+
16+
</nav>

default/data/ui/views/home.xml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<form>
2+
<label>Puppet Enterprise - Facts</label>
3+
<fieldset submitButton="false">
4+
<input type="multiselect" token="certname" searchWhenChanged="true">
5+
<label>Puppet Managed Hosts</label>
6+
<choice value="*">ALL</choice>
7+
<prefix>certname="</prefix>
8+
<suffix>"</suffix>
9+
<fieldForLabel>certname</fieldForLabel>
10+
<fieldForValue>certname</fieldForValue>
11+
<search>
12+
<query>sourcetype="pe:factors" | dedup certname | table certname</query>
13+
<earliest>-24h@h</earliest>
14+
<latest>now</latest>
15+
</search>
16+
<default>*</default>
17+
</input>
18+
<input type="multiselect" token="pe_server_url" searchWhenChanged="true">
19+
<label>Puppet Enterprise Server</label>
20+
<choice value="*">ALL</choice>
21+
<default>*</default>
22+
<prefix>pe_server_url_="</prefix>
23+
<suffix>"</suffix>
24+
<fieldForLabel>pe_server_url_</fieldForLabel>
25+
<fieldForValue>pe_server_url_</fieldForValue>
26+
<search>
27+
<query>sourcetype="pe:factors" |dedup pe_server_url_ | table pe_server_url_</query>
28+
<earliest>-15m</earliest>
29+
<latest>now</latest>
30+
</search>
31+
<delimiter> </delimiter>
32+
</input>
33+
</fieldset>
34+
<row>
35+
<panel>
36+
<single>
37+
<title>Hosts Managed by Puppet</title>
38+
<search>
39+
<query>sourcetype="pe:factors" |dedup certname | timechart count(certname)</query>
40+
<earliest>-24h@h</earliest>
41+
<latest>now</latest>
42+
</search>
43+
<option name="drilldown">none</option>
44+
</single>
45+
</panel>
46+
<panel>
47+
<single>
48+
<title>Number of Puppet Enterprise Masters</title>
49+
<search>
50+
<query>sourcetype="pe:factors" |dedup certname | timechart distinct_count(pe_server_url_)</query>
51+
<earliest>-24h@h</earliest>
52+
<latest>now</latest>
53+
</search>
54+
</single>
55+
</panel>
56+
<panel>
57+
<single>
58+
<title>Number of Virtual Machines</title>
59+
<search>
60+
<query>sourcetype="pe:factors" |dedup certname | timechart count(is_virtual)</query>
61+
<earliest>-24h@h</earliest>
62+
<latest>now</latest>
63+
</search>
64+
<option name="drilldown">none</option>
65+
</single>
66+
</panel>
67+
</row>
68+
<row>
69+
<panel>
70+
<table>
71+
<search>
72+
<query>sourcetype="pe:factors" $certname$ $pe_server_url$ |dedup certname
73+
| eval api_end_epoch=strptime(expiration,"%m/%d/%y")
74+
| eval days_left=round((api_end_epoch-now())/86400,0)
75+
| rename certname as Hosts
76+
| rename osfamily as "OS Family"
77+
| rename pe_server_url_ as Facts
78+
| rename expiration as "Token Generation Date"
79+
| rename clientversion as "Puppet Agent Version"
80+
| rename uptime as "Uptime"
81+
| rename architecture as "Architecture"
82+
| rename _time as "Last Updated"
83+
| rename days_left as "Token Expires"
84+
| table Hosts Facts "OS Family" Architecture "Puppet Agent Version" Uptime "Last Updated" "Token Generation Date" "Token Expires"</query>
85+
<earliest>-15m</earliest>
86+
<latest>now</latest>
87+
<sampleRatio>1</sampleRatio>
88+
</search>
89+
<option name="count">20</option>
90+
<option name="dataOverlayMode">none</option>
91+
<option name="drilldown">cell</option>
92+
<option name="percentagesRow">false</option>
93+
<option name="refresh.display">progressbar</option>
94+
<option name="rowNumbers">false</option>
95+
<option name="totalsRow">false</option>
96+
<option name="wrap">true</option>
97+
<drilldown target="_blank">
98+
<link>https://$row.Facts$/#/inspect/node/$row.Hosts$/facts</link>
99+
</drilldown>
100+
</table>
101+
</panel>
102+
</row>
103+
</form>

0 commit comments

Comments
 (0)