Package: ralph_scrooge
Scrooge module brings billing functionality to Ralph. Using Ralph Scrooge, you can retrieve information on the use of resources from many other systems and charge other services. Scrooge generates flexible and accurate cost reports and let you refer to historical usages and costs.Ralph Scrooge is a combination of IT management and accounting software. By using Scrooge your company can optimize the costs of internal services and departments, by reviewing their structure and dependencies.Features:costs module, where you can provide invoice costs, staff costs and other costs (licences, supports etc.)many plugins to retrieve information on the use of resources from other systemscharging other services proportionally to the use of resources by their devicesmany full-featured reports (costs per service, costs and usages per single device, dependency structure)OpenStack support (tenants, simple usages, ceilometer)pluginable architecture - write your own plugins to collect data and calculate costs of your services!API to upload information from other systemsVisitRalph documentationto learn more about Ralph and Scrooge features!Change Log3.0.1Released on April 23, 2015Added versioning to static files.Added database and Virtual IP as default components.Change default settings for collect plugins.Fixes:Unification of menu items in angular views and old django views.Removed unnecessary ‘Extra costs’ and ‘Usage types’ menu items.3.0.0Released on April 13, 2015Project name changed from Ralph Pricing to Ralph ScroogeRedesigned architecure comparing to (old) ralph_pricingCalculation based on services and environments instead of venturesBase PricingObject model to simplify adding new types of chared objects (ex. Database, Virtual server, Tenant)Costs are (re)calculated and stored in databaseMany performance improvementsNew client GUI written in AngularJSComponents: preview of historical objects (server, virtual, database etc) per service for single dayCosts card: summary of service costs in single monthAllocations: add service or team specific costs and manage it’s distribution to other servicesCosts: detailed costs for each pricing objectNew charging types:Dynamic extra costs: specify cost (like Extra cost) and a dynamic way of it’s distribution (ex. cores count)New collect plugins:Collecting Database, VIP, Tenant info from RalphOpenStack SimpleUsage pluginOpenStack Ceilometer MongoDB pluginSupport plugins (from Ralph Assets)New permissions:Every (active) Ralph user has access to client part (components, allocation, cost card) for services which he ownsAdmin (ralph_scrooge group) has access to whole system2.7.0Adjusted ralph_pricing to work in parallel with ralph_scrooge2.6.0Added regular usages to serviceRounding value on reportAdded yeasterday flag to pricing_syncAdded new extracost model2.5.4Fixed team average with ventures subset2.5.3Added exclude ventures for base usagesAdded ventures filter and forecast price to ceilometer report pluginChanged profit center field length from 75 to 2552.5.2Logs compatible with python 2.7.32.5.1Improved services usages api loggingFixed fixed header scroll in reportsAdded DirectoryTimedRotatingFileHandlerRemoved sentry workaroundImproved default loggers and configSeparated unknown ventures for shares groups2.5.0Fixed decimal precision in testsRemove back collecting disk share mountFixed report error log textAdded average team billing modelAdded share multiple groupsAdded san collect pluginAdded exclude ventures to teamsAdded required permisions to view scroogeRenamed package to ralph_scroogeAdded coveralsFixed venture hierarchy, when venture have no parent then venture parent is NoneAdded html documentation2.4.0New devices reportDevices ventures changes reportNew ceilometer report plugin logic and logging tweakupsFixed asset collect plugin (replacing to None)Ceilometer collect plugin bugfixesAdded venture tree rebuild when venture plugin job is finishedFixed extra costs - add more than 5 rows (with dynamic adding)Fixed header in csv statementImproved gitignore and manifestWhen venture have no parent set venture parent as none2.3.0Fixed report table header on scroll.Exception instan error in logging on report plugin run.Fixed raise exception 0/0 by team plugins.Added extra costs to report as separated column and service to total cost.Fixed saving device_id, sn and barcodeAdded monthly statementAdded plugin to bill cloud 1.0 from ralphFixed ventures daily usages header colspan2.2.3nfdump get only ips from given network.Changed logging to logger in network plugin.Only usage types wtih is_manually_type flag are show in menu.Fixed calculating price. Massage incomplete_price was incorrect sometime.Fixed percent rounding for teams.Remove PLN from fields and add it to name of column.Average option for usages is now available.Fixed is_blade. Now it is truly boolean value.Added overwriting in push API.Added ventures daily usages report.Fixed usages columns width.2.2.2Fixed nfdump_str, executed command on remote server.Added console statistics2.2.1Upgrade ceilometer collect plugins.Added ceilometer report plugin.Fixed overwriting configuration by pluggableaps.Fixed logging from collect plugins. Now, when venture does not exist log warning.Upgrade inserting teams usages. Added total prcent information and button to dynamically add more rows.Plugins indentify usages only by symbols. Name and more options are set as defaults.Added multiple ventures option for single virtual server usages. settings.VIRTUAL_VENTURE_NAMES must be dict where key is name of groub and value is list of ventures.Network cost is by providers.Remove teams count table and added count to usage price table.2.2.0Displayed name changed from Ralph Pricing to Scrooge.Added service model and plugin for billing service depending on it’s usage types, base usage types and dependent services.Change report plugins architecture (change from function to classes, create plugin for base usages (eg. power consumption) and dedicated plugin for depreciation).Added teams billing. Teams could be billed in 4 models: by time, by devices count, by devices and cores count or by cost distribution between other teams depending on other teams members count.Modified collects virtual plugin for getting usages for more than one virtual systems.Created plugin for colleting internet usages per IP address (using nfsen).Added height of device usage.Removed old AllVentures report and warehouse option from report.PUSH API for usages of service resources by ventures.New white theme.2.1.1Added scrooge logger sentry2.1.0Changes in the architecture. Generate report from plugins for each usageCreate few plugins for each usageDistinguish two groups of plugins, reports and collectionsRebuild generate reports view and add it as beta venture viewNew report contains separated columns for warehouses for one reportIncreased efficiency of report generationFix splunk pluginUsed pluggableapps for scrooge configAdded more logs from loggerAdded separated logger for scroogeOpenstack ceilometer pluginWhen usage is per warehouse then warehouse must be chosenFix datepicker on report subpageAdded flag to hide/show usages on reportRemove TopVenture subpage2.0.1If assets plugin cannot find device by asset_id then try get device by sn2.0.0Changes in the architecture. Now devices are taken by asset plugin from assetsRemove device and cores plugin (This this is a role of asset plugin)DailyUsage contains warehouse fieldAdded version of usage type price based on costAdded price or cost per warehouseNow venture reports are generated per warehouse (only colums with flag by_warehouse are different between reports)Added forecast prices and costs and possibility to generate forecast reportsAdded cost to price converter used by ‘get_assets_count_price_cost’ method1.2.8Released on December 11, 2013F5 devices billing added.1.2.7Released on November 03, 2013Added search boxes, filters and additional columns in admin.Fixed corner-case bug related to calculation of bladesystems costs.1.2.6Released on August 08, 2013Added “show only active” option in the reportsAdded short descriptions to reports templatesFixed assets plugin - IntegrityError protection, added new testsShow extra costs in the extra costs types admin1.0.0initial release