Projet

Général

Profil

Révision 7063330e

ID7063330e031922c63012990543e917a5d85cd25d
Parent 73f885e3
Enfant 86bee016

Ajouté par Lars Kruse il y a presque 6 ans

Fix python style issues reported by flake8

Additionally some python2-only "print" statements are now compatible
with python3.

Voir les différences:

plugins/percona/percona_
53 53
program_name = os.path.basename(__file__)
54 54

  
55 55
variables = {
56
  'percona_queues': {
57
    'label': 'Queue sizes',
58
    'vlabel': 'size',
59
    'fields': ['wsrep_local_recv_queue', 'wsrep_local_send_queue']
60
  },
61
  'percona_flow': {
62
    'label': 'Flow control',
63
    'vlabel': '',
64
    'fields': ['wsrep_flow_control_sent', 'wsrep_flow_control_recv']
65
  },
66
  'percona_transactions': {
67
    'label': 'Transactions in and out',
68
    'vlabel': 'transactions',
69
    'fields': ['wsrep_replicated', 'wsrep_received']
70
  },
71
  'percona_transactions_bytes': {
72
    'label': 'Transactions in and out in bytes',
73
    'vlabel': 'bytes',
74
    'fields': ['wsrep_replicated_bytes', 'wsrep_received_bytes']
75
  },
76
  'percona_replication': {
77
    'label': 'Replication conflicts',
78
    'vlabel': 'conflicts',
79
    'fields': ['wsrep_local_cert_failures', 'wsrep_local_bf_aborts'],
80
  }
56
    'percona_queues': {
57
        'label': 'Queue sizes',
58
        'vlabel': 'size',
59
        'fields': ['wsrep_local_recv_queue', 'wsrep_local_send_queue']
60
    },
61
    'percona_flow': {
62
        'label': 'Flow control',
63
        'vlabel': '',
64
        'fields': ['wsrep_flow_control_sent', 'wsrep_flow_control_recv']
65
    },
66
    'percona_transactions': {
67
        'label': 'Transactions in and out',
68
        'vlabel': 'transactions',
69
        'fields': ['wsrep_replicated', 'wsrep_received']
70
    },
71
    'percona_transactions_bytes': {
72
        'label': 'Transactions in and out in bytes',
73
        'vlabel': 'bytes',
74
        'fields': ['wsrep_replicated_bytes', 'wsrep_received_bytes']
75
    },
76
    'percona_replication': {
77
        'label': 'Replication conflicts',
78
        'vlabel': 'conflicts',
79
        'fields': ['wsrep_local_cert_failures', 'wsrep_local_bf_aborts'],
80
    }
81 81
}
82 82

  
83 83
# Parse environment variables

Formats disponibles : Unified diff