Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add table gcp_compute_disk_metric_write_ops_daily. Closes #221 #263

Merged
merged 8 commits into from
Jul 1, 2021

Conversation

rajeshbal65
Copy link
Contributor

@rajeshbal65 rajeshbal65 commented Jun 28, 2021

Integration test logs

Logs
Add passing integration test logs here

Example query results

Results
### Basic info

```sql
select
  instance_id,
  minimum,
  maximum,
  average,
  sample_count
from
  gcp_compute_disk_metric_write_ops_daily
order by
  instance_id;

+-------------+---------+---------+--------------------+--------------+
| instance_id | minimum | maximum | average            | sample_count |
+-------------+---------+---------+--------------------+--------------+
| instance-1  | 0       | 230     | 1.2217514124293785 | 1416         |
| instance-1  | 0       | 0       | 0                  | 1416         |
| instance-1  | 0       | 230     | 1.47               | 300          |
| instance-1  | 0       | 0       | 0                  | 479          |
| instance-1  | 0       | 206     | 1.7766179540709812 | 479          |
+-------------+---------+---------+--------------------+--------------+

Intervals averaging over 100 write ops

select
  instance_id,
  round(minimum::numeric,2) as min_write_ops,
  round(maximum::numeric,2) as max_write_ops,
  round(average::numeric,2) as avg_write_ops,
  sample_count
from
  gcp_compute_disk_metric_write_ops_daily
where average > 10
order by
  instance_id;

+-------------+---------------+---------------+---------------+--------------+
| instance_id | min_write_ops | max_write_ops | avg_write_ops | sample_count |
+-------------+---------------+---------------+---------------+--------------+
+-------------+---------------+---------------+---------------+--------------+

Intervals averaging fewer than 1 write ops

select
  instance_id,
  round(minimum::numeric,2) as min_write_ops,
  round(maximum::numeric,2) as max_write_ops,
  round(average::numeric,2) as avg_write_ops,
  sample_count
from
  gcp_compute_disk_metric_write_ops_daily
where average < 1
order by
  instance_id;

+-------------+---------------+---------------+---------------+--------------+
| instance_id | min_write_ops | max_write_ops | avg_write_ops | sample_count |
+-------------+---------------+---------------+---------------+--------------+
| instance-1  | 0.00          | 0.00          | 0.00          | 1416         |
| instance-1  | 0.00          | 0.00          | 0.00          | 479          |
+-------------+---------------+---------------+---------------+--------------+
</details>

@rajeshbal65 rajeshbal65 requested a review from Subhajit97 June 28, 2021 12:19
@rajeshbal65 rajeshbal65 self-assigned this Jun 28, 2021
@Subhajit97 Subhajit97 linked an issue Jun 29, 2021 that may be closed by this pull request
@rajeshbal65 rajeshbal65 changed the title Add table gcp_disk_metric_write_ops_daily. Closes #221 Add table gcp_compute_disk_metric_write_ops_daily. Closes #221 Jun 29, 2021
@Subhajit97 Subhajit97 requested a review from rajlearner17 June 30, 2021 11:30
@Subhajit97 Subhajit97 requested a review from cbruno10 July 1, 2021 09:27
@cbruno10 cbruno10 merged commit bd0a72e into main Jul 1, 2021
@cbruno10 cbruno10 deleted the issue-221 branch July 1, 2021 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add table gcp_disk_metric_write_ops_daily
4 participants