Skip to content

Commit f08240c

Browse files
committed
Fix formatting for code samples in output-librato
Fixes #772
1 parent 74de4b0 commit f08240c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/plugins/outputs/librato.asciidoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,23 @@ All values will be passed through `event.sprintf`
7474

7575
Example:
7676
[source,ruby]
77+
-----
7778
{
7879
"title" => "Logstash event on %{host}"
7980
"name" => "logstash_stream"
8081
}
82+
-----
83+
8184
or
85+
8286
[source,ruby]
87+
-----
8388
{
8489
"title" => "Logstash event"
8590
"description" => "%{message}"
8691
"name" => "logstash_stream"
8792
}
93+
-----
8894

8995
[id="plugins-{type}s-{plugin}-api_token"]
9096
===== `api_token`
@@ -116,20 +122,25 @@ Send data to Librato as a counter
116122

117123
Example:
118124
[source,ruby]
125+
-----
119126
{
120127
"value" => "1"
121128
"source" => "%{host}"
122129
"name" => "messages_received"
123130
}
131+
-----
124132

125133
Additionally, you can override the `measure_time` for the event. Must be a unix timestamp:
126134
[source,ruby]
135+
-----
127136
{
128137
"value" => "1"
129138
"source" => "%{host}"
130139
"name" => "messages_received"
131140
"measure_time" => "%{my_unixtime_field}"
132141
}
142+
-----
143+
133144
Default is to use the event's timestamp
134145

135146
[id="plugins-{type}s-{plugin}-gauge"]
@@ -143,19 +154,24 @@ Send data to Librato as a gauge
143154

144155
Example:
145156
[source,ruby]
157+
-----
146158
{
147159
"value" => "%{bytes_received}"
148160
"source" => "%{host}"
149161
"name" => "apache_bytes"
150162
}
163+
-----
151164
Additionally, you can override the `measure_time` for the event. Must be a unix timestamp:
165+
152166
[source,ruby]
167+
-----
153168
{
154169
"value" => "%{bytes_received}"
155170
"source" => "%{host}"
156171
"name" => "apache_bytes"
157172
"measure_time" => "%{my_unixtime_field}
158173
}
174+
-----
159175
Default is to use the event's timestamp
160176

161177

0 commit comments

Comments
 (0)