Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Hector Rivas Gandara
    @keymon
    Following sparse documentation I managed to start it locally with pouchdb, and then run the cf/applications to send the events
    I basically start the services with npm start, and then run the
    I run the cf application to report locally. But I am not able to generate any report.
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> you can run the demo that: 1. posts 3 usage documents 2. gets usage report
    Hector Rivas Gandara
    @keymon
    That works good. I get the report
    from the demo
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> you can also check this script here: https://github.com/hsiliev/workstation-scripts/blob/master/scripts/abacus-local-get.sh
    Hector Rivas Gandara
    @keymon
    but how can I get the report of usage of real apps form the actual orgs?
    OK, I will have a look to that script
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> it will get you the usage report
    slackbot6 <hsiliev> to filter it you can use graphql or do it client side
    Hector Rivas Gandara
    @keymon
    I actually do that, but the report comes empty
    I get the org id with cf org myorg --guid
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> I see. Abacus expects someone to submit report for the applications. We have 2 components that integrates it with CF - app & services bridges
    Hector Rivas Gandara
    @keymon
    yep, I am running the cf bridge
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> You can check its logs and the statistics (see https://github.com/hsiliev/workstation-scripts/blob/master/scripts/abacus-bridge-statistics.sh)
    Hector Rivas Gandara
    @keymon
    basically cd lib/cf/applications; CF_CLIENT_ID=.... npm start. I followed the README.md there
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> Well this can work if you provide it with all the needed data to connect to Cloud Controller and fetch data from there.
    slackbot6 <hsiliev> To do this you need to create UAA clients that have admin.read-only scope
    slackbot6 <hsiliev> And this requires admin permissions
    Hector Rivas Gandara
    @keymon
    I did that
    I think that works, and it gets all the events
    I see it sending a lot of data to the meter
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> It takes some time to crawl through all of them - the best way to see if it is working is to query the statistics endpoint of the bridges
    Hector Rivas Gandara
    @keymon
    ok, I will do it now. Bare with me, the server is running in a isolated network :(
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> The things you want to check is the date of the last event pulled from the CC
    slackbot6 <hsiliev> Bridge is very slow (single-threaded node.js app), but that’s on purpose. It consumes lots of bandwidth and can overload CC otherwise
    Hector Rivas Gandara
    @keymon
    OK. I see in other component (meter I think) messags about being the usage reports older than 600000 millis (10minutes)
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> Ohh. That’s the reason for not having any usage
    slackbot6 <hsiliev> To start using Abacus you need to purge app & service usage events
    Hector Rivas Gandara
    @keymon
    ah, ok, any guide for that?
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> this means cleaning your CC DB and populating it with fresh data about currently running apps/services
    Hector Rivas Gandara
    @keymon
    mmm
    like delete * from ...
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> Just (today) we started the installation page, so not much still. Here is a reference what we do: https://github.com/cloudfoundry-incubator/cf-abacus/blob/master/etc/concourse/scripts/cf-deploy-infra#L54-L70
    slackbot6 <hsiliev> Yep - billing epoch
    Hector Rivas Gandara
    @keymon
    OK, I will try now to do that, thx :)
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> It might be worth stopping Abacus, cleaning its DB and then purging and starting it again
    Hector Rivas Gandara
    @keymon
    yep. I started with npm startso I will restart. The db is in theory in memory
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> Ok
    slackbot6 <hsiliev> Thanks for asking these questions. They’ll be very helpful for the new guide/page
    Hector Rivas Gandara
    @keymon
    One question, I think you are not on gitter, are you? you are in a different chat and there is a broker bot
    which chat are you on?
    is it public?
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> Slack
    slackbot6 <hsiliev> Accessible from Abacus’ github landing page as well
    Hector Rivas Gandara
    @keymon
    sorry, I ignored it because these corporate firewalls are blocking slack too for me :(... but maybe I can use that one with a custom domain!
    abacus-irc-bot
    @abacus-irc-bot
    slackbot6 <hsiliev> gitter is also fine. That’s why we have this bot :slightly_smiling_face: