feat: fence output

This commit is contained in:
Kevin Franklin Kim 2023-09-11 14:14:58 +02:00
parent 2c4734184c
commit 7fded0fa58
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ func Readme() string {
if gatherer, err := prometheus.DefaultGatherer.Gather(); err == nil { if gatherer, err := prometheus.DefaultGatherer.Gather(); err == nil {
for _, value := range gatherer { for _, value := range gatherer {
rows = append(rows, []string{ rows = append(rows, []string{
value.GetName(), markdown.Code(value.GetName()),
value.GetType().String(), value.GetType().String(),
value.GetHelp(), value.GetHelp(),
}) })

View File

@ -155,8 +155,8 @@ func ExampleNewHTTPReadme() {
// //
// | Name | Type | Description | // | Name | Type | Description |
// | ---------------------------------- | ------- | ------------------------------------------------------------------ | // | ---------------------------------- | ------- | ------------------------------------------------------------------ |
// | foo_bar_total | COUNTER | Foo bar metrics | // | `foo_bar_total` | COUNTER | Foo bar metrics |
// | foo_baz_total | COUNTER | Foo baz metrics | // | `foo_baz_total` | COUNTER | Foo baz metrics |
// | `go_gc_duration_seconds` | SUMMARY | A summary of the pause duration of garbage collection cycles. | // | `go_gc_duration_seconds` | SUMMARY | A summary of the pause duration of garbage collection cycles. |
// | `go_goroutines` | GAUGE | Number of goroutines that currently exist. | // | `go_goroutines` | GAUGE | Number of goroutines that currently exist. |
// | `go_info` | GAUGE | Information about the Go environment. | // | `go_info` | GAUGE | Information about the Go environment. |