当前位置: 首页 > article >正文

apache_exporter安装说明

Apache Exporter

问题描述

需要监控apache服务,部署了apache_exporter,对过程进行一下记录。

源码参见apache_exporter

①下载

https://github.com/Lusitaniae/apache_exporter/releases

②解压缩

tar -xzvf apache_exporter-0.7.0.linux-amd64.tar.gz

③启动:

cd apache_exporter-0.7.0.linux-amd64
./apache_exporter

④验证:

curl localhost:9117/metrics

预期输出:

# HELP apache_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which apache_exporter was built.
# TYPE apache_exporter_build_info gauge
apache_exporter_build_info{branch="HEAD",goversion="go1.12.6",revision="6195241a96c02af175ba2842dfd883682133b066",version="0.7.0"} 1
# HELP apache_exporter_scrape_failures_total Number of errors while scraping apache.
# TYPE apache_exporter_scrape_failures_total counter
apache_exporter_scrape_failures_total 2
# HELP apache_up Could the apache server be reached
# TYPE apache_up gauge
apache_up 1
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
go_gc_duration_seconds{quantile="0.5"} 0
go_gc_duration_seconds{quantile="0.75"} 0
go_gc_duration_seconds{quantile="1"} 0
go_gc_duration_seconds_sum 0
go_gc_duration_seconds_count 0
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 13
# HELP go_info Information about the Go environment.
# TYPE go_info gauge
go_info{version="go1.12.6"} 1
# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes 1.667696e+06
# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
# TYPE go_memstats_alloc_bytes_total counter
go_memstats_alloc_bytes_total 1.667696e+06
# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
# TYPE go_memstats_buck_hash_sys_bytes gauge
go_memstats_buck_hash_sys_bytes 1.443503e+06
# HELP go_memstats_frees_total Total number of frees.
# TYPE go_memstats_frees_total counter
go_memstats_frees_total 335
...

http://www.kler.cn/a/230817.html

相关文章:

  • 深度解析与推荐:主流Web前端开发框架
  • 【Linux开发工具】gcc/g++的使用
  • 双5G工业路由器无缝链接物联网世界!
  • 【日志记录】——单片机可执行文件合并
  • 【转载】原生社区交友婚恋视频即时通讯双端APP源码 ONE兔2.0版
  • 办公软件巨头CCED、WPS面临新考验,新款办公软件异军突起
  • python的数据类型
  • Nginx反向代理实现与配置
  • 2月7日作业
  • Hadoop3.x基础(4)- Yarn
  • python flask 魔术方法
  • 基于Java (spring-boot)的酒店管理系统
  • 【C生万物】C语言分支和循环语句
  • C#入门详解_01_课程简介、C#语言简介、开发环境和学习资料的准备
  • 学习Spring的第十六天
  • 数据库学习案例20240206-ORACLE NEW RAC agent and resource关系汇总。
  • 从零开始手写mmo游戏从框架到爆炸(八)— byte数组传输
  • Linux实验记录:使用Postfix与Dovecot部署邮件系统
  • 2 月 7 日算法练习- 数据结构-树状数组上二分
  • node.js后端+小程序前端+mongoDB(增删改查)