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: 3 months 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-26T13:35:39.000Z (about 4 years ago)
- Last Synced: 2025-02-03T23:58:36.549Z (5 months 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


# 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`.