sdinteractive / somethingdigital_influxdb Goto Github PK
View Code? Open in Web Editor NEWBase module for sending data for InfluxDB.
Base module for sending data for InfluxDB.
I'm still working through the best schema, but it may be useful to have the ability to add a prefix to all measurements that get sent to InfluxDb. For example, we send measurements with names like "cron" and "changelog". In InfluxDb measurements may come from other source, though, such as telegraf. To reduce the risk of collision it may be useful to have the ability to prefix all measurements (e.g. magento_cron, magento_chagenlog, etc...)
JS to post to a Magento route
Magento route stores it in Redis where it is queued to be synced to InfluxDb by shell/sd_influxdb.php
Per #26 (comment) sprintf
is cleaner. Need to review all the measurements.
Currently groups must be configured via XML. It could be useful to have the ability to do this with a GUI.
We may want to vary the retention policy by measurement rather than just always writing to the DEFAULT RP. This could potentially be handled in the config. E.g.
<sd_influxdb>
<groups>
<one_minute>
<inventory>
<model>sd_influxdb/measurement_inventory</model>
<retention_policy>ninety_days</retention_policy>
</inventory>
</one_minute>
</groups>
</sd_influxdb>
It would be cool if Telegraf supported running specific Redis queries, but I don't think they do.
Solutions
E.g.
X-SD-InfluxDb-Route catalog/category/view
We can then record that to a custom log and stream it to InfluxDb with https://github.com/influxdata/telegraf/tree/master/plugins/inputs/logparser
Thus we can calculate increase in 5XX errors on a per route basis (e.g. Increase in 5XX to /checkout/cart/add might go undetected when not looking on a per route basis).
Would be interesting to track the highest version Id in each changelog table as well as the current version in the metadata table. We could learn about whether lag is an issue, understand cache invalidations due to partial reindexes and, I'm sure, more...
Per #26 (comment)
There is one the changelog measurement, obviously, but worth checking the other measurements if they can be cleaned up similarly.
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.