This package will provide everything needed to run cloud
and site
stack.
- fill out
config.yml
underconfig_cloud
to deploycloud stack
. cloud
stack uses config_cloud config files to start docker stack. Dashboards use the config_flow config files.- Example (config.yml)
-
###### CONFIG YAML ###### hostIP: H.O.S.T.I.P. ssl_certificate_key: 'path/to/key' ssl_certificate: 'path/to/certificate' grafana_host: 'http://dev2.virnao.com:3000' pushgateway: 'http://dev2.virnao.com:9091' grafana_username: 'username' grafana_password: 'password' grafana_api_token: "API KEY" siterm_url_map: "urn:ogf:network:nrp-nautilus.io:2020": https://sense-prpdev-fe.sdn-lb.ultralight.org/T2_US_SDSC/sitefe/json/frontend "urn:ogf:network:ultralight.org:2013": https://sense-caltech-fe.sdn-lb.ultralight.org/T2_US_Caltech_Test/sitefe/json/frontend "urn:ogf:network:sc-test.cenic.net:2020": https://sense-ladowntown-fe.sdn-lb.ultralight.org/NRM_CENIC/sitefe/json/frontend
- It also needs auth files
- /root/.sense-o-auth.yaml
- /etc/letsencrypt/live/dev2.virnao.com/privkey.pem
- /etc/letsencrypt/live/dev2.virnao.com/cert.pem
- Run
./install.sh
and follow the steps to install necessary dependencies.
Cloud
stack consists of Grafana, Prometheus, Pushgateway, and Script Exporter containers.- Run
./start.sh
to deployCloud
stack. - Run
./update.sh
to start generating dashboards.
clean.sh
script to removes running containers.
site
stack doesn't use any configuration files.- Configuration is done inside each exporter's
docker-compose.yml
file. Variables are passed in underenvironment
session.
- Docker Images are pull from DockerHub.
- To build images run
docker build . -t <user_name>/rocky_<exporter_name>_exporter:latest
under the correct directory.
NOTE: PLEASE FILL IN CONFIG FILES FIRST BEFORE RUNNING.
site
stack consists ofNode
,SNMP
,ARP
, andTCP
(in development) Exporter.- Start Exporters:
docker compose up -d
under the exporter directory. - Detailed instruction can be found under each exporter's directory.
- Stop docker containers either
docker rm <container_id>
or rundocker compose down -v
under exporters' directory. - Delete pod on cluster:
kubectl delete -n <namespace> deployment <name_of_exporter>-exporter