Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
aoyang
/
monitoring
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
407f55f7
authored
Oct 28, 2022
by
lincyawer
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完善开发环境的监控
parent
b0efd35c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
compose.yaml
rabbitmq/rabbitmq.json
compose.yaml
View file @
407f55f7
services
:
services
:
prometheus
:
prometheus
:
image
:
prom/prometheus
image
:
prom/prometheus
hostname
:
prometheus
ports
:
ports
:
-
"
10001:9090"
-
"
10001:9090"
networks
:
networks
:
...
@@ -55,6 +54,24 @@ services:
...
@@ -55,6 +54,24 @@ services:
-
monitoring
-
monitoring
command
:
"
--es.uri=http://192.168.1.234:9200"
command
:
"
--es.uri=http://192.168.1.234:9200"
redis-exporter
:
image
:
quay.io/oliver006/redis_exporter
ports
:
-
10005:9121
networks
:
-
monitoring
command
:
"
--redis.addr=redis://192.168.1.234:6379
--redis.password=icDb29mLy2s"
rabbitmq-exporter
:
image
:
kbudde/rabbitmq-exporter
ports
:
-
10006:9419
networks
:
-
monitoring
configs
:
-
source
:
rabbitmq
target
:
/etc/config.json
command
:
"
-config-file
/etc/config.json"
volumes
:
volumes
:
prome-data
:
prome-data
:
...
@@ -71,6 +88,8 @@ configs:
...
@@ -71,6 +88,8 @@ configs:
file
:
./mysql/mysql_exporter_234.cnf
file
:
./mysql/mysql_exporter_234.cnf
mysqld252
:
mysqld252
:
file
:
./mysql/mysql_exporter_252.cnf
file
:
./mysql/mysql_exporter_252.cnf
rabbitmq
:
file
:
./rabbitmq/rabbitmq.json
networks
:
networks
:
# The presence of these objects is sufficient to define them
# The presence of these objects is sufficient to define them
...
...
rabbitmq/rabbitmq.json
View file @
407f55f7
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"rabbit_user"
:
"guest"
,
"rabbit_user"
:
"guest"
,
"rabbit_pass"
:
"guest"
,
"rabbit_pass"
:
"guest"
,
"publish_port"
:
"9419"
,
"publish_port"
:
"9419"
,
"publish_addr"
:
"
192.168.1.234
"
,
"publish_addr"
:
"
localhost
"
,
"output_format"
:
"TTY"
,
"output_format"
:
"TTY"
,
"enabled_exporters"
:
[
"enabled_exporters"
:
[
"exchange"
,
"exchange"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment