Skip to content

Commit 2ee9356

Browse files
authored
Fix typos (#76)
1 parent 55d6a36 commit 2ee9356

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

doc/usage.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ m6_statsd:
1212
address: 'udp://localhost'
1313
port: 1234
1414
serv1:
15-
address: 'udp://lolcaThost'
15+
address: 'udp://localhost'
1616
port: 1235
1717
serv2:
18-
address: 'udp://lolcaThost'
18+
address: 'udp://localhost'
1919
port: 1236
2020
clients:
2121
default:
2222
servers: ["default"] # the 'default' client will use only the default server
2323
swag:
24-
servers: ["serv1", "serv2"] # the 'swag' client will use serv1 OR serv2 to send the datas
24+
servers: ["serv1", "serv2"] # the 'swag' client will use serv1 OR serv2 to send the data
2525
mighty:
2626
servers: ["all"] # use all servers configured
2727
shell_patern:
@@ -34,7 +34,7 @@ You have to use the same graphite server behind statsd instance in order to see
3434
3535
## Basic usage
3636
37-
In a Symfony controller :
37+
In a Symfony controller:
3838
3939
```php
4040
// m6_statsd access to the default client by convention
@@ -44,7 +44,7 @@ $this->get('m6_statsd')->timing('another.graphite.node', (float) $timing);
4444
$this->get('m6_statsd.swag')->increment('huho');
4545
```
4646

47-
By default, the send method of each clients is called on the kernel.terminate event. But you can call it manually in a controller :
47+
By default, the send method of each clients is called on the kernel.terminate event. But you can call it manually in a controller:
4848

4949
```php
5050
$this->get('m6_statsd')->send();
@@ -54,10 +54,10 @@ $this->get('m6_statsd')->send();
5454

5555
### Increments
5656

57-
We don't really like mixing our business code with monitoring stuff. We prefer to launch events with significant informations, listen to them, and send our monitoring stuffs in the listeners. The good news is that StatsdBundle is doing it for you.
57+
We don't really like mixing our business code with monitoring stuff. We prefer to launch events with significant information, listen to them, and send our monitoring stuffs in the listeners. The good news is that StatsdBundle is doing it for you.
5858

5959
At each client level, you can specify events listened in order to build statsd increment or timing based on them.
60-
For example, with the following configuration :
60+
For example, with the following configuration:
6161

6262
```yaml
6363
m6_statsd:
@@ -217,13 +217,13 @@ m6_statsd:
217217
method : getExecutionTime
218218
```
219219

220-
As you can see in the previous exemple, the event object also provides a `getUnderscoredCommandName` method. This method returns the command name with colons replaced by underscores. This can be useful because statsd uses colon as separator.
220+
As you can see in the previous example, the event object also provides a `getUnderscoredCommandName` method. This method returns the command name with colons replaced by underscores. This can be useful because statsd uses colon as separator.
221221

222-
These events also provide a `getTiming` method (which is an alias of `getExecutionTime`) that allow to use simple `timer` entry.
222+
These events also provide a `getTiming` method (which is an alias of `getExecutionTime`) that allows to use simple `timer` entry.
223223

224224
## Collect basics metrics on your Symfony application
225225

226-
Basics metrics can be http code, memory consumption, execution time. Thoses metrics can be collected when the `kernel.terminate` event.
226+
Basics metrics can be http code, memory consumption, execution time. Thoses metrics can be collected from the `kernel.terminate` event.
227227

228228
Some basic collectors are already implemented in the bundle, but not activated by default.
229229

0 commit comments

Comments
 (0)