Commit b810262
Add mysql.uptime metric (DataDog#24802)
* Add mysql.uptime metric
The Uptime status variable was already returned by the SHOW GLOBAL STATUS
query the check runs, but was never mapped to a metric name and so was
discarded. Map it so users can alert on and correlate server restarts
without resorting to a custom query.
Named mysql.uptime to match both Datadog's convention across database
integrations (postgresql.uptime, mongodb.uptime, proxysql.uptime) and the
OpenTelemetry mysqlreceiver metric of the same name.
Co-authored-by: Cursor <cursoragent@cursor.com>
* Add changelog entry
Co-authored-by: Cursor <cursoragent@cursor.com>
* Warn when an additional_status entry is shadowed by a built-in metric
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent a2ea619 commit b810262
6 files changed
Lines changed: 8 additions & 2 deletions
File tree
- mysql
- changelog.d
- datadog_checks/mysql
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
700 | | - | |
| 700 | + | |
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
801 | | - | |
| 801 | + | |
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
0 commit comments