Skip to content

Commit

Permalink
Merge pull request #232 from kongfei605/input_mtail
Browse files Browse the repository at this point in the history
update readme for mtail
  • Loading branch information
kongfei605 authored Nov 5, 2022
2 parents 959985c + 1db21b8 commit f5d85e9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions inputs/mtail/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ counter line_total by logfile,env
获取到的metrics中会添加上`env=production`的label 如下:
```python
# metrics
# HELP line_total defined at test.mtail:2:9-18
# TYPE line_total counter
line_total{env="production",logfile="/path/to/xxxx.log",prog="test.mtail"} 4 1661165941788
```

Expand Down Expand Up @@ -203,8 +201,6 @@ nonzero_positives++

默认emit_metric_timestamp="false" (注意是字符串)
```
# HELP http_latency defined at histo.mtail:1:11-22
# TYPE http_latency histogram
http_latency_bucket{prog="histo.mtail",le="1"} 0
http_latency_bucket{prog="histo.mtail",le="2"} 0
http_latency_bucket{prog="histo.mtail",le="4"} 0
Expand All @@ -216,8 +212,6 @@ http_latency_count{prog="histo.mtail"} 0

参数 emit_metric_timestamp="true" (注意是字符串)
```
# HELP http_latency defined at histo.mtail:1:11-22
# TYPE http_latency histogram
http_latency_bucket{prog="histo.mtail",le="1"} 1 1661152917471
http_latency_bucket{prog="histo.mtail",le="2"} 2 1661152917471
http_latency_bucket{prog="histo.mtail",le="4"} 2 1661152917471
Expand Down

0 comments on commit f5d85e9

Please sign in to comment.