Commit 07998cb8 by lincyawer

添加mangodb

parent b46def27
Showing with 12 additions and 5 deletions
...@@ -74,6 +74,13 @@ services: ...@@ -74,6 +74,13 @@ services:
- source: rabbitmq - source: rabbitmq
target: /etc/config.json target: /etc/config.json
command: "-config-file /etc/config.json" command: "-config-file /etc/config.json"
mongodb:
image: percona/mongodb_exporter:0.35.0
ports:
- 10007:9216
networks:
- monitoring
command: "--mongodb.uri=mongodb://ichunt:huntmon6699@192.168.1.237:17001/ichunt"
volumes: volumes:
prome-data: prome-data:
......
...@@ -23,22 +23,22 @@ scrape_configs: ...@@ -23,22 +23,22 @@ scrape_configs:
# # Not required. Will match value to child in config file. Default value is `client`. # # Not required. Will match value to child in config file. Default value is `client`.
# auth_module: client.servers # auth_module: client.servers
static_configs: static_configs:
- targets: ['192.168.1.234:9104','192.168.1.234:9105'] - targets: ['192.168.1.234:9999','192.168.1.234:10003']
- job_name: 'node' - job_name: 'node'
static_configs: static_configs:
- targets: ['192.168.1.234:9100','192.168.1.252:9100'] - targets: ['192.168.1.234:9100','192.168.1.252:9100']
- job_name: 'elastic_search' - job_name: 'elastic_search'
static_configs: static_configs:
- targets: ['192.168.1.234:9114'] - targets: ['192.168.1.234:10004']
- job_name: 'redis' - job_name: 'redis'
static_configs: static_configs:
- targets: ['192.168.1.234:9121'] - targets: ['192.168.1.234:10005']
- job_name: 'mongodb' - job_name: 'mongodb'
static_configs: static_configs:
- targets: ['192.168.1.234:9001'] - targets: ['192.168.1.234:10007']
- job_name: 'rabbitmq' - job_name: 'rabbitmq'
static_configs: static_configs:
- targets: ['192.168.1.234:9419'] - targets: ['192.168.1.234:10006']
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment