Commit c953158
Fix CPU metrics mixed for different Azure SQL databases on same server (#680)
GetServerNameForStorage() used only the server hostname to generate
storage keys, so multiple Azure SQL databases on the same logical
server (e.g. myserver.database.windows.net) produced identical
server_ids and their metrics were conflated.
Include DatabaseName in the storage key when set, following the
existing pattern used for ReadOnlyIntent connections.
Fixes #677
Co-authored-by: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com>
Co-authored-by: thithanhtuyennguyen <tuyen.nguyen@wwinc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 119d8d2 commit c953158
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| 685 | + | |
| 686 | + | |
685 | 687 | | |
686 | 688 | | |
687 | 689 | | |
688 | 690 | | |
689 | 691 | | |
690 | | - | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
691 | 697 | | |
692 | 698 | | |
693 | 699 | | |
| |||
0 commit comments