File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -74,17 +74,23 @@ All values will be passed through `event.sprintf`
7474
7575Example:
7676[source,ruby]
77+ -----
7778 {
7879 "title" => "Logstash event on %{host}"
7980 "name" => "logstash_stream"
8081 }
82+ -----
83+
8184or
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
117123Example:
118124[source,ruby]
125+ -----
119126 {
120127 "value" => "1"
121128 "source" => "%{host}"
122129 "name" => "messages_received"
123130 }
131+ -----
124132
125133Additionally, 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+
133144Default 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
144155Example:
145156[source,ruby]
157+ -----
146158 {
147159 "value" => "%{bytes_received}"
148160 "source" => "%{host}"
149161 "name" => "apache_bytes"
150162 }
163+ -----
151164Additionally, 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+ -----
159175Default is to use the event's timestamp
160176
161177
You can’t perform that action at this time.
0 commit comments