Prometheus(三)之Grafana可视化配置

本文涉及的产品
EMR Serverless StarRocks,5000CU*H 48000GB*H
可观测可视化 Grafana 版,10个用户账号 1个月
可观测监控 Prometheus 版,每月50GB免费额度
简介: Prometheus(三)之Grafana可视化配置

一、下载与安装

1、下载

Download Grafana | Grafana Labs

2、安装

解压到合适文件夹中,解压目录结构如下:

2020/11/27  00:44    <DIR>          bin
2020/11/27  00:44    <DIR>          conf
2020/11/24  22:20            11,343 LICENSE
2020/11/24  22:20               108 NOTICE.md
2020/11/27  00:44    <DIR>          plugins-bundled
2020/11/27  00:45    <DIR>          public
2020/11/24  22:20             2,799 README.md
2020/11/27  00:45    <DIR>          scripts
2020/11/27  00:45    <DIR>          tools
2020/11/24  22:31                 5 VERSION

cmd中启动grafana-server,尾部输出如下配置,表示服务启动成功。

>grafana-server
[32mINFO[0m[11-27|00:47:48] Created default admin                    [32mlogger[0m=sqlstore [32muser[0m=admin
[32mINFO[0m[11-27|00:47:48] Starting plugin search                   [32mlogger[0m=plugins
[32mINFO[0m[11-27|00:47:48] Registering plugin                       [32mlogger[0m=plugins [32mid[0m=input
[32mINFO[0m[11-27|00:47:48] External plugins directory created       [32mlogger[0m=plugins [32mdirectory[0m=D:\\ProgramData\\grafana-7.3.4\\data\\plugins

浏览器中访问http://localhost:3000,输入默认账户admin/admin,登录成功后,需要修改当前默认密码,需要额外记住

进入页面,默认显示欢迎页面。

二、配置数据源

进入首页,选择配置菜单项,对数据源进行接入配置。

1、选择数据源

选择Prometheus作为数据源,原生默认支持,不需要额外安装插件。

2、配置数据地址

测试连接,提示成功,则表示基本配置无误

3、自动生成可视化面板

依据数据源配置简单展示面板,如下,导入Prometheus相关项。

导入后,可点击对应列表文字,如Prometheus 2.0 Stats,将能够查看到对应的相关可视化图表

4、配置进程服务化

>D:\ProgramData\grafana-7.3.4\bin\grafana-server.exe  -config "D:\ProgramData\grafana-7.3.4\conf\defaults.ini" -homepath "D:\ProgramData\grafana-7.3.4"

需要指定配置文件路径-config和设置程序主路径-homepath,默认为当前工作路径。



相关文章
|
8天前
|
Prometheus 监控 Cloud Native
基于Prometheus和Grafana的监控平台 - 环境搭建
基于Prometheus和Grafana的监控平台 - 环境搭建
|
1天前
|
Prometheus 监控 Cloud Native
性能监控神器Prometheus、Grafana、ELK 在springboot中的运用
【6月更文挑战第27天】在 Spring Boot 应用中,监控和日志管理是确保系统稳定性和性能的重要手段。
15 4
|
16天前
|
Prometheus 监控 Cloud Native
【监控】Spring Boot+Prometheus+Grafana实现可视化监控
【监控】Spring Boot+Prometheus+Grafana实现可视化监控
39 6
|
14天前
|
Prometheus 监控 Cloud Native
SpringBoot2.x整合Prometheus+Grafana【附源码】
SpringBoot2.x整合Prometheus+Grafana【附源码】
23 1
|
1月前
|
Prometheus 监控 Kubernetes
Prometheus + Grafana安装
Prometheus + Grafana安装
|
1月前
|
Prometheus Cloud Native Java
微服务框架(二十三)Prometheus + Grafana 安装、配置及使用
此系列文章将会描述Java框架Spring Boot、服务治理框架Dubbo、应用容器引擎Docker,及使用Spring Boot集成Dubbo、Mybatis等开源框架,其中穿插着Spring Boot中日志切面等技术的实现,然后通过gitlab-CI以持续集成为Docker镜像。 本文为Prometheus + Grafana 安装、配置及使用 本系列文章中所使用的框架版本为Spring ...
|
1月前
|
Prometheus 监控 前端开发
prometheus|云原生|grafana-9.4.3版本的主题更改
prometheus|云原生|grafana-9.4.3版本的主题更改
163 0
|
1月前
|
Prometheus 监控 Cloud Native
应用监控(Prometheus + Grafana)
应用监控(Prometheus + Grafana)
201 2
|
1月前
|
Prometheus 监控 Cloud Native
Prometheus+Grafana+NodeExporter 打造一款出色的监控系统,帅呆了!
Prometheus+Grafana+NodeExporter 打造一款出色的监控系统,帅呆了!
104 2
|
1月前
|
Prometheus 监控 Cloud Native
SpringBoot3 整合Prometheus + Grafana
SpringBoot3 整合Prometheus + Grafana
SpringBoot3 整合Prometheus + Grafana