Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/whyeasy/atlasdb-performance-advisor
- Owner: Whyeasy
- License: apache-2.0
- Created: 2021-01-06T14:47:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-26T13:35:39.000Z (over 3 years ago)
- Last Synced: 2024-01-07T04:14:55.810Z (about 1 year ago)
- Language: Go
- Size: 19.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.