Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated help messages for ch-monitoring commands #3

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/chtools/monrun_checks/ch_geobase.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@click.command('geobase')
def geobase_command():
"""
Check is ya.geobase present.
Check that embedded geobase is configured.
"""
ch_client = ClickhouseClient()

Expand Down
2 changes: 1 addition & 1 deletion src/chtools/monrun_checks/ch_keeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
)
def keeper_command(retries, timeout, no_verify_ssl_certs) -> Result:
"""
Checks ClickHouse Keeper is alive.
Check ClickHouse Keeper is alive.
"""
keeper_port, use_ssl = ClickhouseKeeperConfig.load().port_pair
if not keeper_port:
Expand Down
3 changes: 3 additions & 0 deletions src/chtools/monrun_checks/ch_log_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def validate_exclude(ctx, param, value):
'-f', '--logfile', 'logfile', default='/var/log/clickhouse-server/clickhouse-server.err.log', help='Log file path.'
)
def log_errors_command(crit, warn, watch_seconds, exclude, logfile):
"""
Check errors in ClickHouse server logs.
"""
datetime_start = datetime.now() - datetime.timedelta(seconds=watch_seconds)
errors = 0

Expand Down
2 changes: 1 addition & 1 deletion src/chtools/monrun_checks/ch_replication_lag.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@click.option('-v', '--verbose', 'verbose', type=int, count=True, default=0, help='Show details about lag.')
def replication_lag_command(xcrit, crit, warn, mwarn, mcrit, verbose):
"""
Check for replication lag between replicas.
Check for replication lag across replicas.
Should be: lag >= lag_with_errors, lag >= max_execution
"""
lag, lag_with_errors, max_execution, max_merges, chart = get_replication_lag()
Expand Down
2 changes: 1 addition & 1 deletion src/chtools/monrun_checks/ch_ro_replica.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@click.command('ro-replica')
def ro_replica_command():
"""
Check for readonly replic tables.
Check for readonly replicated tables.
"""
ch_client = ClickhouseClient()

Expand Down
2 changes: 1 addition & 1 deletion src/chtools/monrun_checks/ch_system_queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@click.option('-f', '--config_file', 'conf', help='Config file with theshholds per each table.')
def system_queues_command(crit, warn, conf):
"""
Perform the check.
Check system queues.
"""
config = {'triggers': {'default': {'crit': crit, 'warn': warn}}}
if conf is not None:
Expand Down
2 changes: 1 addition & 1 deletion src/chtools/monrun_checks/ch_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
)
def tls_command(crit: int, warn: int, ports: Optional[str]) -> Result:
"""
Checks TLS certificate for expiration and that actual cert from fs used.
Check TLS certificate for expiration and that actual cert from fs used.
"""
file_certificate, _ = read_cert_file()

Expand Down
2 changes: 1 addition & 1 deletion src/chtools/monrun_checks/ext_ip_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, fqdn: str, private: bool, strict: bool):
@click.option('--ipv6', 'ipv6', is_flag=True, help='Check AAAA DNS records')
def ext_ip_dns_command(cluster: bool, private: bool, ipv6: bool) -> Result:
"""
Checks that all DNS records consistent in DC.
Check that all DNS records consistent.
"""
err = []
for record in _get_host_dns(cluster, private):
Expand Down
2 changes: 1 addition & 1 deletion src/chtools/monrun_checks/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def status_command(commands):
@click.pass_context
def status_impl(ctx):
"""
Prints status of all checks.
Perform all checks.
"""
checks_status = []
ctx.obj = {'status_mode': True}
Expand Down
2 changes: 1 addition & 1 deletion src/chtools/monrun_checks_keeper/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def status_command(commands):
@click.pass_context
def status_impl(ctx):
"""
Prints status of all checks.
Perform all checks.
"""
checks_status = []
ctx.obj.update({'status_mode': True})
Expand Down