Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
examples
|
|
mock_collector/cmd/mock_ceems_exporter
Boiler plate code to create a new instance of ComputeResourceExporterApp entrypoint
|
Boiler plate code to create a new instance of ComputeResourceExporterApp entrypoint |
mock_resource_manager/cmd/mock_ceems_server
Boiler plate code to create a new instance of CEEMSServer entrypoint
|
Boiler plate code to create a new instance of CEEMSServer entrypoint |
mock_resource_manager/pkg/resource
Package resource implements the Fetcher interface that retrieves compute units from resource manager
|
Package resource implements the Fetcher interface that retrieves compute units from resource manager |
mock_updater/cmd/mock_ceems_server
Boiler plate code to create a new instance of usageStatsServerApp entrypoint
|
Boiler plate code to create a new instance of usageStatsServerApp entrypoint |
mock_updater/pkg/updaterone
Package updaterone updates the compute units
|
Package updaterone updates the compute units |
mock_updater/pkg/updatertwo
Package updatertwo updates compute units
|
Package updatertwo updates compute units |
internal
|
|
common
Package common provides general utility helper functions and types
|
Package common provides general utility helper functions and types |
osexec
Package osexec implements subprocess execution functions
|
Package osexec implements subprocess execution functions |
runtime
Package runtime implements the utility functions to fetch runtime info of current host Nicked from https://github.com/prometheus/prometheus/blob/main/util/runtime
|
Package runtime implements the utility functions to fetch runtime info of current host Nicked from https://github.com/prometheus/prometheus/blob/main/util/runtime |
security
Package security implements privilege management and execution of privileged actions in security contexts.
|
Package security implements privilege management and execution of privileged actions in security contexts. |
structset
Package structset implements helper functions that involves structs
|
Package structset implements helper functions that involves structs |
pkg
|
|
api/base
Package base defines the names and variables that have global scope throughout which can be used in other subpackages
|
Package base defines the names and variables that have global scope throughout which can be used in other subpackages |
api/cli
Package cli implements the CLI of the CEEMS API server app
|
Package cli implements the CLI of the CEEMS API server app |
api/db
Package db creates DB tables, call resource manager interfaces and populates the DB with compute units
|
Package db creates DB tables, call resource manager interfaces and populates the DB with compute units |
api/db/migrator
Package migrator implements database migrations
|
Package migrator implements database migrations |
api/helper
Package helper provides utility functions across sub packages
|
Package helper provides utility functions across sub packages |
api/http
Package http implements the HTTP server handlers for different resource endpoints
|
Package http implements the HTTP server handlers for different resource endpoints |
api/http/docs
Package docs Code generated by swaggo/swag.
|
Package docs Code generated by swaggo/swag. |
api/models
Package models defines different models used in stats
|
Package models defines different models used in stats |
api/resource
Package resource defines the interface that each resource manager needs to implement to get compute units
|
Package resource defines the interface that each resource manager needs to implement to get compute units |
api/resource/openstack
Package openstack implements the fetcher interface to fetch instances from Openstack resource manager
|
Package openstack implements the fetcher interface to fetch instances from Openstack resource manager |
api/resource/slurm
Package slurm implements the fetcher interface to fetch compute units from SLURM resource manager
|
Package slurm implements the fetcher interface to fetch compute units from SLURM resource manager |
api/updater
Package updater will provide an interface to update the unit stucts before inserting into DB
|
Package updater will provide an interface to update the unit stucts before inserting into DB |
api/updater/tsdb
Package tsdb provides the TSDB based updater for CEEMS
|
Package tsdb provides the TSDB based updater for CEEMS |
collector
Package collector implements different collectors of the exporter
|
Package collector implements different collectors of the exporter |
emissions
Package emissions implements clients to fetch emission factors from different sources
|
Package emissions implements clients to fetch emission factors from different sources |
grafana
Package grafana implements Grafana client
|
Package grafana implements Grafana client |
lb/backend
Package backend implements the backend TSDB server of load balancer app
|
Package backend implements the backend TSDB server of load balancer app |
lb/base
Package base defines base variables that will be used in lb package
|
Package base defines base variables that will be used in lb package |
lb/cli
Package cli implements the CLI app of load balancer
|
Package cli implements the CLI app of load balancer |
lb/frontend
Package frontend implements the frontend server of the load balancer
|
Package frontend implements the frontend server of the load balancer |
lb/serverpool
Package serverpool implements the interface that manages pool of backend servers of load balancer app
|
Package serverpool implements the interface that manages pool of backend servers of load balancer app |
sqlite3
Package sqlite3 implements a connect hook around the sqlite3 driver so that the underlying connection can be fetched from the driver for more advanced operations such as backups.
|
Package sqlite3 implements a connect hook around the sqlite3 driver so that the underlying connection can be fetched from the driver for more advanced operations such as backups. |
tsdb
Package tsdb implements TSDB client
|
Package tsdb implements TSDB client |
Click to show internal directories.
Click to hide internal directories.