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_sql_database_instance_metric_cpu_utilization_hourly closes #258 #261

Merged
merged 8 commits into from
Jun 29, 2021

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Jun 28, 2021

Integration test logs

Logs
Add passing integration test logs here

Example query results

Results

Basic Info

select
  instance_id,
  minimum,
  maximum,
  average,
  sample_count,
  timestamp
from
  gcp_sql_database_instance_metric_cpu_utilization_hourly
order by
  instance_id;
+-----------------------+----------------------+----------------------+----------------------+--------------+--------------------------+
| instance_id           | minimum              | maximum              | average              | sample_count | timestamp                |
+-----------------------+----------------------+----------------------+----------------------+--------------+--------------------------+
| parker-aaa:db-connect | 0.01826265277777776  | 0.030539222222222228 | 0.020860236829501912 | 58           | 2021-06-28T11:40:08.340Z |
| parker-aaa:db-connect | 0.027335444444444437 | 0.06078743055555557  | 0.04482814814814815  | 3            | 2021-06-28T10:40:08Z     |
+-----------------------+----------------------+----------------------+----------------------+--------------+--------------------------+

Intervals averaging < 1%

select
  instance_id,
  round(minimum::numeric,2) as min_cpu,
  round(maximum::numeric,2) as max_cpu,
  round(average::numeric,2) as avg_cpu,
  sample_count
from
  gcp_sql_database_instance_metric_cpu_utilization_hourly
where average < 1
order by
  instance_id;
+-----------------------+---------+---------+---------+--------------+
| instance_id           | min_cpu | max_cpu | avg_cpu | sample_count |
+-----------------------+---------+---------+---------+--------------+
| parker-aaa:db-connect | 0.02    | 0.03    | 0.02    | 58           |
| parker-aaa:db-connect | 0.03    | 0.06    | 0.04    | 3            |
+-----------------------+---------+---------+---------+--------------+

@ParthaI ParthaI self-assigned this Jun 28, 2021
@ParthaI ParthaI linked an issue Jun 28, 2021 that may be closed by this pull request
@Subhajit97 Subhajit97 requested a review from rajlearner17 June 29, 2021 12:43
Copy link

@rajlearner17 rajlearner17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cbruno10 cbruno10 merged commit ea96289 into main Jun 29, 2021
@cbruno10 cbruno10 deleted the issue-258 branch June 29, 2021 17:47
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_sql_database_instance_metric_cpu_utilization_hourly
4 participants