-
Notifications
You must be signed in to change notification settings - Fork 45
/
340-pg_ssl.yml
41 lines (38 loc) · 943 Bytes
/
340-pg_ssl.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
##
# SYNOPSIS
# pg_ssl_*
#
# DESCRIPTION
# PostgreSQL SSL client connection count
#
# OPTIONS
# Tags [cluster]
# TTL 10
# Priority 0
# Timeout 100ms
# Fatal false
# Version 90500 ~ higher
# Source 340-pg_ssl.yml
#
# METRICS
# enabled (GAUGE)
# Number of client connection that use ssl
# disabled (GAUGE)
# Number of client connection that does not use ssl
#
pg_ssl:
name: pg_ssl
desc: PostgreSQL SSL client connection count
query: |
SELECT count(*) FILTER (WHERE ssl) AS enabled, count(*) FILTER ( WHERE NOT ssl) AS disabled FROM pg_stat_ssl;
ttl: 10
min_version: 090500
tags:
- cluster
metrics:
- enabled:
usage: GAUGE
description: Number of client connection that use ssl
- disabled:
usage: GAUGE
description: Number of client connection that does not use ssl