mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fix python style issues reported by flake8
Additionally some python2-only "print" statements are now compatible with python3.
This commit is contained in:
parent
73f885e382
commit
7063330e03
17 changed files with 102 additions and 103 deletions
|
@ -53,31 +53,31 @@ filterwarnings('ignore', category=MySQLdb.Warning)
|
|||
program_name = os.path.basename(__file__)
|
||||
|
||||
variables = {
|
||||
'percona_queues': {
|
||||
'label': 'Queue sizes',
|
||||
'vlabel': 'size',
|
||||
'fields': ['wsrep_local_recv_queue', 'wsrep_local_send_queue']
|
||||
},
|
||||
'percona_flow': {
|
||||
'label': 'Flow control',
|
||||
'vlabel': '',
|
||||
'fields': ['wsrep_flow_control_sent', 'wsrep_flow_control_recv']
|
||||
},
|
||||
'percona_transactions': {
|
||||
'label': 'Transactions in and out',
|
||||
'vlabel': 'transactions',
|
||||
'fields': ['wsrep_replicated', 'wsrep_received']
|
||||
},
|
||||
'percona_transactions_bytes': {
|
||||
'label': 'Transactions in and out in bytes',
|
||||
'vlabel': 'bytes',
|
||||
'fields': ['wsrep_replicated_bytes', 'wsrep_received_bytes']
|
||||
},
|
||||
'percona_replication': {
|
||||
'label': 'Replication conflicts',
|
||||
'vlabel': 'conflicts',
|
||||
'fields': ['wsrep_local_cert_failures', 'wsrep_local_bf_aborts'],
|
||||
}
|
||||
'percona_queues': {
|
||||
'label': 'Queue sizes',
|
||||
'vlabel': 'size',
|
||||
'fields': ['wsrep_local_recv_queue', 'wsrep_local_send_queue']
|
||||
},
|
||||
'percona_flow': {
|
||||
'label': 'Flow control',
|
||||
'vlabel': '',
|
||||
'fields': ['wsrep_flow_control_sent', 'wsrep_flow_control_recv']
|
||||
},
|
||||
'percona_transactions': {
|
||||
'label': 'Transactions in and out',
|
||||
'vlabel': 'transactions',
|
||||
'fields': ['wsrep_replicated', 'wsrep_received']
|
||||
},
|
||||
'percona_transactions_bytes': {
|
||||
'label': 'Transactions in and out in bytes',
|
||||
'vlabel': 'bytes',
|
||||
'fields': ['wsrep_replicated_bytes', 'wsrep_received_bytes']
|
||||
},
|
||||
'percona_replication': {
|
||||
'label': 'Replication conflicts',
|
||||
'vlabel': 'conflicts',
|
||||
'fields': ['wsrep_local_cert_failures', 'wsrep_local_bf_aborts'],
|
||||
}
|
||||
}
|
||||
|
||||
# Parse environment variables
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue