Skip to content

Commit

Permalink
Added collect engine status innodb
Browse files Browse the repository at this point in the history
  • Loading branch information
kochetovd committed Aug 8, 2024
1 parent 06265a8 commit 47b49d7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
ReleemAgentVersion = "1.18.0.1"
ReleemAgentVersion = "1.18.1"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion current_version_agent
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.18.0.1
1.18.1
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
# install.sh - Version 1.18.0.1
# install.sh - Version 1.18.1
# (C) Releem, Inc 2022
# All rights reserved

# Releem installation script: install and set up the Releem Agent on supported Linux distributions
# using the package manager.

set -e
install_script_version=1.18.0.1
install_script_version=1.18.1
logfile="releem-install.log"

WORKDIR="/opt/releem"
Expand Down
1 change: 1 addition & 0 deletions metrics/Metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type Metrics struct {
Engine map[string]MetricGroupValue
Latency string
Databases []string
InnoDBEngineStatus string
}
Conf struct {
Variables MetricGroupValue
Expand Down
11 changes: 10 additions & 1 deletion metrics/dbMetricsBase.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,16 @@ func (DbMetricsBase *DbMetricsBaseGatherer) GetMetrics(metrics *Metrics) error {
metrics.DB.Metrics.Latency = ""
}
}

//status innodb engine
{
var engine, name, status string
err := config.DB.QueryRow("show engine innodb status").Scan(&engine, &name, &status)
if err != nil {
DbMetricsBase.logger.Error(err)
} else {
metrics.DB.Metrics.InnoDBEngineStatus = status
}
}
DbMetricsBase.logger.Debug("collectMetrics ", metrics.DB.Metrics)
return nil

Expand Down
4 changes: 2 additions & 2 deletions mysqlconfigurer.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# mysqlconfigurer.sh - Version 1.18.0.1
# mysqlconfigurer.sh - Version 1.18.1
# (C) Releem, Inc 2022
# All rights reserved

Expand All @@ -12,7 +12,7 @@ MYSQLTUNER_REPORT=$MYSQLCONFIGURER_PATH"mysqltunerreport.json"
RELEEM_MYSQL_VERSION=$MYSQLCONFIGURER_PATH"mysql_version"
MYSQLCONFIGURER_CONFIGFILE="${MYSQLCONFIGURER_PATH}${MYSQLCONFIGURER_FILE_NAME}"
MYSQL_MEMORY_LIMIT=0
VERSION="1.18.0.1"
VERSION="1.18.1"
RELEEM_INSTALL_PATH=$MYSQLCONFIGURER_PATH"install.sh"
logfile="releem-mysqlconfigurer.log"

Expand Down

0 comments on commit 47b49d7

Please sign in to comment.