harsh098 / postgres-codecollection

Codecollection for Making Postgres Troubleshooting possible on Runwhen Platform

Home Page:https://www.runwhen.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Join Discord Join Slack

Open in GitHub Codespaces

Postgres Codecollection

This repo contains codecollections for troubleshooting postgreSQL databases on Kubernetes using Zalando Operator with RunWhen Platform.
The codebundle includes

  • Finding Slow and Long Running Queries
  • SLIs for slow Queries
  • Blocking Query Detection and Remediation (Work in Progress)
  • Blocking Backend detection. (Work in Progress)

Build

Getting Started

Looking to be a contributor for CodeCollections or start your own? We'd love to collaborate! Head on over to our public docs to get started.

File Structure overview of devcontainer:

-/app/
    |- auth/ #store secrets here, it should already be properly gitignored for you
    |- codecollection/
    |   |- codebundles/ # stores codebundles that can be run
    |   |- libraries/ # stores python keyword libraries used by codebundles
    |- dev_facade/ # provides interfaces equivalent to those used on the platform, but just dry runs the keywords to assist with development
    ...

The included script ro wraps the robot RobotFramework binary, and includes some extra functionality to write logs to a consistent location for viewing in a HTTP server at http://localhost:3000/ that is always running as part of the devcontainer.

Quickstart

Navigate to the codebundle directory cd codecollection/codebundles/postgres/

Run the codebundle ro sli.robot

About

Codecollection for Making Postgres Troubleshooting possible on Runwhen Platform

https://www.runwhen.com/

License:Apache License 2.0


Languages

Language:RobotFramework 94.0%Language:Python 3.7%Language:Dockerfile 2.4%