Skip to content

Commit ba3eb49

Browse files
authored
Merge pull request #5 from ibm-cds-labs/sos
Sos
2 parents b61cc5e + b303a99 commit ba3eb49

File tree

13 files changed

+11751
-52
lines changed

13 files changed

+11751
-52
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
npm-debug.log
33
start.sh
4+
.vscode

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ The value of QUEUE_NAME determines which queue/topic the data is written to. If
7373
5. rabbit_pubsub - mcpubsub
7474
6. kafka - mcqueue
7575

76+
### ETCD_URL
77+
78+
`ETCD_URL` determines which [Etcd](https://github.com/coreos/etcd) instance should be used for the Service Registry.
79+
80+
The Service Registry allows the Metrics Collector Microservice to be utilised by the [Simple Search Service](https://github.com/ibm-cds-labs/simple-search-service) to log searches. This is achieved by using the [Simple Service Registry](https://github.com/mattcollins84/simple-service-registry) module.
81+
7682
### VCAP_SERVICES
7783

7884
`VCAP_SERVICES` is created for you by the Bluemix Cloud Foundry service. It defines the credentials of the attached services that this app can connect to.
@@ -244,6 +250,9 @@ CDS Labs Simple Logging Service started on port 8081 : Fri Nov 27 2015 15:57:31
244250
Created topic 'mcqueue'
245251
```
246252

253+
## Web output
254+
There is a realtime web output of each item logged at `/output`. Load this page and wait for events to be displayed at the front end. This page does not load any historical data.
255+
247256
## Conclusion
248257

249258
The Simple Logging Service is a Bluemix app that collects web metrics. Instead of storing the metrics directly in a database, it writes the data to a choice of queues (Redis, RabbitMQ and Apache Kafka). You can run this app on many instances to share the data collection load and couple it with other microservices that consume and analyse the data. It could serve as the basis of a high-volume metrics collection service.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"message-hub-rest": "^1.0.1",
2525
"node-redis": "^0.1.7",
2626
"rabbit.js": "^0.4.4",
27+
"simple-service-registry": "^0.1.1",
28+
"socket.io": "^1.4.8",
2729
"when": "~3.7.3"
2830
},
2931
"devDependencies": {

0 commit comments

Comments
 (0)