/doctor

Rule-based recommendations about your timeseries database.

Primary LanguagePythonApache License 2.0Apache-2.0

Timescale Database Doctor

Rule-based recommendations about your timeseries database.

Installation

To install this package, first make sure that you have a recent version of setuptools:

pip install --upgrade setuptools

After that, you can use pip to install the package directly from this directory:

pip install .

The tool is installed as timescale-doctor.

Running the tool

Just call it in a similar manner to how psql is called:

timescale-doctor my_database

It understands the usual environment variables PGUSER, PGHOST, PGDATABASE, etc. Note that it do not understand PostgreSQL URLs yet. See Support PostgreSQL URLs for connection.

Writing new rules

Instructions for writing new rules are available in the README in the rules package.

License

Copyright 2023 Timescale, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.