Skip to content

Commit

Permalink
[O11y][MYSQL] Add schemaname field in the performance data stream (#…
Browse files Browse the repository at this point in the history
…10749)

* Add `schemaname` field in the performance data stream

* update changelog.yml
  • Loading branch information
harnish-elastic authored Aug 23, 2024
1 parent 06fde1e commit dd1c562
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions packages/mysql/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 1.25.0
changes:
- description: Add `schemaname` field in the performance data stream.
type: enhancement
link: https://github.com/elastic/integrations/pull/10749
- version: 1.24.0
changes:
- description: Add replica_status data stream.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ processors:
ctx.mysql.performance.events_statements.query = digest.text;
- fingerprint:
fields: ["mysql.performance.events_statements.query"]
fields:
- mysql.performance.events_statements.query
- mysql.performance.events_statements.schemaname
target_field: mysql.performance.events_statements.query_id
ignore_failure: true
ignore_missing: true
Expand Down
4 changes: 4 additions & 0 deletions packages/mysql/data_stream/performance/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
- name: events_statements
type: group
fields:
- name: schemaname
type: keyword
dimension: true
description: Alias for the database name within certain SQL statements.
- name: query_id
type: keyword
# Reason to add as a dimension field: shows results based on queries.
Expand Down
4 changes: 2 additions & 2 deletions packages/mysql/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
format_version: "3.0.2"
name: mysql
title: MySQL
version: "1.24.0"
version: "1.25.0"
description: Collect logs and metrics from MySQL servers with Elastic Agent.
type: integration
categories:
- datastore
- observability
conditions:
kibana:
version: "^8.14.0"
version: "^8.15.0"
elastic:
subscription: basic
screenshots:
Expand Down

0 comments on commit dd1c562

Please sign in to comment.