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
...

相关推荐

  1. apache_exporter安装说明

    2024-02-07 06:36:02       42 阅读
  2. FastDDS编译安装说明

    2024-02-07 06:36:02       35 阅读
  3. Ansible 安装及使用说明

    2024-02-07 06:36:02       30 阅读
  4. 安全刷写简单说明

    2024-02-07 06:36:02       51 阅读
  5. Python教程:Python安装目录说明

    2024-02-07 06:36:02       41 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-07 06:36:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-07 06:36:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-02-07 06:36:02       87 阅读
  4. Python语言-面向对象

    2024-02-07 06:36:02       96 阅读

热门阅读

  1. [C++] sqlite3_get_table 的使用

    2024-02-07 06:36:02       45 阅读
  2. 跟着GPT学设计模式之原型模式

    2024-02-07 06:36:02       56 阅读
  3. 如何使用postman进行接口调试

    2024-02-07 06:36:02       55 阅读
  4. 【wu-easy-excel-starter】1.2.2-JDK17-SNAPSHOT

    2024-02-07 06:36:02       46 阅读
  5. C/C++ - 容器set

    2024-02-07 06:36:02       43 阅读
  6. 零基础学Python之面向对象

    2024-02-07 06:36:02       43 阅读
  7. CGAL::2D Arrangements-3

    2024-02-07 06:36:02       50 阅读
  8. 使用lodash防抖节流

    2024-02-07 06:36:02       51 阅读
  9. Spark scala如何本地运行

    2024-02-07 06:36:02       48 阅读
  10. leetcode - 408. Valid Word Abbreviation

    2024-02-07 06:36:02       41 阅读
  11. Docker- chapter 1

    2024-02-07 06:36:02       47 阅读