Skip to content

add custom query support#228

Open
RamanaReddy8801 wants to merge 1 commit into
newrelic:masterfrom
RamanaReddy8801:feature/mysql-custom-query-support
Open

add custom query support#228
RamanaReddy8801 wants to merge 1 commit into
newrelic:masterfrom
RamanaReddy8801:feature/mysql-custom-query-support

Conversation

@RamanaReddy8801

@RamanaReddy8801 RamanaReddy8801 commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Summary
Adds custom SQL query support to the nri-mysql integration, allowing users to collect application-specific metrics from their MySQL and MariaDB databases without modifying the integration source code

What's Changed

  • Single custom query via -custom_metrics_query CLI flag — run a single SQL query inline
  • Multi-query YAML config via -custom_metrics_config CLI flag — specify a YAML file with multiple named queries
  • Automatic metric type detection — numeric columns (int/float) become GAUGE metrics, string columns become ATTRIBUTE metrics
  • Graceful failure handling — individual query failures log a warning but do not interrupt standard metrics collection
image

@RamanaReddy8801 RamanaReddy8801 requested a review from a team as a code owner June 15, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant