www.sberbank.sber.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.78z68.kwid9.yogavastu.xyz Open in urlscan Pro
149.28.211.233  Public Scan

URL: https://www.sberbank.sber.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.avito.78z68.kwid9.yogavastu.xyz/
Submission: On April 20 via api from BE — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

Press esc to close

--------------------------------------------------------------------------------

请输入并搜索
素锦流年个人博客
素锦流年个人博客
 * 首页
 * 标签
 * 分类
 * 时间线
 * 友链
 * 关于

Press Ctrl+ and K to search


 * 首页
 * 标签
 * 分类
 * 时间线
 * 友链
 * 关于

Linux服务器运行以及docker运行监视
2023-03-24
linux
5430


部署GRANFNA

访问官网 https://grafana.com/

下载界面:https://grafana.com/grafana/download?pg=get&plcmt=selfmanaged-box1-cta1

本文下载版本:https://dl.grafana.com/enterprise/release/grafana-enterprise-9.0.5-1.x86_64.rpm

安装:sudo yum install grafana-enterprise-9.0.5-1.x86_64.rpm

启动:systemctl start grafana-server

查看端口:netstat -lntp|grep grafana

访问:http://localhost:3000/

默认账号密码:admin/admin


部署PROMETHEUS

下载地址:https://github.com/prometheus/prometheus/releases

解压:tar -xvf prometheus-2.33.3.linux-amd64.tar.gz

复制:cp prometheus-2.37.0.linux-amd64/{prometheus,promtool} /usr/local/bin/

创建:mkdir /etc/prometheus && /var/lib/prometheus

配置:vi /usr/lib/systemd/system/prometheus.service

    [Unit]
    Description=Prometheus: the monitoring system
    Documentation=http://prometheus.io/docs/
    [Service]
    ExecStart=/usr/local/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus
    Restart=always
    StartLimitInterval=0
    RestartSec=10
    [Install]
    WantedBy=multi-user.target


拷贝配置文件:cp -p ./prometheus-2.33.3.linux-amd64/prometheus.yml /etc/prometheus/

加载并启动服务器:systemctl daemon-reload && systemctl restart prometheus

查看状态:systemctl status prometheus

新加监听配置:prometheus.yml 文件:vim /etc/prometheus/prometheus.yml

localhost:9090




部署NODE_EXPORTER

下载地址:https://github.com/prometheus/node_exporter/releases

解压:tar -xvf node_exporter-1.4.0-rc.0.linux-amd64.tar.gz

拷贝:cp ./node_exporter-1.4.0-rc.0.linux-amd64/node_exporter /usr/local/bin/

编辑配置文件:vi /etc/systemd/system/node_exporter.service

    [Unit]
    Description=node_exporter
    Documentation=https://prometheus.io/
    After=network.target
    [Service]
    ExecStart=/usr/local/bin/node_exporter
    Restart=on-failure
    [Install]
    WantedBy=multi-user.target


加载服务并启动:systemctl daemon-reload && systemctl restart node_exporter

查看状态:systemctl status node_exporter

添加进prometheus:vim /etc/prometheus/prometheus.yml




部署CADVISOR监控

拉镜像并运行

    docker run \
      --volume=/:/rootfs:ro \
      --volume=/var/run:/var/run:ro \
      --volume=/sys:/sys:ro \
      --volume=/var/lib/docker/:/var/lib/docker:ro \
      --publish=18088:8080 \
      --detach=true \
      --name=cadvisor \
      google/cadvisor:latest


prometheus中加入配置 vim /etc/prometheus/prometheus.yml

      - job_name: docker_cadvisor
        static_configs:
        - targets: ['192.168.11.15:8080']




未完待续....

阅读全文

Windows运行监视+Gafana+Prometheus+Exporter
2023-03-24
windows
810

监视器数据采集下载地址:`https://github.com/prometheus-communi

阅读全文

第一篇不知道写什么~~
2023-03-24
blog
923

素锦流年个人博客欢迎评论

阅读全文



素锦流年
emo
3
日志
3
分类
2
标签


本站居然运行了30天8小时43分48秒

Powered By VanBlog v0.51.1

© 2023 - 2023

242900320537