Skip to content

Instantly share code, notes, and snippets.

View sgrinko's full-sized avatar
🇷🇺

sergey grinko sgrinko

🇷🇺
  • Москва
View GitHub Profile
{"version":1,"resource":"file:///d%3A/Git_DBA_Postgres/pg_ansible/postgresql_cluster_HA/vars/main_fedrps_dev.yml","entries":[{"id":"RSBg.yml","timestamp":1660286214123}]}
# -*- coding: utf-8 -*-
from mamonsu.lib.plugin import Plugin
from mamonsu.plugins.pgsql.pool import Pooler
# Count all queries running more then 5 minutes
class LongQueriesCount(Plugin):
# execute method run() every 60s
@sgrinko
sgrinko / SparkmesActivity.py
Last active August 18, 2016 14:34
plugins
# -*- coding: utf-8 -*-
from mamonsu.lib.plugin import Plugin
from mamonsu.plugins.pgsql.pool import Pooler
# Считаем нагрузку по количеству выполняемых запросов в БД
class SparkmesActivity(Plugin):
# execute method run() every 60s
Interval = 60