Skip to content

Commit b1e72a9

Browse files
committed
go fmt
Signed-off-by: SuperQ <[email protected]>
1 parent fc264d0 commit b1e72a9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

cmd/postgres_exporter/postgres_exporter.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,15 @@ var builtinMetricMaps = map[string]intermediateMetricMap{
212212
},
213213
"pg_stat_replication": {
214214
map[string]ColumnMapping{
215-
"procpid": {DISCARD, "Process ID of a WAL sender process", nil, semver.MustParseRange("<9.2.0")},
216-
"pid": {DISCARD, "Process ID of a WAL sender process", nil, semver.MustParseRange(">=9.2.0")},
217-
"usesysid": {DISCARD, "OID of the user logged into this WAL sender process", nil, nil},
218-
"usename": {DISCARD, "Name of the user logged into this WAL sender process", nil, nil},
219-
"application_name": {LABEL, "Name of the application that is connected to this WAL sender", nil, nil},
220-
"client_addr": {LABEL, "IP address of the client connected to this WAL sender. If this field is null, it indicates that the client is connected via a Unix socket on the server machine.", nil, nil},
221-
"client_hostname": {DISCARD, "Host name of the connected client, as reported by a reverse DNS lookup of client_addr. This field will only be non-null for IP connections, and only when log_hostname is enabled.", nil, nil},
222-
"client_port": {DISCARD, "TCP port number that the client is using for communication with this WAL sender, or -1 if a Unix socket is used", nil, nil},
223-
"backend_start": {DISCARD, "with time zone Time when this process was started, i.e., when the client connected to this WAL sender", nil, nil},
215+
"procpid": {DISCARD, "Process ID of a WAL sender process", nil, semver.MustParseRange("<9.2.0")},
216+
"pid": {DISCARD, "Process ID of a WAL sender process", nil, semver.MustParseRange(">=9.2.0")},
217+
"usesysid": {DISCARD, "OID of the user logged into this WAL sender process", nil, nil},
218+
"usename": {DISCARD, "Name of the user logged into this WAL sender process", nil, nil},
219+
"application_name": {LABEL, "Name of the application that is connected to this WAL sender", nil, nil},
220+
"client_addr": {LABEL, "IP address of the client connected to this WAL sender. If this field is null, it indicates that the client is connected via a Unix socket on the server machine.", nil, nil},
221+
"client_hostname": {DISCARD, "Host name of the connected client, as reported by a reverse DNS lookup of client_addr. This field will only be non-null for IP connections, and only when log_hostname is enabled.", nil, nil},
222+
"client_port": {DISCARD, "TCP port number that the client is using for communication with this WAL sender, or -1 if a Unix socket is used", nil, nil},
223+
"backend_start": {DISCARD, "with time zone Time when this process was started, i.e., when the client connected to this WAL sender", nil, nil},
224224
"backend_xmin": {DISCARD, "The current backend's xmin horizon.", nil, nil},
225225
"state": {LABEL, "Current WAL sender state", nil, nil},
226226
"sent_location": {DISCARD, "Last transaction log position sent on this connection", nil, semver.MustParseRange("<10.0.0")},

0 commit comments

Comments
 (0)