Skip to content

Commit

Permalink
fix readme bzf github's markdown display
Browse files Browse the repository at this point in the history
  • Loading branch information
flowbehappy committed Sep 29, 2015
1 parent fa0bcb6 commit cde7c8f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ It is written in java, and use [Prometheus](http://prometheus.io/) as historical
##Installation

* Set up your Zookeeper, Kafka, Druid(If you have) for monitoring.

* Set up [Prometheus/](http://prometheus.io/).

* Download a Prometheus release from [https://github.com/prometheus/prometheus/releases](https://github.com/prometheus/prometheus/releases) and set it up following [http://prometheus.io/docs/introduction/getting_started/](http://prometheus.io/docs/introduction/getting_started/), you can stop before [here](http://prometheus.io/docs/introduction/getting_started/#using-the-graphing-interface) if you don't want to go deep into prometheus. And don't worry, it is extremely easy.

* Add a job to scrape DCMonitor's metrics, job config should looks like:

```
Expand All @@ -47,13 +50,14 @@ It is written in java, and use [Prometheus](http://prometheus.io/) as historical
scrape_timeout: 10s
target_groups:
- targets: ['localhost:8075']
```
Here `localhost:8075` is the DCMonitor's host:port which web service listen on (configured in `application.properties`). The completed example is [here](https://github.com/shunfei/DCMonitor/blob/master/config/prometheus.yml).
After that go to `http://<hostname>:9090/status`, expected to see the dcmonitor endpoints in targets section. It is in `UNHEALTHY` state because we havn't set up DCMonitor web service yet!
```
Here `localhost:8075` is the DCMonitor's host:port which web service listen on (configured in `application.properties`). The completed example is [here](https://github.com/shunfei/DCMonitor/blob/master/config/prometheus.yml).

After that go to `http://<hostname>:9090/status`, expected to see the dcmonitor endpoints in targets section. It is in `UNHEALTHY` state because we havn't set up DCMonitor web service yet!

![](img/prometheus_status.png)


* Compile & deploy DCMonitor

* Compile
Expand Down

0 comments on commit cde7c8f

Please sign in to comment.