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
...
相关推荐
老徐电商数据笔记19 分钟前
一个典型的基于 Apache Paimon 的湖仓一体架构图
apache·湖仓一体·paimon·湖仓
pangares12 小时前
防火墙安全策略(基本配置)
服务器·php·apache
Hello.Reader1 天前
Apache Flink 2.2.0 源码编译从环境准备到 PyFlink 打包一次讲清
大数据·flink·apache
青衫客361 天前
浅谈 Apache POI:XSSFWorkbook 的原理与实践(Java 操作 Excel 实践指南)
java·apache·excel
DolphinScheduler社区1 天前
Apache DolphinScheduler 3.4.1 发布,新增任务分发超时检测
java·数据库·开源·apache·海豚调度·大数据工作流调度
吴声子夜歌1 天前
小程序——开放接口(登录和用户信息)详解
小程序·apache
倔强的石头1062 天前
工业平台选型指南:权限、审计与多租户治理——用 Apache IoTDB 把“数据可用”升级为“数据可控”
人工智能·apache·iotdb
SeaTunnel2 天前
Apache SeaTunnel 2.3.13 版本前瞻:核心引擎变化和 AI ETL 趋势值得关注
数据仓库·人工智能·apache·etl·seatunnel·数据同步
Apache IoTDB3 天前
谷歌编程之夏 2026:Apache IoTDB 项目征集正式开启!
apache·iotdb
一个天蝎座 白勺 程序猿3 天前
Apache IoTDB(17):IoTDB数据保留时间管理从TTL设置到智能数据生命周期控制
数据库·apache·时序数据库·iotdb