ljacobsson / cw-logs-insights-gpt Goto Github PK
View Code? Open in Web Editor NEWChrome extension that generates CloudWatch Logs Insights queries from ChatGPT prompts
License: MIT License
Chrome extension that generates CloudWatch Logs Insights queries from ChatGPT prompts
License: MIT License
I'm getting a "Uncaught TypeError" when I try to click the "Conert to Query" button.
src/apiKey.js
filenpm install && npm run build
<project-root>/build
as an extenstion in the developer modeConvert to query appear
chrome://extensions
Uncaught TypeError: Cannot read properties of undefined (reading 'sendMessage')
Context
https://eu-central-1.console.aws.amazon.com/cloudwatch/home?region=eu-central-1#logsV2:logs-insights$3FqueryDetail$3D~(end~0~start~-3600~timeType~'RELATIVE~unit~'seconds~editorString~'*22How*20many*20queries*20take*20longer*20than*205*20secodns*3f*22~queryId~'62bc97d3-ffb6-4b38-9604-91327a9cd4e2~source~(~'*2faws*2flambda*2fconfigurator-backend-Lambda-Xw5c55pduoZP))
Stacktrace
contentScript.js:2 (Anonymous Function)
This works. Appreciate the concept.
But the query returned does not seem to be correct.
For e.g. my prompt was
"requests taking more than 100ms"
It returned:
fields @timestamp, @message
| filter @message like /requests taking more than 100ms/
| stats count() by bin(1h)
This may or may not be correct.
Steps: Followed all of the steps to build with my API key. Entered the same text from the example and click Convert to Query.
Results: OpenAI shows the key was used, but the page does not update. Chrome extensions errors show this:
Uncaught (in promise) AxiosError: Request failed with status code 429
Context
background.js
Stack Trace
background.js:0 (anonymous function)
Running: Chrome Version 112.0.5615.137 (Official Build) (arm64)
Axios 429 is a Too Many Requests error. I've checked my OpenAI usage limits and I am not being limited. No usage is shown in the OpenAI usage statistics.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.