This code is used to provide charts for login.gov top line metrics. The codebase is broken into 2 parts:
To setup the server, run the following from the login-chars-server dir:
bundle install
rake db:create && rake db:migrateIn order for the app to properly query AWS resources you will need to set the following in a .env file.
HOST_NAME='http://localhost:4567' # The URL where the app is running. Default should work locally.
LOGIN_S3_BUCKET='login-gov.reports.55555555555-us-west-2' # The name of the S3 bucket where reports are saved
LOGIN_ALB_LOAD_BALANCER_NAME='app/login-idp-alb-prod/123abc' # The name of the prod load balancer dimension for CloudWatch metricsTo start the server run rackup.
To download reports from CloudWatch you will need AWS credentials in your environment. If you are on the login team the easiest way to do this is likely setting your AWS profile, e.g.
export AWS_PROFILE=identity