Skip to content

Commit

Permalink
Zabbix template changes (#14)
Browse files Browse the repository at this point in the history
* Remove name, normalize reporting output

* Drop extra rlp_11 from metrics

* Clarify readme, fix extra rlp_11

* Add zabbix template json

* move zabbix.template.json under rpm packaging
  • Loading branch information
StrongestNumber9 authored Nov 12, 2024
1 parent 506a142 commit 9ce9227
Show file tree
Hide file tree
Showing 9 changed files with 490 additions and 42 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.idea/
target/
rpm/target/
/.idea/
/target/
/rpm/target/
8 changes: 7 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ Measures latency for RELP records.

Provides Dropwizard metrics

Provides Prometheus endpoint
Provides Prometheus endpoint. It listens to port set by `metrics.port` and exposes metrics to path `/metrics`

Provides Prometheus template for Zabbix

== Documentation

=== Zabbix

Import the template, add `{$PROMETHEUS_HOST}` macro with full url to the metrics endpoint to wanted host and link it to `rlp_11_prometheus` template.

== Limitations

== How to compile
Expand Down
19 changes: 19 additions & 0 deletions rpm/rpm.pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,25 @@
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/teragrep/${project.artifactId}/share/doc/zabbix/templates</directory>
<directoryIncluded>true</directoryIncluded>
<filemode>755</filemode>
<recurseDirectories>true</recurseDirectories>
</mapping>
<mapping>
<directory>/opt/teragrep/${project.artifactId}/share/doc/zabbix/templates</directory>
<configuration>noreplace</configuration>
<directoryIncluded>false</directoryIncluded>
<username>srv-rlp_11</username>
<groupname>srv-rlp_11</groupname>
<recurseDirectories>true</recurseDirectories>
<sources>
<source>
<location>${project.basedir}/src/opt/teragrep/rlp_11/share/doc/zabbix/templates/zabbix.template.json</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/teragrep/${project.artifactId}/etc</directory>
<directoryIncluded>true</directoryIncluded>
Expand Down
2 changes: 0 additions & 2 deletions rpm/src/opt/teragrep/rlp_11/etc/rlp_11.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Metrics reporting name. Arbitrary string, only used for reporting purposes
metrics.name=target
# Metrics window size
metrics.window=10000
# Metrics report interval, in seconds
Expand Down
Loading

0 comments on commit 9ce9227

Please sign in to comment.