Re: [abacus] Adding metering resource
Piotr Przybylski <piotrp@...>
Hi Sebastien,toggle quoted messageShow quoted text
thanks, that worked well for several resources though the planned API will
make it simpler and more dynamic.
From: Jean-Sebastien Delfino <jsdelfino(a)gmail.com>
To: "Discussions about Cloud Foundry projects and the system
Date: 09/30/2015 01:20 PM
Subject: [cf-dev] Re: [abacus] Adding metering resource
We're currently registering our sample resource configs in
lib/config/resource/src/index.js . To register yours you can just add
one line like this:
'<your resource_id>': require('<your resource config script>'),
... to that script  along with the other sample configs.
Your config doesn't need to be in the resources dir, anywhere on the
node.js require() path should work.
This rudimentary registration mechanism is temporary until we add a
resource config management API to allow service and runtime providers to
register their resource configs externally without having to fiddle with
the Abacus scripts. I believe the plan is to have that API very soon, and
that work is tracked under user story #101019374 .
On Wed, Sep 30, 2015 at 11:56 AM, Piotr Przybylski <piotrp(a)us.ibm.com>
I would like to add a new resource, similar to linux-container. What is a
correct way to register that resource ? The resource files are located in
however adding resource file there does not add new resource_id to
resource enumerations (e.g. in