该文档内容来自官方文档,包含部分自己的理解。
[toc]
Micrometer 为大多数流行的监控系统的客户端提供了一个门面(facade)。可以用来监控你的 JVM-based 应用,而不需要为每个监控系统都写一个单独的实现。Micrometer 就像监控界的 SLF4J。
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=2.9a | |
LIBEVENT_VERSION=2.1.8-stable |
该文档内容来自官方文档,包含部分自己的理解。
[toc]
Micrometer 为大多数流行的监控系统的客户端提供了一个门面(facade)。可以用来监控你的 JVM-based 应用,而不需要为每个监控系统都写一个单独的实现。Micrometer 就像监控界的 SLF4J。
diff --git a/collector/thermal_darwin.go b/collector/thermal_darwin.go | |
index 282ca3f..fa96f1f 100644 | |
--- a/collector/thermal_darwin.go | |
+++ b/collector/thermal_darwin.go | |
@@ -118,7 +118,9 @@ func (c *thermCollector) Update(ch chan<- prometheus.Metric) error { | |
func fetchCPUPowerStatus() (map[string]int, error) { | |
cfDictRef, _ := C.FetchThermal() | |
defer func() { | |
- C.CFRelease(C.CFTypeRef(cfDictRef.ref)) | |
+ if C.kIOReturnSuccess == cfDictRef.ret { |
package main | |
import ( | |
"context" | |
"fmt" | |
"net" | |
"os" | |
"os/signal" | |
"time" | |
) |