[MM-23882] Include database server version in telemetry (#14258)

* Add database server version to telemetry

Also added a new query in the store to retrieve the database version

* Add test for the GetDbVersion function

* More drivers in the tests

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Mario de Frutos Dieguez
2020-04-09 11:08:15 +02:00
коммит произвёл GitHub
родитель f6f025aeaa
Коммит 698b4b6934
8 изменённых файлов: 132 добавлений и 37 удалений

Просмотреть файл

@@ -45,6 +45,7 @@ type SqlStore interface {
GetMaster() *gorp.DbMap
GetSearchReplica() *gorp.DbMap
GetReplica() *gorp.DbMap
GetDbVersion() (string, error)
TotalMasterDbConnections() int
TotalReadDbConnections() int
TotalSearchDbConnections() int