Hotfix : Fix regression to enable database metrics in telegraf only when needed
With micrometer metrics enabled by default for all apps (#481), database metrics related telegraf input plugin was enabled. This introduced a regression, as now for all apps we started running postgres queries. This change fixes the regression.
Going forward,
- For freeapps, we never include any database metrics via telegraf.
- For paidapps, any customers who have set DD_API_KEY or APPMETRICS_TARGET would get the database metrics via telegraf.