Skip to content

Commit 17c8191

Browse files
author
Ville Koskela
committed
Added contributors file; updates to readme.md; fixed appassembler plugin configuration
1 parent baafd73 commit 17c8191

File tree

3 files changed

+63
-25
lines changed

3 files changed

+63
-25
lines changed

CONTRIBUTORS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Contributors
2+
============
3+
4+
The following people have made source contributions to the metrics aggregator daemon project:
5+
6+
* Brandon Arp (barp at groupon dot com)
7+
* Ville Koskela (vkoskela at groupon dot com)
8+
9+
© Groupon Inc., 2016

README.md

Lines changed: 52 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,56 @@
11
Metrics Cluster Aggregator
22
==========================
33

4-
Combines aggregate values from multiple TSD Aggregators into an aggregate. Simply, this means combining the values from your fleet.
5-
6-
7-
Setup
4+
<a href="https://raw.githubusercontent.com/ArpNetworking/metrics-cluster-aggregator/master/LICENSE">
5+
<img src="https://img.shields.io/hexpm/l/plug.svg"
6+
alt="License: Apache 2">
7+
</a>
8+
<a href="https://travis-ci.org/ArpNetworking/metrics-cluster-aggregator/">
9+
<img src="https://travis-ci.org/ArpNetworking/metrics-cluster-aggregator.png"
10+
alt="Travis Build">
11+
</a>
12+
<a href="http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.arpnetworking.metrics%22%20a%3A%22metrics-cluster-aggregator%22">
13+
<img src="https://img.shields.io/maven-central/v/com.arpnetworking.metrics/metrics-cluster-aggregator.svg"
14+
alt="Maven Artifact">
15+
</a>
16+
17+
Reaggregates statistics received from multiple Metric Aggregator Daemon instances into aggregates across each cluster. Simply, this means combining the values from each host in your fleet. Both the host and cluster values are published to various configurable data sinks.
18+
19+
20+
Usage
821
-----
922

10-
### Building ###
11-
12-
Prerequisites:
13-
* [JDK8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
14-
15-
Building:
16-
17-
metrics-cluster-aggregator> ./mvnw install
18-
19-
### Installing ###
23+
### Installation
2024

2125
The artifacts from the build are in *metrics-cluster-aggregator/target/appassembler* and should be copied to an appropriate directory on your application host(s).
2226

23-
### Execution ###
27+
### Execution
2428

25-
In the installation's *bin* directory there are scripts to start Metrics Cluster Aggregator: *metrics-cluster-aggregator* (Linux) and *metrics-cluster-aggregator.bat* (Windows). One of these should be executed on system start with appropriate parameters; for example:
29+
In the installation's *bin* directory there are scripts to start Metrics Cluster Aggregator: *cluster-aggregator* (Linux) and *cluster-aggregator.bat* (Windows). One of these should be executed on system start with appropriate parameters; for example:
2630

27-
/usr/local/lib/metrics-cluster-aggregator/bin/metrics-cluster-aggregator /usr/local/lib/metrics-cluster-aggregator/config/config.json
31+
/usr/local/lib/metrics-cluster-aggregator/bin/cluster-aggregator /usr/local/lib/metrics-cluster-aggregator/config/config.json
2832

29-
### Configuration ###
33+
### Configuration
3034

31-
#### Logging ####
35+
#### Logging
3236

3337
To customize logging you may provide a [LogBack](http://logback.qos.ch/) configuration file. To use a custom logging configuration you need to define and export an environment variable before executing *cluster-aggregator*:
3438

3539
export JAVA_OPTS="-Dlogback.configurationFile=/usr/local/lib/metrics-cluster-aggregator/config/logger.xml"
3640

3741
Where */usr/local/lib/metrics-cluster-aggregator/config/logger.xml* is the path to your logging configuration file.
3842

39-
#### Daemon ####
43+
#### Daemon
4044

41-
The Metrics Cluster Aggregator daemon configuration is specified in a JSON file. The location of the configuration file is passed to *metrics-cluster-aggregator* as a command line argument:
45+
The Metrics Cluster Aggregator configuration is specified in a JSON file. The location of the configuration file is passed to *metrics-cluster-aggregator* as a command line argument:
4246

4347
/usr/local/etc/metrics-cluster-aggregator/config/prod.conf
4448

4549
The configuration specifies:
4650

4751
* logDirectory - The location of additional logs. This is independent of the logging configuration.
48-
* pipelineConfiguration - The location of configuration file for the metrics pipeline.
52+
* clusterPipelineConfiguration - The location of configuration file for the cluster statistics pipeline.
53+
* hostPipelineConfiguration - The location of the configuration file for the host statistics pipeline.
4954
* httpHost - The ip address to bind the http server to.
5055
* httpPort - The port to bind the http server to.
5156
* aggregationHost - The ip address to bind the tcp aggregation server to.
@@ -129,7 +134,7 @@ For example:
129134
}
130135
```
131136

132-
#### Pipeline ####
137+
#### Pipeline
133138

134139
Metrics Cluster Aggregator supports a two pipelines. The first is the host pipeline which handles publication of all statistics received from Metrics Aggregator Daemon instances. The second is the cluster pipeline which handles all statistics (re)aggregated by cluster across host statistics from Metrics Aggregator Daemon instances. In both cases the pipeline defines one more destinations or sinks for the statistics.
135140

@@ -148,6 +153,30 @@ For example:
148153
}
149154
```
150155

156+
Development
157+
-----------
158+
159+
To build the service locally you must satisfy these prerequisites:
160+
* [JDK8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
161+
162+
Next, fork the repository, clone and build:
163+
164+
Building:
165+
166+
metrics-aggregator-daemon> ./mvnw verify
167+
168+
To use the local version in your project you must first install it locally:
169+
170+
metrics-aggregator-daemon> ./mvnw install
171+
172+
You can determine the version of the local build from the pom.xml file. Using the local version is intended only for testing or development.
173+
174+
You may also need to add the local repository to your build in order to pick-up the local version:
175+
176+
* Maven - Included by default.
177+
* Gradle - Add *mavenLocal()* to *build.gradle* in the *repositories* block.
178+
* SBT - Add *resolvers += Resolver.mavenLocal* into *project/plugins.sbt*.
179+
151180
License
152181
-------
153182

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@
200200
<configuration>
201201
<programs>
202202
<program>
203-
<id>mad</id>
204-
<mainClass>com.arpnetworking.metrics.mad.Main</mainClass>
203+
<id>cluster-aggregator</id>
204+
<mainClass>com.arpnetworking.metrics.clusteraggregator.Main</mainClass>
205205
</program>
206206
</programs>
207207
</configuration>

0 commit comments

Comments
 (0)