Include the port number in PostgreSQL instance names

task brazil Updated Sep 10, 2026 1 min read enable-postgresql-port-in-name.md
Raw file servicenow.com

You can make multiple PostgreSQL instances on the same host distinguishable by port number by creating the mid.discovery.postgresql.include_port_in_name MID Server property. This property is supported for UNIX hosts only.

Before you begin

Verify that you have at least version 1.35.1 of Discovery and Service Mapping Patterns.

Role required: mid_server, agent_admin, or agent_security_admin

About this task

By default, Discovery assigns every PostgreSQL instance the display name instance@hostname, regardless of port, making multiple instances on the same host indistinguishable in list views. The mid.discovery.postgresql.include_port_in_name MID Server property controls this behavior. When created and set to true, Discovery uses the format instance-port-tcp_port@hostname instead (for example, postgres-port-5432@host). Existing CI records aren't affected.

Procedure

  1. Navigate to All > MID Server > Properties.

  2. Select New.

  3. On the form, fill in the fields.

    Field Description
    Name Enter mid.discovery.postgresql.include_port_in_name.
    Value Enter true.
    MID server MID Servers to use for the property. Leave this field empty to apply the property to all MID Servers.
  4. Select Submit.

What to do next

Run Discovery again to apply the change.

Parent Topic:PostgreSQL discovery

Related topics

PostgreSQL discovery

Keywords PostgreSQL discoveryPostgreSQL instance namehorizontal discoverycmdb\_ci\_db\_postgresql\_instanceMID Server property
Search documentation
Search document titles and file paths on the brazil branch