It is written in java, and use Prometheus as historical metrics storage.
Set up your Zookeeper, Kafka, Druid(If you have) for monitoring.
Set up Prometheus/.
Add a job to scrape DCMonitor's metrics, job config should looks like:
- job_name: 'dcmonitor' scrape_interval: 5s scrape_timeout: 10s target_groups: - targets: ['localhost:8075']
localhost:8075 is the DCMonitor's host:port which web service listen on (configured in
application.properties). The completed example is here.
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!
Compile & deploy DCMonitor
git clone [email protected]:shunfei/DCMonitor.git cd DCMonitor ./build.sh
target folder will be generated under root folder.
You only need to deploy
config to target machine.
Modify configurations in
run.sh, will start the DCMonitor web service. If every thing is fine, visit
http://<hostname>:8075 to enjoy!