rafalwilinski / cloudwatch-public-metrics Goto Github PK
View Code? Open in Web Editor NEWExpose AWS Cloudwatch Metrics as a public HTML page using AWS Lambda and server-side rendering
Home Page: https://rwilinski.me
Expose AWS Cloudwatch Metrics as a public HTML page using AWS Lambda and server-side rendering
Home Page: https://rwilinski.me
Right now whole page is 100% static and does not allow any interactions.
Question: Do you believe that adding interactions to chart would be beneficial?
https://monosnap.com/file/sMWnbYY8aSREVoaRXVoGAHjiMdDznK
Due to current interpolation method some values are represented inaccurately.
After deploying function to AWS, seems like Lambda has incorrect IAM policies attached:
AccessDenied: User: arn:aws:sts::085108115628:assumed-role/lambda-dashboard-dev-us-east-1-lambdaRole/lambda-dashboard-dev-main is not authorized to perform: cloudwatch:GetMetricStatistics
at Request.extractError (/var/runtime/node_modules/aws-sdk/lib/protocol/query.js:47:29)
at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
at Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:683:14)
at Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12)
As title says. Building simple dashboards should be also possible.
I have a notion that it would require change the way how config is passed to lambda function. Instead of using env variables which are a bit primitive, config should be hardcoded before deployment and expressed in .js
file?
To prevent basic bugs and enforce consistent codestyle, eslint should be added.
Right now service zip file is 17.25 MB which is definitely too big for such simple app.
It should be possible to provision whole page using one npx
-based command.
Something like:
npmx cloudwatch-public-metrics \
--metricName AWS/Billing//EstimatedCharges \
--metricDuration 15days \
and so on..
Blocked by: #4
Preferably using Jest.
To prevent DDoS attacks, it should be possible to config rate limiting. It is possible to setup it inside API Gateway options but does Serverless framework supports that? Need to check.
Instead of using config.yml
it should be possible to specify cfg values using flags with npm run deploy
command.
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.