Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/whyeasy/atlasdb-performance-advisor

A Go program which queries the AtlasDB API to retrieve and log slow queries.
https://github.com/whyeasy/atlasdb-performance-advisor

Last synced: about 1 month ago
JSON representation

A Go program which queries the AtlasDB API to retrieve and log slow queries.

Awesome Lists containing this project

README

        

![build](https://github.com/Whyeasy/atlasdb-performance-advisor/workflows/build/badge.svg)
![status-badge](https://goreportcard.com/badge/github.com/Whyeasy/atlasdb-performance-advisor)
![Github go.mod Go version](https://img.shields.io/github/go-mod/go-version/Whyeasy/atlasdb-performance-advisor)

# atlasdb-slow-queries

A Go program which queries the AtlasDB API to retrieve and log slow queries and suggested indexes.

## Requirements

Provide the Group ID, which is the Project ID within AtlasDB: `--groupId` or as env variable `GROUP_ID`.

Provide the Public Key of the created API key within AtlasDB: `--publicKey` or as env variable `PUBLIC_KEY`.

Provide the Private Key of the created API key within AtlasDB: `--privateKey` or as env variable `PRIVATE_KEY`.

### Optional

Change log format; `--logFormat ` or as env variable `LOG_FORMAT`. The default value is `"logfmt"`.

Change log level; `--logLevel` or as env variable `LOG_LEVEL`. The default value is `info`.

Change amount of hours in the past you want to retrieve data for. `--since int`. The default value is `24`.