prometheus监控oracle,Prometheus+Grafana监控系统

Prometheus vs Zabbix

Zabbix的客户端更多是只做上报的事情,push模式。而Prometheus则是客户端本地也会存储监控数据,服务端定时来拉取想要的数据。

Zabbix的客户端agent可以比较方便的通过脚本来读取机器内数据库、日志等文件来做上报。zabbix的客户端agent可以比较方便的通过脚本来读取机器内数据库、日志等文件来做上报。Prometheus的上报客户端则分为不同语言的SDK和不同用途的exporter两种,比如如果你要监控机器状态、mysql性能等,有大量已经成熟的exporter来直接开箱使用,通过http通信来对服务端提供信息上报(server去pull信息);

Zabbix's client is more of only reporting things, push mode. In Prometheus, the client also stores monitoring data locally, and the server regularly pulls the desired data.

Zabbix's client agent can easily read the database, log and other files in the machine through scripts for reporting. The zabbix client agent can easily read the database, log and other files in the machine through scripts for reporting. Prometheus reporting clients are divided into SDKs in different languages and exporters for different purposes. For example, if you want to monitor machine status, mysql performance, etc., there are a large number of mature exporters to use directly out of the box, and serve through HTTP communication. The terminal provides information reporting (server to pull information);

安装Prometheus:

install Prometheus

官网下载地址:

Official website download address

https://prometheus.io/download/

下载您想要的版本后,进行安装使用即可。

After downloading the version you want, install it and use it

cby@cby-Inspiron-7577:~$ wget https://github.com/prometheus/prometheus/releases/download/v2.21.0/prometheus-2.21.0.linux-amd64.tar.gzcby@cby-Inspiron-7577:~$ tar xvf prometheus-2.21.0.linux-amd64.tar.gzprometheus-2.21.0.linux-amd64/prometheus-2.21.0.linux-amd64/LICENSEprometheus-2.21.0.linux-amd64/prometheusprometheus-2.21.0.linux-amd64/promtoolprometheus-2.21.0.linux-amd64/prometheus.ymlprometheus-2.21.0.linux-amd64/NOTICEprometheus-2.21.0.linux-amd64/console_libraries/prometheus-2.21.0.linux-amd64/console_libraries/menu.libprometheus-2.21.0.linux-amd64/console_libraries/prom.libprometheus-2.21.0.linux-amd64/consoles/prometheus-2.21.0.linux-amd64/consoles/node-overview.htmlprometheus-2.21.0.linux-amd64/consoles/node.htmlprometheus-2.21.0.linux-amd64/consoles/prometheus.htmlprometheus-2.21.0.linux-amd64/consoles/node-cpu.htmlprometheus-2.21.0.linux-amd64/consoles/index.html.exampleprometheus-2.21.0.linux-amd64/consoles/prometheus-overview.htmlprometheus-2.21.0.linux-amd64/consoles/node-disk.html

解压后进入文件夹内即可看到该程序。同时即可使用。

After decompression, enter the folder to see the program. Can be used at the same time

cby@cby-Inspiron-7577:~/prometheus-2.21.0.linux-amd64$ ll总用量 161140drwxr-xr-x 4 cby cby 4096

你可能感兴趣的:(prometheus监控oracle,Prometheus+Grafana监控系统)