Skip to content

Commit

Permalink
Merge branch 'master' of github.com:scoopex/zabbix-agent-extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Schoechlin committed Sep 9, 2019
2 parents f0e1449 + f797562 commit 7d3e8ec
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ A quick is provided by the following files:

* Install FPM
```
sudo apt-get install ruby-dev build-essential debhelper devscripts rpm
sudo apt-get install ruby-dev build-essential debhelper devscripts rpm xalan
gem install fpm --user
```
* Get the repo
Expand Down
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 zabbix_templates/3.4/documentation/custom-service-springboot.html
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>

0 comments on commit 7d3e8ec

Please sign in to comment.