diff --git a/.github/workflows/L10n-update.yml b/.github/workflows/L10n-update.yml index 9dce59a..45599e8 100644 --- a/.github/workflows/L10n-update.yml +++ b/.github/workflows/L10n-update.yml @@ -3,7 +3,7 @@ name: L10n Update on: push: branches: - - master + - main jobs: trigger-update: diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index c30f2d2..5057984 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -3,11 +3,11 @@ name: PHP Tests on: push: branches: - - master + - main - release/* pull_request: branches: - - master + - main jobs: lint: diff --git a/README.md b/README.md index 54a1206..d1263e6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Icinga Web Graphite Integration [![PHP Support](https://img.shields.io/badge/php-%3E%3D%207.2-777BB4?logo=PHP)](https://php.net/) -![Build Status](https://github.com/icinga/icingaweb2-module-graphite/workflows/PHP%20Tests/badge.svg?branch=master) +![Build Status](https://github.com/icinga/icingaweb2-module-graphite/workflows/PHP%20Tests/badge.svg?branch=main) [![Github Tag](https://img.shields.io/github/tag/Icinga/icingaweb2-module-graphite.svg)](https://github.com/Icinga/icingaweb2-module-graphite) ![Icinga Logo](https://icinga.com/wp-content/uploads/2014/06/icinga_logo.png) diff --git a/doc/04-Templates.md b/doc/04-Templates.md index 5acbae1..5aa4b06 100644 --- a/doc/04-Templates.md +++ b/doc/04-Templates.md @@ -184,7 +184,7 @@ pl.value = "alias(color($metric$, '#1a7dd7'), 'Packet loss (%)')" ## Default Template Settings Next to maintaining templates for specific commands, you can -specify the default template settings in the [default.ini](https://github.com/Icinga/icingaweb2-module-graphite/blob/master/templates/default.ini) +specify the default template settings in the [default.ini](https://github.com/Icinga/icingaweb2-module-graphite/blob/main/templates/default.ini) configuration file. The following example adjusts the background and foreground colors diff --git a/templates/mysql.ini b/templates/mysql.ini index f39d15a..22d0387 100644 --- a/templates/mysql.ini +++ b/templates/mysql.ini @@ -268,3 +268,20 @@ yUnitSystem = "sec" [mysql-seconds_behind_master.functions] value = "alias(color($metric$, '#1a7dd7'), 'Seconds behind master')" + + +[mysql-seconds_behind_source.graph] +check_command = "mysql" + +[mysql-seconds_behind_source.metrics_filters] +value = "$service_name_template$.perfdata.seconds_behind_source.value" + +[mysql-seconds_behind_source.urlparams] +areaAlpha = "0.5" +areaMode = "all" +lineWidth = "2" +min = "0" +yUnitSystem = "sec" + +[mysql-seconds_behind_source.functions] +value = "alias(color($metric$, '#1a7dd7'), 'Seconds behind source')" diff --git a/templates/mysql_health.ini b/templates/mysql_health.ini index 711338c..4a8a77e 100644 --- a/templates/mysql_health.ini +++ b/templates/mysql_health.ini @@ -280,6 +280,23 @@ yUnitSystem = "sec" value = "alias(color($metric$, '#1a7dd7'), 'Seconds slave is behind master')" +[mysql_health-replica_lag.graph] +check_command = "mysql_health" + +[mysql_health-replica_lag.metrics_filters] +value = "$service_name_template$.perfdata.replica_lag.value" + +[mysql_health-replica_lag.urlparams] +areaAlpha = "0.5" +areaMode = "all" +lineWidth = "2" +min = "0" +yUnitSystem = "sec" + +[mysql_health-replica_lag.functions] +value = "alias(color($metric$, '#1a7dd7'), 'Seconds replica is behind source')" + + [mysql_health-slow_queries.graph] check_command = "mysql_health"