$ bosh -e ENVIRONMENT -d pivotal-container-service/DEPLOYMENT-ID ssh pivotal-container-service/VM-ID7. Log in to the billing database using the following command:
$ mysql -h IP-ADDRESS -u billing -p billingWhen prompted by the command line, enter the MySQL billing database password you recorded earlier.
MariaDB [billing]> select * from pods;
To calculate the high watermark value, run the following query:
SET @beginning_of_period = '2018-11-26 00:00:00'; SET @end_of_period = '2018-11-27 00:00:00'; SELECT MAX(number_of_pods) AS high_watermark FROM ( SELECT COUNT(DISTINCT main_table.id) AS number_of_pods FROM (SELECT first_seen AS sampling_timestamp FROM pods WHERE first_seen BETWEEN @beginning_of_period AND @end_of_period UNION ALL SELECT @beginning_of_period AS first_seen) AS sampling_table, pods main_table WHERE sampling_table.sampling_timestamp BETWEEN main_table.first_seen AND main_table.last_seen GROUP BY sampling_table.sampling_timestamp ORDER BY sampling_table.sampling_timestamp ) AS watermarks
Note: Modify the values for the beginning and end periods as needed.