SLATE resource monitoring based on Prometheus/Thanos/Grafana
sbin - contains scripts with the logic to implement in the SLATE service/client
bin - contains scripts to manually manage/debug multiple clusters
private - where to place the credentials for the bin scripts to work
- address-list - list of IPs and hostnames for the platform thanos-query (one entry per line)
- admin-password - the password to be used for the admin account of grafana in the platform installation
- bucket.yaml - credentials for the long term storage of thanos data
- conf - directory containing kubernetes credentials for each cluster (i.e. cluster-name.conf)
- cont/platform - the kubernetes credential for the platform
- bucketConf - directory containing S3 bucket credentials for each cluster (i.e. cluster-name.yaml and platform.yaml)
- grafana-url - the URL to be used for the grafana server in the platform installation
Run the commands without arguments to see the usage.
For the main SLATE platform, the repository is deployed on api.slateci.net in /home/centos/slate-monitoring and properly configured. For a different SLATE platform, make sure the private directory is populated as required above. The bin scripts get the information in "private" and then call the sbin script appropriately.
- Use bin/platform-install.sh to install the platform components
- Use bin/platform-status.sh to check the pods and services
- Use bin/platform-delete.sh to remove the platform components
- Use bin/cluster-install.sh CLUSTER_NAME to install the cluster components (must match name in private/conf/CLUSTER_NAME.conf and private/bucketConf/CLUSTER_NAME.yaml)
- Use bin/cluster-status.sh CLUSTER_NAME to check the pods and services (must match name in private/conf/CLUSTER_NAME.conf and private/bucketConf/CLUSTER_NAME.yaml)
- Use bin/cluster-delete.sh CLUSTER_NAME to remove the cluster components (must match name in private/conf/CLUSTER_NAME.conf and private/bucketConf/CLUSTER_NAME.yaml)
- Use bin/list-addresses.sh to query the IP address of all clusters; use the info to populate private/address-list
- Use bin/platform-address-list-update.sh to notify the platform of changes in the cluster ips
For the main SLATE platform, login to api.slateci.net and cd to /home/centos/slate-monitoring.
- Edit private/address-list and add the IP address of the thanos-store at the end
- Run bin/platform-address-list-update.sh
- Go to https://comanage.osris.org/registry/
- Login
- Top right, menu from the username, Ceph Credentials/OSiRIS
- In the list of the user "slate-monitoring", use the plus icon (Add new S3 access key)
- Use sbin/generate-bucket-configuration.sh to generate the appropriate bucket.yaml
- Make sure you have an S3 bucket on OSiRIS created with the appropriate credentials
- Make sure you have the kubeconfig file to the kubernetes cluster, which should have an ingress appropriately setup
- Use sbin/generate-bucket-configuration.sh to generate the bucket.yaml
- Use sbin/platform-install.sh to install the platform components (NOTE: depending on the amount of data in the bucket, it may take some time for the thanos-store to initialize)
- Use sbin/platform-status.sh to check the pods and services
- Use sbin/platform-delete.sh to remove the platform components
- Make sure you have the credentials for the S3 bucket
- Use sbin/generate-bucket-configuration.sh to generate the bucket.yaml
- Use sbin/cluster-install.sh to install the cluster components
- Use sbin/cluster-status.sh to check the pods and services
- Use sbin/cluster-delete.sh to remove the cluster components
- Added support for one bucket credential per cluster
- Added bin scripts for platform installation
- Added new more detailed dashboards
- Added scripts for platform installation
- Porting to helm 3. Had to upgrade the helm chart as the old one (5.2.0) didn't support it. This broke the grafana dashboards, which need to be retouched.
- Refactoring code from previous repository. Splitting the part that will be executed by the SLATE client/service (in sbin) from the part that is used to manage an installation of multiple cluster by hand (in bin).