From a77a51ae79a7c96228d94f389a83c3010b18c941 Mon Sep 17 00:00:00 2001 From: who asks? Date: Mon, 9 Sep 2024 19:08:19 -0600 Subject: [PATCH 1/2] add mkdocs_monero_metrics_plugin --- docs/en/technical-specs.md | 2 +- mkdocs.yml | 9 +++++++++ requirements.txt | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/en/technical-specs.md b/docs/en/technical-specs.md index eb40a9a9..2d57b0d1 100644 --- a/docs/en/technical-specs.md +++ b/docs/en/technical-specs.md @@ -47,7 +47,7 @@ title: Monero Technical Specification ## Current blockchain size * Pruned node: ~ 57GB as of Jan 2023 -* Complete chain without any pruning: ~138GB as of Jan 2023 +* Complete chain without any pruning: {{ monero_main_file_size }} as of {{ monero_main_file_last_update }} (Height {{ monero_main_block_height }}) ## Emission curve diff --git a/mkdocs.yml b/mkdocs.yml index 77b35e7c..9011846a 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -221,3 +221,12 @@ plugins: - locale: nb name: Norsk Bokmål build: false + - monero-metrics: + endpoints: + - "http://127.0.0.1:9123/metrics" + time_format: '%Y-%m-%d %H:%M UTC' + defaults: + monero_main_file_size: "203.24 GB" + monero_main_file_last_update: "2024-09-09 11:51:28" + monero_main_block_height: 3233846 + monero_main_block_timestamp: "2024-09-09 11:50:21" diff --git a/requirements.txt b/requirements.txt index 616196ed..d5e19af6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -32,3 +32,4 @@ requests==2.32.3 six==1.16.0 urllib3==2.2.2 watchdog==4.0.1 +git+https://github.com/DiosDelRayo/mkdocs_monero_metrics_plugin.git From 69b4406d7383ab25c47d6844d0a9575db1d76675 Mon Sep 17 00:00:00 2001 From: who asks? Date: Mon, 9 Sep 2024 22:02:25 -0600 Subject: [PATCH 2/2] update in Dockerfile_coolify builder to python:3.12-slim and install git on it --- Dockerfile_coolify | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile_coolify b/Dockerfile_coolify index b6b0e67e..78255b6c 100644 --- a/Dockerfile_coolify +++ b/Dockerfile_coolify @@ -1,10 +1,10 @@ -FROM python:3.9-slim AS builder +FROM python:3.12-slim AS builder WORKDIR /monero-docs COPY . /monero-docs -RUN pip install -r requirements.txt +RUN apt-get update && apt-get install -y git && pip install -r requirements.txt RUN mkdocs build