Monitoring

Fetched 5109 B in 1s (5814 B/s)
Reading package lists... Done
student-04-0652cfcea824@lamp1-vm:~$ history
    1  sudo apt-get update
    2  sudo apt-get install apache2 php7.0
    9  sudo service apache2 restart
   12  sudo service --status-all

   18  curl -sSO https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh
   19  sudo bash add-google-cloud-ops-agent-repo.sh --also-install
   20  sudo systemctl status google-cloud-ops-agent"*"
   21  sudo apt-get update

student-04-0652cfcea824@lamp1-vm:~$ 


652cfcea824@lamp1-vm:~$ sudo service apache2 restart
student-04-0652cfcea824@lamp1-vm:~$ ps -ef | grep apache2
www-data    2067       1  0 06:41 ?        00:00:00 /usr/bin/htcacheclean -d 120 -p /var/cache/apache2/mod_cache_disk -l 300M -n
root        2472       1  0 06:42 ?        00:00:00 /usr/sbin/apache2 -k start
www-data    2473    2472  0 06:42 ?        00:00:00 /usr/sbin/apache2 -k start
www-data    2474    2472  0 06:42 ?        00:00:00 /usr/sbin/apache2 -k start
student+    2542     922  0 06:42 pts/0    00:00:00 grep apache2
student-04-0652cfcea824@lamp1-vm:~$ sudo service
Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ]
student-04-0652cfcea824@lamp1-vm:~$ sudo service --status-all
 [ + ]  apache-htcacheclean
 [ + ]  apache2
 [ + ]  apparmor
 [ + ]  chrony
 [ + ]  cron
 [ + ]  dbus
 [ + ]  exim4
 [ + ]  haveged
 [ - ]  hwclock.sh
 [ + ]  kmod
 [ + ]  networking
 [ + ]  procps
 [ + ]  rsyslog
 [ - ]  screen-cleanup
 [ + ]  ssh
 [ - ]  sudo
 [ + ]  udev
 [ + ]  unattended-upgrades
 [ - ]  uuidd
student-04-0652cfcea824@lamp1-vm:~$ sudo service --status-all apache2
--status-all: unrecognized service
student-04-0652cfcea824@lamp1-vm:~$ sudo service  apache2
Usage: apache2 {start|stop|graceful-stop|restart|reload|force-reload}
student-04-0652cfcea824@lamp1-vm:~$ sudo service status apache2
status: unrecognized service
student-04-0652cfcea824@lamp1-vm:~$ sudo service --status apache2
--status: unrecognized service
student-04-0652cfcea824@lamp1-vm:~$ sudo service 
Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ]
student-04-0652cfcea824@lamp1-vm:~$ 
student-04-0652cfcea824@lamp1-vm:~$ 
student-04-0652cfcea824@lamp1-vm:~$ 
student-04-0652cfcea824@lamp1-vm:~$ 
student-04-0652cfcea824@lamp1-vm:~$ 
student-04-0652cfcea824@lamp1-vm:~$ curl -sSO https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh
student-04-0652cfcea824@lamp1-vm:~$ sudo bash add-google-cloud-ops-agent-repo.sh --also-install
Hit:1 https://packages.cloud.google.com/apt google-compute-engine-bullseye-stable InRelease
Hit:2 https://packages.cloud.google.com/apt cloud-sdk-bullseye InRelease
Hit:3 https://deb.debian.org/debian bullseye InRelease 
Hit:4 https://deb.debian.org/debian-security bullseye-security InRelease
Hit:5 https://deb.debian.org/debian bullseye-updates InRelease
Hit:6 https://deb.debian.org/debian bullseye-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 160 kB of archives.
After this operation, 166 kB of additional disk space will be used.
Get:1 https://deb.debian.org/debian bullseye/main amd64 apt-transport-https all 2.2.4 [160 kB]
Fetched 160 kB in 0s (1494 kB/s)        
Selecting previously unselected package apt-transport-https.
(Reading database ... 60206 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.2.4_all.deb ...
Unpacking apt-transport-https (2.2.4) ...
Setting up apt-transport-https (2.2.4) ...
Adding agent repository for debian.
deb https://packages.cloud.google.com/apt google-cloud-ops-agent-bullseye-all main
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
Hit:1 https://deb.debian.org/debian bullseye InRelease
Hit:2 https://deb.debian.org/debian-security bullseye-security InRelease
Hit:3 https://deb.debian.org/debian bullseye-updates InRelease
Get:4 https://packages.cloud.google.com/apt google-cloud-ops-agent-bullseye-all InRelease [5109 B]
Hit:5 https://deb.debian.org/debian bullseye-backports InRelease
Hit:6 https://packages.cloud.google.com/apt google-compute-engine-bullseye-stable InRelease
Get:7 https://packages.cloud.google.com/apt cloud-sdk-bullseye InRelease [6406 B]
Get:8 https://packages.cloud.google.com/apt google-cloud-ops-agent-bullseye-all/main amd64 Packages [6640 B]
Fetched 18.2 kB in 1s (21.1 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  google-cloud-ops-agent
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 88.8 MB of archives.
After this operation, 385 MB of additional disk space will be used.
Get:1 https://packages.cloud.google.com/apt google-cloud-ops-agent-bullseye-all/main amd64 google-cloud-ops-agent amd64 2.35.0~debian11 [88.8 MB]
Fetched 88.8 MB in 2s (40.0 MB/s)                  
Selecting previously unselected package google-cloud-ops-agent.
(Reading database ... 60210 files and directories currently installed.)
Preparing to unpack .../google-cloud-ops-agent_2.35.0~debian11_amd64.deb ...
Unpacking google-cloud-ops-agent (2.35.0~debian11) ...
Setting up google-cloud-ops-agent (2.35.0~debian11) ...
Created symlink /etc/systemd/system/multi-user.target.wants/google-cloud-ops-agent.service → /lib/systemd/system/google-cloud-ops-agent.service.
google-cloud-ops-agent  installation succeeded.
student-04-0652cfcea824@lamp1-vm:~$ 
student-04-0652cfcea824@lamp1-vm:~$ 
student-04-0652cfcea824@lamp1-vm:~$ sudo systemctl status google-cloud-ops-agent"*"
● google-cloud-ops-agent-fluent-bit.service - Google Cloud Ops Agent - Logging Agent
     Loaded: loaded (/lib/systemd/system/google-cloud-ops-agent-fluent-bit.service; static)
     Active: active (running) since Tue 2023-08-01 06:47:13 UTC; 20s ago
    Process: 4280 ExecStartPre=/opt/google-cloud-ops-agent/libexec/google_cloud_ops_agent_engine -service=flue>
   Main PID: 4297 (google_cloud_op)
      Tasks: 30 (limit: 4691)
     Memory: 26.1M
        CPU: 402ms
     CGroup: /system.slice/google-cloud-ops-agent-fluent-bit.service
             ├─4297 /opt/google-cloud-ops-agent/libexec/google_cloud_ops_agent_wrapper -config_path /etc/googl>
             └─4312 /opt/google-cloud-ops-agent/subagents/fluent-bit/bin/fluent-bit --config /run/google-cloud>

Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4280]:   processors:
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4280]:     metrics_filter:
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4280]:       type: exclude_metrics
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4280]:       metrics_pattern: []
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4280]:   service:
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4280]:     pipelines:
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4280]:       default_pipeline:
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4280]:         receivers: [hostmetrics]
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4280]:         processors: [metrics_filter]
Aug 01 06:47:13 lamp1-vm systemd[1]: Started Google Cloud Ops Agent - Logging Agent.

● google-cloud-ops-agent-diagnostics.service - Google Cloud Ops Agent - Diagnostics
     Loaded: loaded (/lib/systemd/system/google-cloud-ops-agent-diagnostics.service; disabled; vendor preset: >
     Active: active (running) since Tue 2023-08-01 06:47:12 UTC; 21s ago
   Main PID: 4262 (google_cloud_op)
      Tasks: 7 (limit: 4691)
     Memory: 19.4M
        CPU: 191ms
     CGroup: /system.slice/google-cloud-ops-agent-diagnostics.service
             └─4262 /opt/google-cloud-ops-agent/libexec/google_cloud_ops_agent_diagnostics -config /etc/google>

Aug 01 06:47:12 lamp1-vm systemd[1]: Started Google Cloud Ops Agent - Diagnostics.

● google-cloud-ops-agent.service - Google Cloud Ops Agent
     Loaded: loaded (/lib/systemd/system/google-cloud-ops-agent.service; enabled; vendor preset: enabled)
     Active: active (exited) since Tue 2023-08-01 06:47:13 UTC; 20s ago
    Process: 4263 ExecStartPre=/opt/google-cloud-ops-agent/libexec/google_cloud_ops_agent_engine -in /etc/goog>
    Process: 4279 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 4279 (code=exited, status=0/SUCCESS)
        CPU: 270ms

Aug 01 06:47:12 lamp1-vm google_cloud_ops_agent_engine[4263]:   service:
Aug 01 06:47:12 lamp1-vm google_cloud_ops_agent_engine[4263]:     pipelines:
Aug 01 06:47:12 lamp1-vm google_cloud_ops_agent_engine[4263]:       default_pipeline:
Aug 01 06:47:12 lamp1-vm google_cloud_ops_agent_engine[4263]:         receivers: [hostmetrics]
Aug 01 06:47:12 lamp1-vm google_cloud_ops_agent_engine[4263]:         processors: [metrics_filter]
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4263]: 2023/08/01 06:47:13 [Ports Check] Result: PASS
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4263]: 2023/08/01 06:47:13 [Network Check] Result: PASS
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4263]: 2023/08/01 06:47:13 [API Check] Result: PASS
Aug 01 06:47:13 lamp1-vm google_cloud_ops_agent_engine[4263]: 2023/08/01 06:47:13 Startup checks finished
Aug 01 06:47:13 lamp1-vm systemd[1]: Finished Google Cloud Ops Agent.

● google-cloud-ops-agent-opentelemetry-collector.service - Google Cloud Ops Agent - Metrics Agent
     Loaded: loaded (/lib/systemd/system/google-cloud-ops-agent-opentelemetry-collector.service; static)
     Active: active (running) since Tue 2023-08-01 06:47:13 UTC; 20s ago
    Process: 4281 ExecStartPre=/opt/google-cloud-ops-agent/libexec/google_cloud_ops_agent_engine -service=otel>
   Main PID: 4305 (otelopscol)
      Tasks: 7 (limit: 4691)
     Memory: 24.3M
        CPU: 431ms
     CGroup: /system.slice/google-cloud-ops-agent-opentelemetry-collector.service
             └─4305 /opt/google-cloud-ops-agent/subagents/opentelemetry-collector/otelopscol --config=/run/goo>

Aug 01 06:47:14 lamp1-vm otelopscol[4305]: 2023-08-01T06:47:14.111Z        info        extensions/extensions.g>
Aug 01 06:47:14 lamp1-vm otelopscol[4305]: 2023-08-01T06:47:14.112Z        info        internal/resourcedetect>
Aug 01 06:47:14 lamp1-vm otelopscol[4305]: 2023-08-01T06:47:14.133Z        info        internal/resourcedetect>
Aug 01 06:47:14 lamp1-vm otelopscol[4305]: 2023-08-01T06:47:14.134Z        info        prometheusreceiver@v0.7>
Aug 01 06:47:14 lamp1-vm otelopscol[4305]: 2023-08-01T06:47:14.134Z        info        prometheusreceiver@v0.7>
Aug 01 06:47:14 lamp1-vm otelopscol[4305]: 2023-08-01T06:47:14.135Z        info        service/service.go:145 >
Aug 01 06:47:14 lamp1-vm otelopscol[4305]: 2023-08-01T06:47:14.135Z        info        prometheusreceiver@v0.7>
Aug 01 06:47:14 lamp1-vm otelopscol[4305]: 2023-08-01T06:47:14.134Z        info        prometheusreceiver@v0.7>
Aug 01 06:47:14 lamp1-vm otelopscol[4305]: 2023-08-01T06:47:14.135Z        info        prometheusreceiver@v0.7>
Aug 01 06:47:14 lamp1-vm otelopscol[4305]: 2023-08-01T06:47:14.135Z        info        prometheusreceiver@v0.7>
student-04-0652cfcea824@lamp1-vm:~$ sudo apt-get update






































No comments:

Post a Comment

AppEngine - Python

tudent_04_347b5286260a@cloudshell:~/python-docs-samples/appengine/standard_python3/hello_world (qwiklabs-gcp-00-88834e0beca1)$ sudo apt upda...