Skip to main content

A modern SRE tool

Project description

Kaptain

A modern SRE tool.

Install


pip install kaption

Support version

python 3.5+

report

report operation to platform, currently it only support slack.

pre-config

we need .git-config to set user/email.

vi ~/.gitconfig

# add line like this

[kaption]
        slack-channel = https://hooks.slack.com/xxx
        slack-private = https://hooks.slack.com/xxx

how to

kap report "hello world" --private   # send to private channel 

kap report "hello world"             # send to public channel 

Fetch GCP Log

Pre-Requirements
  • gcloud cli
export KAPTAIN_FETCH_LOG_PROJECT=YOUR-GCP-PROJECT-ID

# preview  
kap fetch-log gcp abc.log  --save-dir=$HOME/Downloads --display --filter=tradebot-prod --date-filter=2019/05/30 --bucket-name=archive-log

# download
kap fetch-log gcp abc.log  --save-dir=$HOME/Downloads --filter=tradebot-prod --date-filter=2019/05/30 --bucket-name=archive-log

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kaptain-0.1.3.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file kaptain-0.1.3.tar.gz.

File metadata

  • Download URL: kaptain-0.1.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.3

File hashes

Hashes for kaptain-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b22946ff571c67c5016356a19a305d3c77e0e6c7d24af4e0cf37d22856df78f2
MD5 db368e99604ba09a9b2cba4ab93e781e
BLAKE2b-256 ec8d7b3a56f15a5d7cc6401ade30787a64b47a6610a9f5583f67ec52f89d58f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page