cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom Database extension - SQL Server Data source

tvannamuthu
Visitor

Trying to migrate queries from Custom DB queries to Custom Database Extension. Created an extension for a query.

During execution, the extension provides the following warning - Connection exists but no metrics have been produced for endpoints: But I know data is available at the endpoint as the same query when run separately provides the desired output. What might be causing this error? Appreciate any insights.

 

 

2 REPLIES 2

Miguel_RinconG
Dynatrace Advisor
Dynatrace Advisor

Hi @tvannamuthu ,

Please shared your extension code. This is a query example:

  - group: User
    featureSet: User
    interval:
      minutes: 5
    query: >
      SELECT count(CustomerID) as UserCount,
      Region
      FROM Customers    
      where Region is not Null
      Group by Region
    dimensions:
      - key: custom.customquery.region
        value: col:Region
    metrics:
      - key: custom.customquery.sql.user
        value: col:UserCount

 

Hello Miguel_RinconG,

 

I was able to fix the issue by adding the database name in the monitoring configuration. It was mentioned as optional so did not add that initially but after adding the Database name extension started to fetch metrics.

 

Thanks for your reply.

Featured Posts