initial commit
This commit is contained in:
13
LICENSE.txt
Normal file
13
LICENSE.txt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Copyright 2025 zzz (zzz@mail.i2p)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
34
README.txt
Normal file
34
README.txt
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
Prometheus Metrics Plugin
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
This is a Prometheus Metrics client ("target").
|
||||||
|
|
||||||
|
It provides ("exports") I2P and JVM statistics ("metrics")
|
||||||
|
for scraping by the Prometheus server.
|
||||||
|
|
||||||
|
You must install prometheus server:
|
||||||
|
|
||||||
|
sudo apt install prometheus
|
||||||
|
|
||||||
|
And then add i2p to the prometheus configuration.
|
||||||
|
Edit /etc/prometheus/prometheus.yml and add:
|
||||||
|
|
||||||
|
- job_name: i2p
|
||||||
|
scrape_interval: 60s
|
||||||
|
metrics_path: /prometheus/metrics
|
||||||
|
static_configs:
|
||||||
|
- targets: ['localhost:7657']
|
||||||
|
|
||||||
|
And then tell prometheus to reload the config:
|
||||||
|
|
||||||
|
sudo killall -HUP prometheus
|
||||||
|
|
||||||
|
You should then see i2p listed on the prometheus targets page:
|
||||||
|
|
||||||
|
http://localhost:9090/classic/targets
|
||||||
|
|
||||||
|
and see i2p_* and jvm_* metrics to graph at:
|
||||||
|
|
||||||
|
http://localhost:9090/classic/graph
|
||||||
|
|
||||||
|
For a nicer dashboard, use Grafana, and add Prometheus Server as a data source.
|
Reference in New Issue
Block a user