Difference between revisions of "Server Metrics using Prometheus"

From Luanti Wiki
Jump to navigation Jump to search
(Created page with "<syntaxhighlight lang="bash">cd /tmp git clone --recursive https://github.com/jupp0r/prometheus-cpp mkdir prometheus-cpp/build cd prometheus-cpp/build cmake .. -DCMAKE_INSTALL...")
 
(Replaced content with "[https://dev.luanti.org/server-metrics-using-prometheus/ This page has moved to the Luanti Developer Wiki]")
Tag: Replaced
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<syntaxhighlight lang="bash">cd /tmp
+
[https://dev.luanti.org/server-metrics-using-prometheus/ This page has moved to the Luanti Developer Wiki]
git clone --recursive https://github.com/jupp0r/prometheus-cpp
 
mkdir prometheus-cpp/build
 
cd prometheus-cpp/build
 
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=0
 
make -j2
 
sudo make install</syntaxhighlight>
 
 
 
 
 
<syntaxhighlight lang="lua">noise_params = {
 
    offset  = 0,
 
    scale  = 1,
 
    spread  = {x=250, y=250, z=250},
 
    seed    = 12345,
 
    octaves = 3,
 
    persist = 0.6,
 
    lacunarity = 2,
 
    flags = "defaults",
 
}</syntaxhighlight>
 

Latest revision as of 20:52, 31 December 2024