prometheus监控cup_prometheus监控示例

#HELP go_gc_duration_seconds A summary of the GC invocation durations.#TYPE go_gc_duration_seconds summary

go_gc_duration_seconds{quantile="0"} 9.457e-06go_gc_duration_seconds{quantile="0.25"} 1.3434e-05go_gc_duration_seconds{quantile="0.5"} 1.5029e-05go_gc_duration_seconds{quantile="0.75"} 1.9438e-05go_gc_duration_seconds{quantile="1"} 5.0626e-05go_gc_duration_seconds_sum2.462879354go_gc_duration_seconds_count151333

#HELP go_goroutines Number of goroutines that currently exist.#TYPE go_goroutines gauge

go_goroutines 7

#HELP go_info Information about the Go environment.#TYPE go_info gauge

go_info{version="go1.11.2"} 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.597592e+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 4.22028398816e+11

#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 2.36646e+06

#HELP go_memstats_frees_total Total number of frees.#TYPE go_memstats_frees_total counter

go_memstats_frees_total 4.770889735e+09

#HELP go_memstats_gc_cpu_fraction The fraction of this program's available CPU time used by the GC since the program started.#TYPE go_memstats_gc_cpu_fraction gauge

go_memstats_gc_cpu_fraction 0.00019053204931613853

#HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.#TYPE go_memstats_gc_sys_bytes gauge

go_memstats_gc_sys_bytes 2.371584e+06

#HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.#TYPE go_memstats_heap_alloc_bytes gauge

go_memstats_heap_alloc_bytes 1.597592e+06

#HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used.#TYPE go_memstats_heap_idle_bytes gauge

go_memstats_heap_idle_bytes 6.4167936e+07

#HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use.#TYPE go_memstats_heap_inuse_bytes gauge

go_memstats_heap_inuse_bytes 2.58048e+06

#HELP go_memstats_heap_objects Number of allocated objects.#TYPE go_memstats_heap_objects gauge

go_memstats_heap_objects 4106

#HELP go_memstats_heap_released_bytes Number of heap bytes released to OS.#TYPE go_memstats_heap_released_bytes gauge

go_memstats_heap_released_bytes 0#HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.#TYPE go_memstats_heap_sys_bytes gauge

go_memstats_heap_sys_bytes 6.6748416e+07

#HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.#TYPE go_memstats_last_gc_time_seconds gauge

go_memstats_last_gc_time_seconds 1.5547092709770155e+09

#HELP go_memstats_lookups_total Total number of pointer lookups.#TYPE go_memstats_lookups_total counter

go_memstats_lookups_total 0#HELP go_memstats_mallocs_total Total number of mallocs.#TYPE go_memstats_mallocs_total counter

go_memstats_mallocs_total 4.770893841e+09

#HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures.#TYPE go_memstats_mcache_inuse_bytes gauge

go_memstats_mcache_inuse_bytes 1728

#HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system.#TYPE go_memstats_mcache_sys_bytes gauge

go_memstats_mcache_sys_bytes 16384

#HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures.#TYPE go_memstats_mspan_inuse_bytes gauge

go_memstats_mspan_inuse_bytes 30400

#HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system.#TYPE go_memstats_mspan_sys_bytes gauge

go_memstats_mspan_sys_bytes 65536

#HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place.#TYPE go_memstats_next_gc_bytes gauge

go_memstats_next_gc_bytes 4.194304e+06

#HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations.#TYPE go_memstats_other_sys_bytes gauge

go_memstats_other_sys_bytes 355580

#HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator.#TYPE go_memstats_stack_inuse_bytes gauge

go_memstats_stack_inuse_bytes 360448

#HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.#TYPE go_memstats_stack_sys_bytes gauge

go_memstats_stack_sys_bytes 360448

#HELP go_memstats_sys_bytes Number of bytes obtained from system.#TYPE go_memstats_sys_bytes gauge

go_memstats_sys_bytes 7.2284408e+07

#HELP go_threads Number of OS threads created.#TYPE go_threads gauge

go_threads 4

#HELP node_arp_entries ARP entries by device#TYPE node_arp_entries gauge

node_arp_entries{device="eth0"} 94

#HELP node_boot_time_seconds Node boot time, in unixtime.#TYPE node_boot_time_seconds gauge

node_boot_time_seconds 1.517266421e+09

#HELP node_context_switches_total Total number of context switches.#TYPE node_context_switches_total counter

node_context_switches_total 1.4017581608e+10

#HELP node_cpu_guest_seconds_total Seconds the cpus spent in guests (VMs) for each mode.#TYPE node_cpu_guest_seconds_total counter

node_cpu_guest_seconds_total{cpu="0",mode="nice"} 0

node_cpu_guest_seconds_total{cpu="0",mode="user"} 0#HELP node_cpu_seconds_total Seconds the cpus spent in each mode.#TYPE node_cpu_seconds_total counter

node_cpu_seconds_total{cpu="0",mode="idle"} 3.150272624e+07node_cpu_seconds_total{cpu="0",mode="iowait"} 8235.26node_cpu_seconds_total{cpu="0",mode="irq"} 0

node_cpu_seconds_total{cpu="0",mode="nice"} 155.86node_cpu_seconds_total{cpu="0",mode="softirq"} 1313.82node_cpu_seconds_total{cpu="0",mode="steal"} 0

node_cpu_seconds_total{cpu="0",mode="system"} 638845.83node_cpu_seconds_total{cpu="0",mode="user"} 5.23167768e+06

#HELP node_disk_io_now The number of I/Os currently in progress.#TYPE node_disk_io_now gauge

node_disk_io_now{device="sr0"} 0

node_disk_io_now{device="vda"} 0#HELP node_disk_io_time_seconds_total Total seconds spent doing I/Os.#TYPE node_disk_io_time_seconds_total counter

node_disk_io_time_seconds_total{device="sr0"} 0

node_disk_io_time_seconds_total{device="vda"} 47700.901

#HELP node_disk_io_time_weighted_seconds_total The weighted # of seconds spent doing I/Os.#TYPE node_disk_io_time_weighted_seconds_total counter

node_disk_io_time_weighted_seconds_total{device="sr0"} 0

node_disk_io_time_weighted_seconds_total{device="vda"} 2.0911166840000001e+06

#HELP node_disk_read_bytes_total The total number of bytes read successfully.#TYPE node_disk_read_bytes_total counter

node_disk_read_bytes_total{device="sr0"} 0

node_disk_read_bytes_total{device="vda"} 8.671668736e+10

#HELP node_disk_read_time_seconds_total The total number of seconds spent by all reads.#TYPE node_disk_read_time_seconds_total counter

node_disk_read_time_seconds_total{device="sr0"} 0

node_disk_read_time_seconds_total{device="vda"} 29248.991

#HELP node_disk_reads_completed_total The total number of reads completed successfully.#TYPE node_disk_reads_completed_total counter

node_disk_reads_completed_total{device="sr0"} 0

node_disk_reads_completed_total{device="vda"} 4.011729e+06

#HELP node_disk_reads_merged_total The total number of reads merged.#TYPE node_disk_reads_merged_total counter

node_disk_reads_merged_total{device="sr0"} 0

node_disk_reads_merged_total{device="vda"} 9382

#HELP node_disk_write_time_seconds_total This is the total number of seconds spent by all writes.#TYPE node_disk_write_time_seconds_total counter

node_disk_write_time_seconds_total{device="sr0"} 0

node_disk_write_time_seconds_total{device="vda"} 2.061890504e+06

#HELP node_disk_writes_completed_total The total number of writes completed successfully.#TYPE node_disk_writes_completed_total counter

node_disk_writes_completed_total{device="sr0"} 0

node_disk_writes_completed_total{device="vda"} 1.19839672e+08

#HELP node_disk_writes_merged_total The number of writes merged.#TYPE node_disk_writes_merged_total counter

node_disk_writes_merged_total{device="sr0"} 0

node_disk_writes_merged_total{device="vda"} 3.300321e+07

#HELP node_disk_written_bytes_total The total number of bytes written successfully.#TYPE node_disk_written_bytes_total counter

node_disk_written_bytes_total{device="sr0"} 0

node_disk_written_bytes_total{device="vda"} 8.25230344192e+11

#HELP node_entropy_available_bits Bits of available entropy.#TYPE node_entropy_available_bits gauge

node_entropy_available_bits 184

#HELP node_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which node_exporter was built.#TYPE node_exporter_build_info gauge

node_exporter_build_info{branch="HEAD",goversion="go1.11.2",revision="f6f6194a436b9a63d0439abc585c76b19a206b21",version="0.17.0"} 1

#HELP node_filefd_allocated File descriptor statistic

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Prometheus是一种开源的监控系统,用于记录系统中各种指标的时间序列数据。GlusterFS是一个开源的分布式文件系统,可扩展性非常好。在这里,我将介绍如何使用Prometheus监控GlusterFS。 步骤1:安装和配置Prometheus 首先,你需要安装和配置Prometheus。你可以从官方网站下载Prometheus并且按照官方文档进行安装和配置。 在安装和配置完成后,你需要修改Prometheus的配置文件,以便它可以监控GlusterFS。在Prometheus的配置文件中添加以下内容: ``` - job_name: 'glusterfs' scrape_interval: 10s static_configs: - targets: ['localhost:9189'] ``` 这将告诉Prometheus在每10秒钟从本地主机的9189端口收集GlusterFS的指标数据。 步骤2:安装和配置GlusterFS Exporter 要监控GlusterFS,你需要使用GlusterFS Exporter。你可以从GitHub上下载GlusterFS Exporter并且按照官方文档进行安装和配置。 在安装和配置完成后,你需要修改GlusterFS Exporter的配置文件,以便它可以将指标数据提供给Prometheus。在GlusterFS Exporter的配置文件中添加以下内容: ``` glusterserver: - name: 'localhost' port: '24007' ``` 这将告诉GlusterFS Exporter在本地主机的24007端口上监听GlusterFS的指标数据,并将其提供给Prometheus。 步骤3:启动Prometheus和GlusterFS Exporter 启动Prometheus和GlusterFS Exporter,并确保它们正在运行。 步骤4:查看GlusterFS指标数据 现在你可以通过Prometheus的Web界面查看GlusterFS的指标数据。在Web浏览器中输入Prometheus的URL(默认为http://localhost:9090),然后进入Graph页面。在Metrics下拉列表中,搜索glusterfs,就可以看到所有GlusterFS指标数据的名称。 通过选择指标名称,你可以查看指标数据的详细信息,例如当前值、最大值、最小值等。 总结 现在你已经知道了如何使用Prometheus监控GlusterFS。这样,你就可以随时了解GlusterFS的性能和健康状况,并且可以在必要时采取相应的措施来解决问题。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值