46 lines
2.0 KiB
Markdown
46 lines
2.0 KiB
Markdown
PostgreSQL DataDog monitors
|
|
======================
|
|
|
|
How to use this module
|
|
----------------------
|
|
|
|
```
|
|
module "datadog-monitors-postgresql" {
|
|
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//databases/postgresql?ref={revision}"
|
|
|
|
environment = "${var.environment}"
|
|
message = "${module.datadog-message-alerting.alerting-message}"
|
|
}
|
|
|
|
```
|
|
Purpose
|
|
-------
|
|
Creates DataDog monitors with the following checks :
|
|
|
|
* PostgreSQL not enough available connections
|
|
* PostgreSQL too many locks
|
|
|
|
Inputs
|
|
------
|
|
|
|
| Name | Description | Type | Default | Required |
|
|
|------|-------------|:----:|:-----:|:-----:|
|
|
| delay | Delay in seconds for the metric evaluation | string | `15` | no |
|
|
| environment | Environment | string | - | yes |
|
|
| filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
|
|
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
|
|
| postgresql_connection_threshold_critical | Maximum critical acceptable percent of connections | string | `80` | no |
|
|
| postgresql_connection_threshold_warning | Maximum warning acceptable percent of connections | string | `70` | no |
|
|
| postgresql_connection_silenced | Groups to mute PostgreSQL connection monitor | map | `<map>` | no |
|
|
| postgresql_connection_message | Custom message for PostgreSQL connection monitor | string | `` | no |
|
|
| postgresql_thread_threshold_critical | Maximum critical acceptable number of threads | string | `500` | no |
|
|
| postgresql_thread_threshold_warning | Maximum warning acceptable number of threads | string | `400` | no |
|
|
| postgresql_thread_silenced | Groups to mute PostgreSQL threads monitor | map | `<map>` | no |
|
|
| postgresql_thread_message | Custom message for PostgreSQL thread monitor | string | `` | no |
|
|
| message | Message sent when a monitor is triggered | string | - | yes |
|
|
|
|
Related documentation
|
|
---------------------
|
|
|
|
DataDog documentation: [https://docs.datadoghq.com/integrations/postgres/](https://docs.datadoghq.com/integrations/postgres/)
|