Please enable JavaScript.
Coggle requires JavaScript to display documents.
GCP_logs and operations (Stackdriver) - Coggle Diagram
GCP_logs and operations (Stackdriver)
Cloud Monitoring - set of tools to monitor infrastrucutre
Create Visualisation
Configure Alerts
Channel
Docs attached to notification
Condition
measure key aspects pf the service
Workspace - need to Organise information
Create workspace in one project(host project)
add other GCP or AWS accounts to monitor metrics. (yes it can work with AWS)
Provide ability to see information from different projects
Monitoring for Virtual Machine
Default: CPU, Disk utilization, network, uptime
we can install additional Cloud Monitoring Agent on VM to get additional info
Alertings:
we can create a alert with rule and set to notification channel: Pager Duty, Slack, etc
Uptime check - create alerts when app is dawn
Cloud Logging - realtime log management and analyse logs, raise alerts
fully managed, exabyte scale
Ingest logs from any source
No server provisioning or patching
Key features:
Dashboard - rich visualisation
Metrics - capture metrics from logs
Explorer - can query logs in SQL like style
Router - route logs to different destinations
we can send logs to few Sinks
BQ
Logging Storage
CS
Splunk
Sinks:
We can add Inclustion and Excluding filter
Integration with Cloud Logging
Ingest logs from GCE
Install Logging agent
Install agent on all VMs
we can stream logs from another systems
basic serivces add logs automatically
AppEngine
Cloud Run
GKE
Audit and security logs
Cloud Audit logs
System events audit logs - administrative access
Policy denied logs - when system denied smth
Data acccess logs - reading config [not enabled by default]
Admin activity - modify resources
Logs contain: which service, operations, resource and who
Need to provide specific permissions to see that logs: Logging/viewer, Logging/Private(for data access)
Access Transpareny log - check what GCP team perform on project
Logs router ()desided what to ingest/redject and when to route
Logs bucket
Required -( retention 400 days), zero charge, can't delete
Default
billed additional
retention can be up to 10 years
We can export logs to BQ, CS, pub/sub etc
Cloud Trace
provide ability to trace latency between systems
useful for mServices
there are libs for Java and other languages
Cloud Profiler
low overhead
can show the code repository mapping
usufull to find prod issues with perf - easy identify perf overhead
Consists of profiling agent and profiler visualiser
Cloud Debugger
lightweight
can use in prod - we can debug prod issues
no needs to add log
provide ability to debig
Cloud Reporting
Supported for Java, go, php. etc
We can report error by calling Error API or Sending it to cloud Loging
centrilized error console
For Android and iOS - use Firebase Crash Reports
Identify prod issues in real time