-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:scoopex/zabbix-agent-extensions
- Loading branch information
Showing
3 changed files
with
134 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
UserParameter=custom.process_threads[*],ps -e -T | wc -l |
132 changes: 132 additions & 0 deletions
132
zabbix_templates/3.4/documentation/custom-service-springboot.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
<html> | ||
<head> | ||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
</head> | ||
<style type="text/css"> | ||
|
||
p.desc{ | ||
white-space:nowrap; | ||
} | ||
|
||
table.pretty { | ||
margin: 1em 1em 1em 2em; | ||
background: whitesmoke; | ||
border-collapse: collapse; | ||
} | ||
|
||
table.pretty th, table.pretty td { | ||
border: 1px gainsboro solid; | ||
padding: 0.2em; | ||
} | ||
|
||
table.pretty th { | ||
background: gainsboro; | ||
text-align: left; | ||
} | ||
|
||
table.pretty caption { | ||
margin-left: inherit; | ||
margin-right: inherit; | ||
white-space:nowrap; | ||
} | ||
</style> | ||
<body> | ||
<h2>Macro Overview</h2> | ||
|
||
The following macros can be overloaded on host level. | ||
<table class="pretty"> | ||
<tr> | ||
<th>Name</th><th>Default</th> | ||
</tr> | ||
<tr> | ||
<td>{$SPRINGBOOT_BASE_URI}</td><td>http://127.0.0.1:1234/actuator</td> | ||
</tr> | ||
</table> | ||
<h1>Static Elements</h1> | ||
<h2>Trigger Overview</h2> | ||
<table class="pretty"> | ||
<tr> | ||
<th>Name</th><th>Description</th><th>Priority</th><th>Expression</th><th>Dependencies</th> | ||
</tr> | ||
</table> | ||
<h2>Graph Overview</h2> | ||
<table class="pretty"> | ||
<tr> | ||
<th>Name</th><th>Elements</th> | ||
</tr> | ||
</table> | ||
<h2>Item Overview</h2> | ||
<table class="pretty"> | ||
<tr> | ||
<th>Type</th><th>Name</th><th>Key</th><th>Description</th><th>Interval (sec)</th><th>History Days</th><th>Trend Days</th> | ||
</tr> | ||
</table> | ||
<h1>Discovery rule "Metric http.server.requests by uri"</h1> | ||
<table class="pretty"> | ||
<tr> | ||
<th>Name</th><th>Value</th> | ||
</tr> | ||
<tr> | ||
<td>Name</td><td>Metric http.server.requests by uri</td> | ||
</tr> | ||
<tr> | ||
<td>Key</td><td>springboot.discovery[{$SPRINGBOOT_BASE_URI}/metrics/http.server.requests,uri]</td> | ||
</tr> | ||
<tr> | ||
<td>Type</td><td> | ||
<p class="desc">Zabbix Agent (active)</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Delay</td><td>10m</td> | ||
</tr> | ||
</table> | ||
<h2>Trigger Overview</h2> | ||
<table class="pretty"> | ||
<tr> | ||
<th>Name</th><th>Description</th><th>Priority</th><th>Expression</th><th>Dependencies</th> | ||
</tr> | ||
</table> | ||
<h2>Graph Overview</h2> | ||
<table class="pretty"> | ||
<tr> | ||
<th>Name</th><th>Elements</th> | ||
</tr> | ||
<tr> | ||
<td>Performance HTTP {#URI}</td><td><tt>springboot.uri[{#URI},requests_per_second]<br>springboot.uri[{#URI},average_responsetime]<br> | ||
</tt></td> | ||
</tr> | ||
</table> | ||
<h2>Item Overview</h2> | ||
<table class="pretty"> | ||
<tr> | ||
<th>Type</th><th>Name</th><th>Key</th><th>Description</th><th>Interval (sec)</th><th>History Days</th><th>Trend Days</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="desc">Zabbix Agent (active)</p> | ||
</td><td>Performance HTTP {#URI} Data</td><td><tt>springboot.get[{$SPRINGBOOT_BASE_URI}/metrics/http.server.requests,tag=uri:{#URI}]</tt></td><td></td><td>3m</td><td>2h</td><td>0</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="desc">Calculated</p> | ||
</td><td>{#URI} Average Request Time</td><td><tt>springboot.uri[{#URI},average_responsetime]</tt></td><td></td><td>1m</td><td>14d</td><td>90d</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="desc">ERROR - Unknown</p> | ||
</td><td>{#URI} Requests</td><td><tt>springboot.uri[{#URI},requests]</tt></td><td></td><td>0</td><td>7d</td><td>90d</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="desc">ERROR - Unknown</p> | ||
</td><td>{#URI} Requests/sec</td><td><tt>springboot.uri[{#URI},requests_per_second]</tt></td><td></td><td>0</td><td>7d</td><td>90d</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="desc">ERROR - Unknown</p> | ||
</td><td>{#URI} Time</td><td><tt>springboot.uri[{#URI},time]</tt></td><td></td><td>0</td><td>7d</td><td>90d</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |