(linux-x86-arm64)麒麟V10安装openjdk+Grafana-7.2.0+Prometheus-2.16.0

本文涉及的产品
可观测监控 Prometheus 版,每月50GB免费额度
可观测可视化 Grafana 版,10个用户账号 1个月
EMR Serverless StarRocks,5000CU*H 48000GB*H
简介: 记(linux-x86-arm64)麒麟V10安装openjdk+Grafana-7.2.0+Prometheus-2.16.0

麒麟官网 https://m.kylinos.cn/support/trial.html?trial=44548

图片.png图片.png

Grafana是一款用Go语言开发的开源数据可视化工具,可以做数据监控和数据统计,带有告警功能,支持Graphite、elasticsearch、zabbix、InfluxDB、Prometheus和OpenTSDB作为数据源。Grafana主要特性:灵活丰富的图形化选项;可以混合多种风格;支持白天和夜间模式;多个数据源

图片.png

图片.png

#先安装jdk,后面装点别的
#x86和arm64的安装过程是一样的
sudo -i
#查看系统版本
cat /etc/.kyinfo
uname -a
#使用麒麟镜像源查询可安装jdk版本
apt-cache search jdk
#安装jdk1.8
apt-get install openjdk-8-jdk
#查看jdk版本
java -version
#或者jdk安装方式参照https://bbs.huaweicloud.com/blogs/301909

图片.png

图片.png

图片.png

#grafana官网
https://grafana.com/
#wget下载grafana
wget https://dl.grafana.com/oss/release/grafana-7.2.0.linux-arm64.tar.gz
wget https://dl.grafana.com/oss/release/grafana-7.2.0.linux-amd64.tar.gz
#解压
tar -zxvf grafana-7.2.0.linux-amd64.tar.gz
#cd到bin目录下,启动grafana-server ,开机自启
./grafana-server start
./grafana-server enable

图片.png

图片.png

##浏览器输入IP:3000
账号密码默认admin/admin
设置新密码

图片.png

#prometheus官网
https://prometheus.io/download/
#通过wget下载prometheus
wget https://github.com/prometheus/prometheus/releases/download/v2.16.0/prometheus-2.30.0.linux-arm64.tar.gz
wget https://github.com/prometheus/prometheus/releases/download/v2.16.0/prometheus-2.30.0.linux-amd64.tar.gz
wget https://github.com/prometheus/prometheus/releases/download/v2.16.0/prometheus-2.30.0.linux-mips64.tar.gz
wget https://github.com/prometheus/prometheus/releases/download/v2.16.0/prometheus-2.16.0.linux-amd64.tar.gz

图片.png

#解压至/usr/local/
tar -zxvf prometheus-2.16.0.linux-amd64.tar.gz -C /usr/local/
#将prometheus-2.30.0.linux-arm64改名为prometheus
cd /usr/local/
mv /usr/local/prometheus
cd /usr/local/prometheus
ls
#启动Prometheus—使用默认配置文件启动
/usr/local/prometheus/prometheus --config.file="/usr/local/prometheus/prometheus.yml" &

图片.png

图片.png

图片.png

#查看9090端口是否开启
ss -anlt | grep 9090

图片.png

#通过浏览器进入页面
IP:9090
#数据展示
IP:9090/metrics

图片.png

相关实践学习
通过可观测可视化Grafana版进行数据可视化展示与分析
使用可观测可视化Grafana版进行数据可视化展示与分析。
目录
相关文章
|
12天前
|
Prometheus 监控 Cloud Native
自定义grafana_table(数据源Prometheus)
综上所述,自定义 Grafana 表格并将 Prometheus 作为数据源的关键是理解 PromQL 的查询机制、熟悉 Grafana 面板的配置选项,并利用 Grafana 强大的转换和自定义功能使数据展示更为直观和有洞见性。随着对这些工具更深入的了解,您将可以创建出更高级的监控仪表盘,以支持复杂的业务监控需求。
47 1
|
13天前
|
Prometheus 监控 Cloud Native
prometheus学习笔记之Grafana安装与配置
prometheus学习笔记之Grafana安装与配置
|
13天前
|
存储 Prometheus 监控
Grafana 与 Prometheus 集成:打造高效监控系统
【8月更文第29天】在现代软件开发和运维领域,监控系统已成为不可或缺的一部分。Prometheus 和 Grafana 作为两个非常流行且互补的开源工具,可以协同工作来构建强大的实时监控解决方案。Prometheus 负责收集和存储时间序列数据,而 Grafana 则提供直观的数据可视化功能。本文将详细介绍如何集成这两个工具,构建一个高效、灵活的监控系统。
50 1
|
14天前
|
Prometheus 监控 Cloud Native
Spring Boot 性能护航!Prometheus、Grafana、ELK 组合拳,点燃数字化时代应用稳定之火
【8月更文挑战第29天】在现代软件开发中,保证应用性能与稳定至关重要。Spring Boot 作为流行的 Java 框架,结合 Prometheus、Grafana 和 ELK 可显著提升监控与分析能力。Prometheus 负责收集时间序列数据,Grafana 将数据可视化,而 ELK (Elasticsearch、Logstash、Kibana)则管理并分析应用日志。通过具体实例演示了如何在 Spring Boot 应用中集成这些工具:配置 Prometheus 获取度量信息、Grafana 显示结果及 ELK 分析日志,从而帮助开发者快速定位问题,确保应用稳定高效运行。
30 1
|
29天前
|
Prometheus Kubernetes 监控
Kubernetes(K8S) 监控 Prometheus + Grafana
Kubernetes(K8S) 监控 Prometheus + Grafana
104 2
|
21天前
|
Prometheus 监控 Cloud Native
在Linux中,如何使用Grafana和Prometheus进行网络监控和可视化?
在Linux中,如何使用Grafana和Prometheus进行网络监控和可视化?
|
1月前
|
Prometheus 监控 Cloud Native
性能监控之 node_exporter+Prometheus+Grafana 实现主机监控
【8月更文挑战第3天】性能监控之 node_exporter+Prometheus+Grafana 实现主机监控
40 0
|
Prometheus 监控 Cloud Native
如何使用 Prometheus 和 Grafana 监控 Linux 进程?
如何使用 Prometheus 和 Grafana 监控 Linux 进程?
528 0
如何使用 Prometheus 和 Grafana 监控 Linux 进程?
|
Prometheus 监控 Cloud Native
prometheus+grafana监控linux
prometheus+grafana监控linux
314 0
prometheus+grafana监控linux
|
9天前
|
机器学习/深度学习 安全 网络协议
Linux防火墙iptables命令管理入门
本文介绍了关于Linux防火墙iptables命令管理入门的教程,涵盖了iptables的基本概念、语法格式、常用参数、基础查询操作以及链和规则管理等内容。
166 73