Skip to content

Commit 9053fe0

Browse files
authored
Merge pull request #225 from mkayontour/master
changed function to derivative on mysql counter values to get a real graph
2 parents 387bda5 + 97ce923 commit 9053fe0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/mysql.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ min = "0"
1212
yUnitSystem = "none"
1313

1414
[mysql-Connections.functions]
15-
value = "alias(color($metric$, '#1a7dd7'), 'Connections')"
15+
value = "alias(color(nonNegativeDerivative($metric$), '#1a7dd7'), 'Connections')"
1616

1717

1818
[mysql-Open_files.graph]
@@ -131,7 +131,7 @@ min = "0"
131131
yUnitSystem = "none"
132132

133133
[mysql-Qcache_not_cached.functions]
134-
value = "alias(color($metric$, '#1a7dd7'), 'Not cached queries')"
134+
value = "alias(color(nonNegativeDerivative($metric$), '#1a7dd7'), 'Not cached queries')"
135135

136136

137137
[mysql-Qcache_queries_in_cache.graph]
@@ -165,7 +165,7 @@ min = "0"
165165
yUnitSystem = "none"
166166

167167
[mysql-Queries.functions]
168-
value = "alias(color($metric$, '#1a7dd7'), 'Queries')"
168+
value = "alias(color(nonNegativeDerivative($metric$), '#1a7dd7'), 'Queries')"
169169

170170

171171
[mysql-Questions.graph]
@@ -182,7 +182,7 @@ min = "0"
182182
yUnitSystem = "none"
183183

184184
[mysql-Questions.functions]
185-
value = "alias(color($metric$, '#1a7dd7'), 'Questions')"
185+
value = "alias(color(nonNegativeDerivative($metric$), '#1a7dd7'), 'Questions')"
186186

187187

188188
[mysql-Table_locks_waited.graph]

0 commit comments

Comments
 (0)