You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Portal:Cloud VPS/Admin/Monitoring: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>Arturo Borrero Gonzalez
(add see also section)
 
imported>Arturo Borrero Gonzalez
Line 87: Line 87:
| all physical servers with the cloudXXXX naming scheme
| all physical servers with the cloudXXXX naming scheme
| [https://icinga.wikimedia.org/cgi-bin/icinga/status.cgi?search_string=cloud&style=hostdetail]
| [https://icinga.wikimedia.org/cgi-bin/icinga/status.cgi?search_string=cloud&style=hostdetail]
|-
! eqiad
| Cloud VPS eqiad1 capacity
| grafana
| capacity planning
| [https://grafana.wikimedia.org/dashboard/db/cloud-capacity-planning]
|-
! eqiad
| labstore1004/labstore1005
| grafana
| load & general metrics
| [https://grafana.wikimedia.org/dashboard/db/labstore1004-1005]
|-
! eqiad
| Cloud VPS eqiad1
| grafana
| load & general metrics
| [https://grafana.wikimedia.org/dashboard/db/cloudvps-eqiad1]
|- class="sortbottom"
|- class="sortbottom"
! Datacenter
! Datacenter

Revision as of 10:02, 21 September 2018

This page describes how monitoring works as deployed and managed by the WMCS team, for both Cloud VPS and Toolforge.

Deployment

There are 2 physical servers:

Both servers get applied the puppet role labs::monitoring (modules/role/manifests/labs/monitoring.pp), which get them ready to collect metrics using a software stack composed of carbon, graphite and friends.

Although the ideal would be for both servers to collect and serve metrics at the same time using a cluster approach, right now only the master actually works. The cold standby fetch metrics using rsync from the master (/srv/carbon/whisper/), so in case of a failover we could rebuild the service without much metrics loss.

These bits are located at modules/profile/manifests/labs/monitoring.pp.

Metrics life-cycle

There is a cron job with a custom script (archive-instances) that rotates (archives) old metrics from CloudVPS projects. Then, archived metrics get deleted if they are older than 90 days by means of a cronjob.

Both the /srv/ partition and the archive directory /srv/carbon/whisper/archived_metrics/ could grow out of control if these mechanisms are not properly adjusted.

These bits are located at:

The script logs operations to /var/log/graphite/instance-archiver.log.

Monitoring for Cloud VPS

There are metrics per project.

Monitoring for Toolforge

There are metrics for every node in the Toolforge cluster.

Dashboards and handy links

If you want to get an overview of what's going on the Cloud VPS infra, open these links:

Datacenter What Mechanism Comments Link
eqiad NFS servers icinga labstore1xxx servers [1]
eqiad Cloud VPS main services icinga service servers, non virts [2]
codfw Cloud VPS labtest servers icinga all physical servers [3]
eqiad Toolforge basic alerts grafana some interesting metrics from Toolforge [4]
eqiad Toolforge grid status custom tool jobs running on Toolforge's grid [5]
any cloud servers icinga all physical servers with the cloudXXXX naming scheme [6]
eqiad Cloud VPS eqiad1 capacity grafana capacity planning [7]
eqiad labstore1004/labstore1005 grafana load & general metrics [8]
eqiad Cloud VPS eqiad1 grafana load & general metrics [9]
Datacenter What Mechanism Comments Link

See also