Skip to content

Commit

Permalink
chore: fix readme for metrics type
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangmingLuo committed Jan 17, 2024
1 parent a0c90d9 commit 0b4405e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ The data stored in Prometheus consists of time series, uniquely identified by a

#### Counter
- Understandable as an increment-only counter, typical applications include counting requests, completed tasks, occurring errors, etc.
- Corresponds to gopkg/metrics' EmitStore.
- Corresponds to gopkg/metrics' `EmitCounter`.

#### Gauge
- A standard metric; typical applications include counting goroutines.
- Can be increased or decreased arbitrarily.
- Corresponds to gopkg/metrics' EmitCounter.
- Corresponds to gopkg/metrics' `EmitStore`.

#### Histogram
- Generates histogram data used for statistical analysis of sample distributions; typical applications include pct99, average CPU usage, etc.
Expand Down
4 changes: 2 additions & 2 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ Prometheus 中存储的数据为时间序列,是由 metric 的名字和一系

#### Counter
- 可以理解为只增不减的计数器,典型的应用如:请求的个数,结束的任务数, 出现的错误数等等;
- 对应 gopkg/metrics 的 EmitStore
- 对应 gopkg/metrics 的 `EmitCounter`

#### Gauge
- 一种常规的 metric,典型的应用如:goroutines 的数量;
- 可以任意加减;
- 对应 gopkg/metrics 的 EmitCounter
- 对应 gopkg/metrics 的 `EmitStore`

#### Histogram
- 生成直方图数据,用于统计和分析样本的分布情况,典型的应用如:pct99,CPU 的平均使用率等;
Expand Down

0 comments on commit 0b4405e

Please sign in to comment.