Google Cloud SQL CPU Monitoring - google-cloud-sql

I'm working on trying to setup some monitoring on a Google Cloud SQL node and am not seeing how to do it. I was able to install the monitoring agent on my Google Compute Engine instances to monitor CPU, Network, etc. I have not been able to figure out how to do so on the Cloud SQL instance. I have access to these types of monitoring:
Storage Usage (GB)
Number of Read/Write operations
Egress Bytes
Active Connections
MySQL Queries
MySQL Questions
InnoDB Pages Read/Written (pages/sec)
InnoDB Data fsyncs (operations/sec)
InnoDB Log fsyncs (operations/sec)
I'm sure these are great options, but at this point all I want to pay attention to is if my node is performing on a CPU/RAM standpoint as they seem to first and foremost measures for performance.
If I'm missing something, or misunderstnading what I'm trying to do, any advice is appreciated.
Thanks!

Google has a Stackdriver which is for logging and monitoring Google and AWS cloud infrastructure. It can monitor every single thing present on GCP. You can create visualization to monitor your Cloud SQL instance in one dashboard. You just have to ---->
1. login to stackdriver and Go to any existing dashboard, If you dont have create one.---->
2. Add chart and select Cloud SQL in resource Name.---->
3. Select CPU Utilization from metric and save. You can also monitor memory, Disk I/o, Delta count of Queries or servers Up-time and many more.
if you want to monitor any other GCP Compute engine, App-Engine, Kubernetese Engine, storage bucket, Bigtable or pub/sub you just have to select appropriate resource name from list. Hope you got your answer.

You can view all of them directly from the "Overview" tab of the Cloud SQL console:

I have added this as a feature request as issue 110.
https://code.google.com/p/googlecloudsql/issues/detail?id=110

Related

Does GCloud SQL charges grow with increase in data?

I am getting higher bills as each month passes that I am considering moving completely away from GCloud SQL.
Cloud SQL for PostgreSQL: Zonal - Small instance in Seoul(₩42,840)
Cloud SQL for PostgreSQL: Zonal - Standard storage in Seoul(₩30,080)
HTTP Load Balancing: Global Forwarding Rule Minimum Service Charge(₩23,751)
(No backup is even enabled for the instance)
That's up to $100 with little or no traffic yet! I don't see this as viable.
My question is, does the cost just keep going up with data and with traffic?

GCP - Can I use Compute Engine for Production MySQL DB

Is it alright to use Google Compute Engine virtual machines for MySQL DB?
db-n1-standard-2 costs around $97 DB for single Clould SQL instance and replication makes it double.
So I was wondering if its okay to use n1-standard-2 which costs around $48 and the applications will be in Kubernetes cluster and the pods would connect to Compute Engine VM for DB connection. Would the pods be able to connect to Compute Engine VM?
Also is it true that Google doesn't charge GKE Cluster Management Fees when using Zonal Kubernetes cluster? When I check with calculator it shows they don't charge management fees.
This is entirely up to your needs. If you want to be on call for DB failover and replication management, it will definitely be cheaper to run it yourself. Zalando has a lot of Postgres-on-Kubernetes automation that is very good, but at the end of the day who do you want waking up at 2AM if something breaks. I will never run another production SQL database myself as long as I live, it's just always worth the money.

Can we monitor AWS RDS PostgreSQL queries and stats using Newrelic?

I know that we can monitor the infrastructure and OS level metrics using Newrelic's integration with AWS. But how can we monitor the queries and DB level parameters using newrelic.
This feature was requested but it's not implemented by new relic yet, which basically pulling rds performance insights to newrelic
https://discuss.newrelic.com/t/add-rds-performance-insights-data-to-aws-integration/60821

SSH to bluemix from bosh and capture metrics

Has anyone tried connecting to IBM bluemix using bosh-cli. I am seeing performance issues in my requests and was going through this article on cloud foundry. I am planning to login to ssh to gorouter and monitor go-router CPU utilization.
Can someone recommend any way to capture the following metrics from Bluemix:
CPU utilization
Latency
Requests per second
what do you mean by "connecting to IBM bluemix using bosh-cli"?
When you think about the public available IBM Cloud (formerly Bluemix) that's represented here https://console.bluemix.net/ it's not possible. The bosh cli is to maintain the platform, thus Cloudfoundry and potentially other deployments but not your apps.
If you have a private installation you might check the metrics that the system provides. Infos here https://docs.cloudfoundry.org/running/all_metrics.html
When you want to have metrics about your app I could think off your app is providing these metrics. Or you put something in place like the New Relic monitoring. The have a bunch of application performance monitoring (APM). Info here https://docs.newrelic.com/docs/agents
HP

Verify from a local system if an Amazon EC2 instance is in use

We have a multiple Amazon EC2 instances(windows). How to find out the state of an instance i.e. if the instance is busy or is in idle state?
Guess it might be possible via Powershell but i am not very sure on this as i dont know much of powershell.
Amazon EC2 instances send metrics to Amazon CloudWatch, including:
CPU Utilization
Disk access
Network traffic
See documentation: Amazon Elastic Compute Cloud Dimensions and Metrics
This information can be retrieved from CloudWatch by using the get-metric-statistics API call or via the AWS Command-Line Interface (CLI). An alarm can also be configured in CloudWatch to trigger a notification when a threshold is passed (eg below 10% CPU utlization for 15 minutes).
See documentation: Creating Amazon CloudWatch Alarms
If you wish to capture additional metrics, such as free disk space or free memory, you will can send log files to CloudWatch Logs.
See documentation: Sending Performance Counters to CloudWatch and Logs to CloudWatch Logs Using Amazon EC2 Simple Systems Manager