자유게시판

  • 나스(시롤로지) netdata 시스템 모니터링 도커 설치하기

    페이지 정보

    profile_image
    작성자천사 조회 4,922회 작성일 2021-08-19 16:48:15 댓글 0

    본문

    docker run -d --name=netdata -p 19999:19999 -v /proc:/host/proc:ro -v /sys:/host/sys:ro -v /var/run/docker.sock:/var/run/docker.sock:ro --cap-add SYS_PTRACE --security-opt apparmor=unconfined --restart=unless-stopped netdata/netdata

     

    간단하게 대쉬보드 수정

     

    출처: https://m.ppomppu.co.kr/new/bbs_view.php?id=nas&no=41176

     

    netdata의

     

    /usr/share/netdata/web/index.html 수정

     

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <title>Netdata Dashboard</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
        <script type="text/javascript" src="본인도메인주소:19999/dashboard.js"></script>
        <script type="text/javascript">
        ;
        </script>
        <script>
        var netdataNoBootstrap = true;
        var netdataServer = "본인도메인주소:19999"
        </script>
        <!-- here we will add dashboard.js -->
    </head>
    <body>
        <div style="width: 100%; text-align: center;">
            <div>
                <h1>
                    Sytem Summary
                </h1>
                <div class="netdata-container-gauge" style="margin-right: 10px; width: 20%;" data-netdata="system.cpu" data-chart-library="gauge" data-title="CPU" data-units="%" data-gauge-max-value="100" data-width="200px" data-points="300" data-colors="#22AA99" role="application"></div>
                <br>
                <div class="netdata-container-easypiechart" style="margin-right: 10px; width: 9%;" data-netdata="system.swap" data-dimensions="used" data-append-options="percentage" data-chart-library="easypiechart" data-title="Used Swap" data-units="%" data-easypiechart-max-value="100" data-width="150px" data-points="300" data-colors="#DD4400" role="application"></div>
                <div class="netdata-container-easypiechart" style="margin-right: 10px; width: 11%;" data-netdata="system.io" data-dimensions="in" data-chart-library="easypiechart" data-title="Disk Read" data-width="150px" data-points="300" data-common-units="system.io.mainhead" role="application"></div>
                <div class="netdata-container-easypiechart" style="margin-right: 10px; width: 11%;" data-netdata="system.io" data-dimensions="out" data-chart-library="easypiechart" data-title="Disk Write" data-width="150px" data-points="300" data-common-units="system.io.mainhead" role="application"></div>
                <div class="netdata-container-easypiechart" style="margin-right: 10px; width: 11%;" data-netdata="system.ip" data-dimensions="received" data-chart-library="easypiechart" data-title="IP Inbound" data-width="150px" data-points="300" data-common-units="system.ip.mainhead" role="application"></div>
                <div class="netdata-container-easypiechart" style="margin-right: 10px; width: 11%;" data-netdata="system.ip" data-dimensions="sent" data-chart-library="easypiechart" data-title="IP Outbound" data-width="150px" data-points="300" data-common-units="system.ip.mainhead" role="application"></div>
                <div class="netdata-container-easypiechart" style="margin-right: 10px; width: 9%;" data-netdata="system.ram" data-dimensions="used|buffers|active|wired" data-append-options="percentage" data-chart-library="easypiechart" data-title="Used RAM" data-units="%" data-easypiechart-max-value="100" data-width="150px" data-points="300" data-colors="#EE9911" role="application"></div>
            </div>
            <br>
            <div>
                <h2>
                    Temperature
                </h2>
                <div data-netdata="sensors.coretemp-isa-0000_temperature" data-title="CPU Temperature Physical id" data-decimal-digits="1" data-chart-library="easypiechart" data-width="200px" data-height="200px" data-easypiechart-max-value="100" data-easypiechart-min-value="0" data-colors="#FF5555" data-units="°C" data-dimensions="Physical id 0"></div><br>
                <div data-netdata="sensors.coretemp-isa-0000_temperature" data-title="CPU Temperature Core 0" data-decimal-digits="1" data-chart-library="easypiechart" data-width="150px" data-height="150px" data-easypiechart-max-value="100" data-easypiechart-min-value="0" data-colors="#ffb950" data-units="°C" data-dimensions="Core 0"></div>
                <div data-netdata="sensors.coretemp-isa-0000_temperature" data-title="CPU Temperature Core 1" data-decimal-digits="1" data-chart-library="easypiechart" data-width="150px" data-height="150px" data-easypiechart-max-value="100" data-easypiechart-min-value="0" data-colors="#038c00" data-units="°C" data-dimensions="Core 1"></div>
                <div data-netdata="sensors.coretemp-isa-0000_temperature" data-title="CPU Temperature Core 2" data-decimal-digits="1" data-chart-library="easypiechart" data-width="150px" data-height="150px" data-easypiechart-max-value="100" data-easypiechart-min-value="0" data-colors="#2352b1" data-units="°C" data-dimensions="Core 2"></div>
                <div data-netdata="sensors.coretemp-isa-0000_temperature" data-title="CPU Temperature Core 3" data-decimal-digits="1" data-chart-library="easypiechart" data-width="150px" data-height="150px" data-easypiechart-max-value="100" data-easypiechart-min-value="0" data-colors="#883ec6" data-units="°C" data-dimensions="Core 3"></div>
            </div>
        </div>
        <!-- here we will add charts -->
    </body>
    </html>

    댓글목록

    등록된 댓글이 없습니다.

    Copyright © blog.batifa.com All rights reserved.