Agent version
7.79.0
Bug Report
MySQL related metrics does no longer carry tags specified from "tags" in datadog config. The content of host tag also changed.
This issue started on 7.79.0. Datadog-agent 7.78.4 is unaffected.
Reproduction Steps
- Create a Fedora 43 x86_64 cloud VM on AWS (AMI ID ami-00e68de54950d69a2, ap-southeast-2 region)
- Install MySQL server
sudo dnf install mysql-server
- Start MySQL server
sudo systemctl start mysqld
- Set MySQL server root password
mysqladmin -u root -p password
- Install datadog-agent 7.79.0
wget https://s3.amazonaws.com/yum.datadoghq.com/stable/7/x86_64/datadog-agent-7.79.0-1.x86_64.rpm and sudo dnf install datadog-agent-7.79.0-1.x86_64.rpm
- Configure
/etc/datadog-agent/datadog.yaml with content below
{
"api_key": "XXXXXXXXXXXXXXXXXXXXXX",
"apm_config": {
"enabled": false
},
"bind_host": "localhost",
"disable_file_logging": true,
"enable_metadata_collection": true,
"hostname": "mysql-hostname-1.test",
"log_level": "warn",
"site": "datadoghq.com",
"tags": [
"aiven-cloud-az:australia-southeast1-b",
"aiven-cloud:google-australia-southeast1",
"aiven-node-state:RUNNING",
"aiven-primary-node:true",
"aiven-project:test",
"aiven-service-type:mysql",
"aiven-service:orange-test-service"
]
}
- Configure
/etc/datadog-agent/conf.d/mysql.yaml with content below
{
"init_config": {},
"instances": [
{
"server": "::1",
"ssl": {
"require": true
},
"username": "root",
"password": "YOUR_MYSQL_ROOT_PASSWORD"
}
]
}
- Restart datadog-agent
sudo systemctl restart datadog-agent
- Go to "Quick Graph" page at Datadog HQ, to show metrics
mysql.net.connections from (everywhere) avg by host aiven-service
Expected result (also the behaviour of DD 7.78.4)
Metrics displayed with tag host:mysql-hostname-1.test and aiven-service:orange-test-service
Actual result (behaviour of DD 7.79.0)
Metrics displayed with tag host:::1 and aiven-service:N/A
Additional information:
- "system" metrics (e.g.
system.load.5) are unaffected (still carry expected tags)
- "postgresql" metrics (e.g.
postgresql.connections) are unaffected (still carry expected tags)
Operating System
Fedora 43 x86_64 on AWS, AMI ID ami-00e68de54950d69a2 (AWS ap-southeast-2 region)
Other environment details
No response
Agent version
7.79.0
Bug Report
MySQL related metrics does no longer carry tags specified from "tags" in datadog config. The content of
hosttag also changed.This issue started on 7.79.0. Datadog-agent 7.78.4 is unaffected.
Reproduction Steps
sudo dnf install mysql-serversudo systemctl start mysqldmysqladmin -u root -p passwordwget https://s3.amazonaws.com/yum.datadoghq.com/stable/7/x86_64/datadog-agent-7.79.0-1.x86_64.rpmandsudo dnf install datadog-agent-7.79.0-1.x86_64.rpm/etc/datadog-agent/datadog.yamlwith content below/etc/datadog-agent/conf.d/mysql.yamlwith content belowsudo systemctl restart datadog-agentmysql.net.connectionsfrom(everywhere)avg byhostaiven-serviceExpected result (also the behaviour of DD 7.78.4)
Metrics displayed with tag
host:mysql-hostname-1.testandaiven-service:orange-test-serviceActual result (behaviour of DD 7.79.0)
Metrics displayed with tag
host:::1andaiven-service:N/AAdditional information:
system.load.5) are unaffected (still carry expected tags)postgresql.connections) are unaffected (still carry expected tags)Operating System
Fedora 43 x86_64 on AWS, AMI ID ami-00e68de54950d69a2 (AWS ap-southeast-2 region)
Other environment details
No response