<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Entity Selector with SQL Server extension 2.3.0 in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289297#M6829</link>
    <description>&lt;P&gt;Hi Damian,&lt;/P&gt;&lt;P&gt;We used version 2.10.4, so we have a newer version than 2.3. Could be that indeed a newer version solves the problem. So there is no relations in the payload when you use the monitored entities API with the custom device ID?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nils_stellhorn_0-1762779463079.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30867iBA03E98B425C1E78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nils_stellhorn_0-1762779463079.png" alt="nils_stellhorn_0-1762779463079.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Nov 2025 12:57:56 GMT</pubDate>
    <dc:creator>nils_stellhorn</dc:creator>
    <dc:date>2025-11-10T12:57:56Z</dc:date>
    <item>
      <title>Entity Selector with SQL Server extension 2.3.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/248346#M4613</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;We have auto tags for "sql:sql_server_availability_replica" for our SQL Servers, but since the extension upgraded to 2.3.0, it doesn't work anymore. I know in the patch notes it says the relation changed for the entity selector, so I updated our query, but it still doesn't work.&lt;/P&gt;
&lt;P&gt;Here's the old query &lt;STRONG&gt;before&lt;/STRONG&gt; v2.3.0:&lt;BR /&gt;&lt;STRONG&gt;type("sql:sql_server_availability_replica"),toRelationships.runsOn(type("sql:sql_server_availability_database"),fromRelationships.isInstanceOf(type("sql:sql_server_database"),fromRelationships.isChildOf(type("sql:sql_server_instance"),fromRelationships.runsOn(type("sql:sql_server_host"),fromRelationships.isSameAs(type("HOST"),fromRelationships.isInstanceOf(type("HOST_GROUP"),detectedName("xxxxxxxxxx")))))))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the updated query &lt;STRONG&gt;after&lt;/STRONG&gt; v2.3.0:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;type("sql:sql_server_availability_replica"),fromRelationships.runsOn(type("sql:sql_server_instance"),fromRelationships.runsOn(type("sql:sql_server_host"),fromRelationships.isSameAs(type("HOST"),fromRelationships.isInstanceOf(type("HOST_GROUP"),detectedName("xxxxxxxxxx")))))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated, thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 06:41:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/248346#M4613</guid>
      <dc:creator>TimeZero</dc:creator>
      <dc:date>2024-06-17T06:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Selector with SQL Server extension 2.3.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/248573#M4629</link>
      <description>&lt;P&gt;If we the expression and compare it with relationship definitions from `extension.yaml` downloadable from the Hub we can verify it step by step:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Get all Availability Replica entities...
type("sql:sql_server_availability_replica"),
# ...which have a toType "RUNS_ON" relationship to Instance entities.
fromRelationships.runsOn(
  # Filter down to only those Instances...
  type("sql:sql_server_instance"),
  # ...that have a toType "RUNS_ON" relationship to SQL Host entitites.
  fromRelationships.runsOn(
    # Filter down to only those SQL Hosts...
    type("sql:sql_server_host"),
    # ...that have a toType "SAME_AS" relationship to actual HOSTs.
    fromRelationships.isSameAs(
      # And finally, only consider HOSTs that are part of the HOST_GROUP...
      type("HOST"),
      fromRelationships.isInstanceOf(
        type("HOST_GROUP"),
        # ...with a specific name.
        detectedName("xxxxxxxxxx")
      )
    )
  )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relationship between Availability Replica to Instance:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;typeOfRelation: RUNS_ON
fromType: sql:sql_server_availability_replica
toType: sql:sql_server_instance
enabled: true
sources:
  - sourceType: Metrics
    condition: $prefix(sql-server)&lt;/LI-CODE&gt;&lt;P&gt;Relationship between Instance and SQL Host:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;typeOfRelation: RUNS_ON
fromType: sql:sql_server_instance
toType: sql:sql_server_host
enabled: true
sources:
  - sourceType: Metrics
    condition: $prefix(sql-server)&lt;/LI-CODE&gt;&lt;P&gt;Relationship between SQL Host and HOST:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;typeOfRelation: SAME_AS
fromType: sql:sql_server_host
toType: host
enabled: true
sources:
  - sourceType: Entities
    mappingRules:
      - sourceProperty: dt.ip_addresses
        sourceTransformation: To lower case
        destinationProperty: ipAddress
        destinationTransformation: To lower case&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the above, the expression of entity selector is correct! The only place I can see it breaking down is in the relationship between the SQL Host and HOST, where it compares the detected IP Addresses of both.&lt;/P&gt;&lt;P&gt;The IP Address of the SQL Server Instance we connect to must match one of the IP Addresses detected on the HOST by OneAgent. But this somehow worked in previous version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If nothing, I recommend opening a support ticket.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 14:18:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/248573#M4629</guid>
      <dc:creator>vagiz_duseev</dc:creator>
      <dc:date>2024-06-18T14:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Selector with SQL Server extension 2.3.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/288222#M6772</link>
      <description>&lt;P&gt;I also used that pattern, but based on metadata. Also, in the answer from vagiz_duseev, the availability databases are missing. So here are all my tagging rules for SQL:&lt;/P&gt;&lt;P&gt;SQL host:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;type("sql:sql_server_host"),fromRelationships.isSameAs(type("HOST"),tag([Environment]Application:NAME))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL instance:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;type("sql:sql_server_instance"),fromRelationships.runsOn(type("sql:sql_server_host"),fromRelationships.isSameAs(type("HOST"),tag([Environment]&lt;STRONG&gt;Application:NAME&lt;/STRONG&gt;)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL server database:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;type(sql:sql_server_database),fromRelationships.isChildOf(type(sql:sql_server_instance),fromRelationships.runsOn(type("sql:sql_server_host"),fromRelationships.isSameAs(type(HOST),tag([Environment]Application:NAME))))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL server availability replica:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;type("sql:sql_server_availability_replica"),fromRelationships.isSameAs(type(sql:sql_server_instance),fromRelationships.runsOn(type("sql:sql_server_host"),fromRelationships.isSameAs(type("HOST"),tag([Environment]Application:NAME))))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL server availability group:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;type(sql:sql_server_availability_group),toRelationships.isInstanceOf(type(sql:sql_server_availability_replica),fromRelationships.isSameAs(type(sql:sql_server_instance),fromRelationships.runsOn(type("sql:sql_server_host"),fromRelationships.isSameAs(type("HOST"),tag([Environment]Application:NAME)))))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL server availability database:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;type(sql:sql_server_availability_database),fromRelationships.runsOn(type(sql:sql_server_availability_replica),,fromRelationships.isSameAs(type(sql:sql_server_instance),fromRelationships.runsOn(type("sql:sql_server_host"),fromRelationships.isSameAs(type("HOST"),tag([Environment]Application:NAME)))))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 06:26:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/288222#M6772</guid>
      <dc:creator>nils_stellhorn</dc:creator>
      <dc:date>2025-10-21T06:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Selector with SQL Server extension 2.3.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289018#M6807</link>
      <description>&lt;P&gt;I've tried your tagging rules and the ones related with&amp;nbsp;&lt;SPAN&gt;SQL host,&amp;nbsp;SQL instance and&amp;nbsp;SQL server database worked, but the ones related with&amp;nbsp;SQL server availability replica,&amp;nbsp;SQL server availability group and&amp;nbsp;SQL server availability database didn't return any data.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 18:39:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289018#M6807</guid>
      <dc:creator>Damian_G</dc:creator>
      <dc:date>2025-11-03T18:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Selector with SQL Server extension 2.3.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289032#M6808</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Topology can be different depending of SQL extension version. Maybe it was updated in a release. I would recommend checking topology &lt;SPAN&gt;relationships&amp;nbsp;&lt;/SPAN&gt;in your environment:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonPineiro_0-1762242313580.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30810i9B8A295AD6379E47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AntonPineiro_0-1762242313580.png" alt="AntonPineiro_0-1762242313580.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 07:45:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289032#M6808</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-11-04T07:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Selector with SQL Server extension 2.3.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289036#M6810</link>
      <description>&lt;P&gt;I've reviewed the settings and topology of my SQL Extension:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Damian_G_0-1762244319724.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30811i0DB5905C76D283D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Damian_G_0-1762244319724.png" alt="Damian_G_0-1762244319724.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;type("sql:sql_server_availability_replica"),fromRelationships.isSameAs(type(sql:sql_server_instance),fromRelationships.runsOn(type("sql:sql_server_host"),fromRelationships.isSameAs(type("HOST"),tag([Environment]Application:NAME))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;should work, but I don't get any entity.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 08:32:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289036#M6810</guid>
      <dc:creator>Damian_G</dc:creator>
      <dc:date>2025-11-04T08:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Selector with SQL Server extension 2.3.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289097#M6816</link>
      <description>&lt;P&gt;Hi Damian,&lt;/P&gt;&lt;P&gt;I just checked it and we do indeed get the proper data from the relationship-based entity selector. I would recommend to check the relationships for your replicas via the API. You can open up the replica you're looking at, copy the custom_device ID and use it in the monitored entities API with the GET /entities/{entityId} API to see the relationships that are present in your environment.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 12:31:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289097#M6816</guid>
      <dc:creator>nils_stellhorn</dc:creator>
      <dc:date>2025-11-05T12:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Selector with SQL Server extension 2.3.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289102#M6817</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would recommend create a metric selector per SQL entity:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding a tag from host to sql_server_host (is_same_as).&lt;/LI&gt;&lt;LI&gt;Adding a tag from sql_server_host to sql_server_instance (runs_on).&lt;/LI&gt;&lt;LI&gt;Adding a tag from sql_server_instance to sql_server_database (is_child_of).&lt;/LI&gt;&lt;LI&gt;Adding a tag from&amp;nbsp;sql_server_database to sql_server_availability_database (is_instante_of).&lt;/LI&gt;&lt;LI&gt;Adding a tag from sql_server_availability_database to&amp;nbsp;sql_server_availability_replica (runs_on).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Issue is you cannot use placeholder, it means, you need to create a custom metric selector adding tag value.&lt;/P&gt;&lt;P&gt;&lt;A title="This product idea" href="https://community.dynatrace.com/t5/Product-ideas/Extension-entities-tagging/idc-p/244590" target="_blank" rel="noopener"&gt;This product idea&lt;/A&gt; would be helpful to avoid creating rules per tag.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 13:35:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289102#M6817</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-11-05T13:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Selector with SQL Server extension 2.3.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289293#M6828</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maybe this is solved in newer versions, or maybe I'm wrong, but I couldn't get relationships (getting information from API, also) between&amp;nbsp;&lt;EM&gt;sql_server_availability_database&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;sql_server_instance&lt;/EM&gt; and, therefore, no option with&amp;nbsp;&lt;EM&gt;sql_server_availability_replica&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;sql_server_availability_group&lt;/EM&gt;. I had to tag the entity using IPs:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;type("sql:sql_server_availability_database"),device("172.20.X.X")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 12:10:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289293#M6828</guid>
      <dc:creator>Damian_G</dc:creator>
      <dc:date>2025-11-10T12:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Selector with SQL Server extension 2.3.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289297#M6829</link>
      <description>&lt;P&gt;Hi Damian,&lt;/P&gt;&lt;P&gt;We used version 2.10.4, so we have a newer version than 2.3. Could be that indeed a newer version solves the problem. So there is no relations in the payload when you use the monitored entities API with the custom device ID?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nils_stellhorn_0-1762779463079.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30867iBA03E98B425C1E78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nils_stellhorn_0-1762779463079.png" alt="nils_stellhorn_0-1762779463079.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 12:57:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Entity-Selector-with-SQL-Server-extension-2-3-0/m-p/289297#M6829</guid>
      <dc:creator>nils_stellhorn</dc:creator>
      <dc:date>2025-11-10T12:57:56Z</dc:date>
    </item>
  </channel>
</rss>

