def METHOD_NAME(self):
    g = Gauge('zentral_santa_configurations', 'Zentral Santa Configurations',
              ['mode'], registry=self.registry)
    query = (
        "select client_mode, count(*) "
        "from santa_configuration "
        "group by client_mode"
    )
    cursor = connection.cursor()
    cursor.execute(query)
    for mode, count in cursor.fetchall():
        labels = {}
        if not self._add_mode_to_labels(mode, labels):
            continue
        g.labels(**labels).set(count)