use python3 venv && integration with prometheus
- init venv
python3 -m venv venv
- active venv
source venv/bin/activate
- install deps
pip install -r requirements.txt
or
pip install boto3 -i https://mirrors.aliyun.com/pypi/simple/
- some demo files
demo.json
- upload json to minio
can use minio mc or browser
- do search
python select.py2
- exec python
cmd:
python select.py2
output result
python select.py2
{"dir_name":"important_docs","files":[{"name":"."},{"name":".."},{"name":".aws"},{"name":"downloads"}]}
Stats details bytesScanned:
300
Stats details bytesProcessed:
300