From 7c0cabe5f91a04b4fddda1a25751ba2a80d55616 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Fri, 15 Feb 2019 10:33:34 +0100 Subject: [PATCH] updated docs --- doc/config.md | 23 +++++++++++++++++++++-- doc/params.md | 4 ++++ doc/prometheus.md | 12 ++++++++++++ readme.md | 13 +++++++++++++ 4 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 doc/prometheus.md diff --git a/doc/config.md b/doc/config.md index 02b280f..d4be9a1 100644 --- a/doc/config.md +++ b/doc/config.md @@ -25,11 +25,12 @@ The mapserver will generate a fresh `mapserver.json` if there is none at startup ```json { "port": 8080, + "enableprometheus": true, "enablerendering": true, "webdev": false, "webapi": { "enablemapblock": false, - "secretkey": "ZJoSpysiKGlYexof" + "secretkey": "OYHuTRbhSQXkHcwu" }, "layers": [ { @@ -41,7 +42,22 @@ The mapserver will generate a fresh `mapserver.json` if there is none at startup ], "renderingfetchlimit": 1000, "renderingjobs": 2, - "renderingqueue": 100 + "renderingqueue": 100, + "mapobjects": { + "bones": true, + "protector": true, + "technic": true, + "luacontroller": true, + "digiterms": true, + "digilines": true, + "travelnet": true, + "mapserver": true, + "mission": true, + "jumpdrive": true, + "smartshop": true, + "fancyvend": true, + "atm": true + } } ``` @@ -79,3 +95,6 @@ existing tiles and start rendering from scratch. #### renderingjobs Number of cores to use for rendering, defaults to all available cores + +#### enableprometheus +Enables the [Prometheus](./prometheus.md) metrics endpoint diff --git a/doc/params.md b/doc/params.md index 00a01f0..8584436 100644 --- a/doc/params.md +++ b/doc/params.md @@ -27,3 +27,7 @@ It is advisable to pipe the debug output to a file for later inspection: ``` ./mapserver -debug > debug.txt ``` + +## Config +`./mapserver -createconfig` +Creates a config and exits diff --git a/doc/prometheus.md b/doc/prometheus.md new file mode 100644 index 0000000..2408554 --- /dev/null +++ b/doc/prometheus.md @@ -0,0 +1,12 @@ + +# Prometheus monitoring + +The mapserver exposes a prometheus endpoint at the `/metrics` path + +An overview of the collected metrics: +* tiledb get/set histogram +* cache hit/misses +* mapblock parse duration histogram +* mapblock render duration histogram +* tile render duration histogram +* various counters diff --git a/readme.md b/readme.md index e5c81d1..a6f1b32 100644 --- a/readme.md +++ b/readme.md @@ -21,7 +21,9 @@ Realtime mapserver for [Minetest](https://minetest.net) * Realtime player and world stats * Configurable layers (default: "Base" from y -16 to 160) * POI markers / mod integration +* Protector display * LCD Displays as markers +* Monitoring with [Prometheus](doc/prometheus.md) ## Planned Features @@ -41,6 +43,17 @@ Realtime mapserver for [Minetest](https://minetest.net) ## Terminal +## Map objects (as markers) +Enable/Disable those in the [Configuration](doc/config.md) + + + + + + + + + # Bugs There will be bugs, please file them in the [issues](./issues) page.