Skip to content

Commit

Permalink
Add mysql metric sample to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Ivanov committed May 23, 2018
1 parent 7af2803 commit 83f2fb1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ It can monitor:

- external host HTTP status
- postgres database status
- mysql database status
- redis availability
- rabbit AMQP availability
- whatever else, as can be extended easily
Expand All @@ -23,7 +24,7 @@ Then you can build graphs based on this data:

## Install:

pip install aiohttp_prometheus_monitoring[amqp,redis,postgres]
pip install aiohttp_prometheus_monitoring[amqp,redis,postgres,mysql]

## Sample config:

Expand Down Expand Up @@ -79,6 +80,19 @@ Then you can build graphs based on this data:
'port': 5433,
}
},
{
'name': 'monitoring_mysql',
'description': 'Check mysql connection',
'module': 'aiohttp_prometheus_monitoring.metrics.mysql.MySQLMetric',
'sleep_time': 60,
'params': {
'database': 'core',
'user': 'core',
'password': 'core',
'host': 'localhost',
'port': 3007,
}
},
]
}

Expand Down

0 comments on commit 83f2fb1

Please sign in to comment.