ELK-03-skywalking监控linux系统

server/2024/9/24 20:20:06/

文章目录

  • 前言
  • 一、下载node_exporter
  • 二、启动node_exporter
  • 三、下载OpenTelemetry Collector
  • 四、启动OpenTelemetry Collector
    • 4.1 将配置文件下载到同级目录
    • 4.2 启动
  • 五、查看
  • 总结


前言

skywalking安装完成后,开始我们的第一个监控-监控linux系统。
参考官方文档:
https://skywalking.apache.org/docs/main/next/en/setup/backend/backend-vm-monitoring/


一、下载node_exporter

下载地址:https://prometheus.io/download/#node_exporter
或者:https://github.com/prometheus/node_exporter/tags
我下载的是最新版v1.8.2
在这里插入图片描述

二、启动node_exporter

上传压缩包到服务器并解压
在这里插入图片描述

执行:

cd /opt/node_exporter/node_exporter-1.8.2.linux-arm64
./node_exporter 

执行成功后如图:
在这里插入图片描述

浏览器打开:http://10.211.55.120:9100
如图:
在这里插入图片描述
在这里插入图片描述

三、下载OpenTelemetry Collector

下载地址:https://opentelemetry.io/docs/collector/installation/
或者:https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.109.0
我是arm架构cpu,所以下载otelcol_0.109.0_linux_arm64.tar.gz
在这里插入图片描述

四、启动OpenTelemetry Collector

4.1 将配置文件下载到同级目录

下载地址:https://github.com/apache/skywalking/blob/b857fb009116e13450c981c76cc5d9170a76f070/test/e2e-v2/cases/vm/prometheus-node-exporter/otel-collector-config.yaml

记得要改其中的两个注意点。

配置文件otel-collector-config.yaml内容如下:

receivers:prometheus:config:scrape_configs:- job_name: "vm-monitoring" # make sure to use this in the vm.yaml to filter only VM metricsscrape_interval: 10sstatic_configs:- targets: ["localhost:9100"] #注意点1:要改为ipprocessors:batch:exporters:otlp:endpoint: "localhost:11800" # The OAP Server address #注意点2:要改为ip# The config format of OTEL version prior to 0.34.0, eg. 0.29.0, should be:# insecure: truetls:insecure: true#insecure: true# Exports data to the consolelogging:loglevel: debugservice:pipelines:metrics:receivers: [prometheus]processors: [batch]exporters: [otlp, logging]

如图:
在这里插入图片描述

4.2 启动

cd /opt/otelcol
./otelcol --config=./otel-collector-config.yaml

启动成功后会一直打印数据。

五、查看

skywalking网页中,在仪表盘-仪表盘列表-找到Linux-Service,点进去即可看到监控数据:
在这里插入图片描述


总结

深度学习请看官方文档。


http://www.ppmy.cn/server/121491.html

相关文章

【文化课学习笔记】【物理】电场

【物理】电场 前置知识 绝缘体:本质是物体内部电荷无法自由移动。 导体:本质是物体内部电荷可以自由移动。 电荷的移动:导体内部能够发生自由移动的电荷只有负电荷。 显电性:显示的电性,是内部的正负电荷中和之后的结果…

LeetCode 2207.字符串中最多数目的子序列:计数

【LetMeFly】2207.字符串中最多数目的子序列:计数 力扣题目链接:https://leetcode.cn/problems/maximize-number-of-subsequences-in-a-string/ 给你一个下标从 0 开始的字符串 text 和另一个下标从 0 开始且长度为 2 的字符串 pattern ,两…

如何查看本机配置了哪些端口转发

在 Linux 系统中,要查看当前系统配置了哪些端口转发规则,你可以使用以下几种方法: 1. 使用 iptables 查看端口转发规则 如果你使用的是 iptables 来配置端口转发,可以通过以下命令查看端口转发规则。 查看 nat 表中的规则&…

cmake--file

教程 参数 需要指定文件后缀 GLOB 只搜索当前目录 GLOB_RECURSE :搜索当前目录和其子目录(递归搜索) RELATIVE 相对于哪个路径进行搜索,获取文件的相对路径。 使用RELATIVE和不使用RELATIVE的区别: 1&#xff…

最新简洁大方的自动发卡网站源码/鲸发卡v11.61系统源码/修复版

源码简介: 最新简洁大方的自动发卡网站源码,它就是鲸发卡v11.61系统源码,它是修复版。 说到鲸发卡系统,鲸发卡系统在发卡圈很多人都知道的,它是市面最好发卡系统之一,操作起来简单得很,界面也…

HTML常用的文本标签

常用文本标签 <span>: 元素没有特定含义 <b>: 定义粗体文字 <i>: 定义斜体文字 <em>: 定义着重文字 <strong>: 定义加重语气 <del>: 定义删除字 <span>文本标签</span><br><b>文本标签</b><b…

react 常用hooks封装--useReactive

概述 一种具备响应式的useState 我们知道用useState可以定义变量格式为&#xff1a; const [count, setCount] useState(0) 通过 setCount 来进行设置&#xff0c;count 来获取&#xff0c;使用这种方式才能够渲染视图 来看看正常的操作&#xff0c;像这样 let count 0;…

【北京迅为】《STM32MP157开发板嵌入式开发指南》- 第三章 Ubuntu系统介绍

iTOP-STM32MP157开发板采用ST推出的双核cortex-A7单核cortex-M4异构处理器&#xff0c;既可用Linux、又可以用于STM32单片机开发。开发板采用核心板底板结构&#xff0c;主频650M、1G内存、8G存储&#xff0c;核心板采用工业级板对板连接器&#xff0c;高可靠&#xff0c;牢固耐…