<?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: DB Query Extension in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/188771#M2257</link>
    <description>&lt;P&gt;How are database credentials stored and maintained with this plugin?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2022 17:10:35 GMT</pubDate>
    <dc:creator>GaryB</dc:creator>
    <dc:date>2022-06-20T17:10:35Z</dc:date>
    <item>
      <title>Database Query Extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/173221#M1722</link>
      <description>&lt;P&gt;Guys, please, I need some help on an extension. I need to create a plugin that executes a query against a MySQL database. Should I create an ActiveGate Extension or Oneagent extension? Does anyone have an example or any documentation that shows a model?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 09:23:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/173221#M1722</guid>
      <dc:creator>RodrigoBiaggio</dc:creator>
      <dc:date>2025-06-05T09:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: DB Query Extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/173224#M1723</link>
      <description>&lt;P&gt;The answer is - it depends on the requirements. If it's for a single purpose, I'd consider writing a simple script that will execute queries using MySQL command line client and push the metrics using metric ingestion or events using API. This is much simpler than the writing extension.&lt;BR /&gt;&lt;BR /&gt;If you still need to create an extension, keep in mind:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OneAgent extensions can only push data to process groups residing on the same host where they run. (so you must have Oneagent on the DB host).&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;ActiveGate extension creates new entities (custom devices). You can somehow also push data to existing entities based on metadata.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For samples see &lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/extensions/" target="_self"&gt;here in the docs&lt;/A&gt;&amp;nbsp;and for inspiration, you can look into the code of the MySQL extension that is shipped with the OneAgent itself.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 05:13:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/173224#M1723</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2021-10-01T05:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: DB Query Extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/173283#M1724</link>
      <description>&lt;P&gt;Julius, sorry, but just a question. To run the first option you mentioned, I would need the agent installed on the database servers, right? My question is how I would schedule this script execution and sending the metrics, which makes me wonder.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 12:36:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/173283#M1724</guid>
      <dc:creator>RodrigoBiaggio</dc:creator>
      <dc:date>2021-10-01T12:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: DB Query Extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/173293#M1725</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/44799"&gt;@RodrigoBiaggio&lt;/a&gt;&amp;nbsp; you have actually two options here for sending.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You have OneAgent on the host from where you will send the metrics -&amp;gt; send them using &lt;A href="https://www.dynatrace.com/support/help/shortlink/metric-ingestion#anchor_local" target="_self"&gt;local ingestion interface&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;You don't have OneAgent on the host -&amp;gt; send them &lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/#anchor_api" target="_self"&gt;using API&lt;/A&gt;&amp;nbsp;You will need to have an API token created in this case and typically you will want to set the dt.entity in the output.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Depending on your DB you can execute it remotely.&lt;BR /&gt;Regarding scheduling - use cron or systemd on Linux for example, Windows scheduler on windows. It's really up to you. You can also run a daemon in and process it in a loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 13:24:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/173293#M1725</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2021-10-01T13:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: DB Query Extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/188210#M2248</link>
      <description>&lt;P&gt;FYI: There is an officially supported plugin providing that functionality: &lt;A href="https://www.dynatrace.com/hub/detail/custom-database-queries/" target="_self"&gt;Custom Database Queries&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 06:07:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/188210#M2248</guid>
      <dc:creator>Enrico_F</dc:creator>
      <dc:date>2022-06-10T06:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: DB Query Extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/188771#M2257</link>
      <description>&lt;P&gt;How are database credentials stored and maintained with this plugin?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 17:10:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/188771#M2257</guid>
      <dc:creator>GaryB</dc:creator>
      <dc:date>2022-06-20T17:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: DB Query Extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/188842#M2258</link>
      <description>&lt;P&gt;As with any custom extension that implements the Extensions SDK the instance config (including DB credentials in this case) can be managed either via the UI (via "endpoint config" in the custom extension settings) or programmatically via the config API (via GET/PUT/DELETE /api/config/v1/extensions/{id}/instances/{configurationId}).&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 18:02:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/188842#M2258</guid>
      <dc:creator>Enrico_F</dc:creator>
      <dc:date>2022-06-21T18:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: DB Query Extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/188844#M2259</link>
      <description>&lt;P&gt;They are stored encrypted in the Dynatrace database. It is then transferred in a secure way to the ActiveGate and never leave the ActiveGate’s memory.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 18:19:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Database-Query-Extension/m-p/188844#M2259</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2022-06-21T18:19:01Z</dc:date>
    </item>
  </channel>
</rss>

