# Pag-update ng monitoring suite

## Pag-update ng Prometheus

### Mag-download ng pinakabagong bersyon

[I-Download](https://prometheus.io/download/) ang pinakabagong bersyon ng Prometheus at patakbuhin ang proseso ng pag-verify ng checksum upang tiyakin na ang in-download na file ay hindi nababago.

```bash
cd
curl -LO https://github.com/prometheus/prometheus/releases/download/v2.45.0/prometheus-2.45.0.linux-amd64.tar.gz
echo "1c7f489a3cc919c1ed0df2ae673a280309dc4a3eaa6ee3411e7d1f4bdec4d4c5 prometheus-2.45.0.linux-amd64.tar.gz" | sha256sum --check
```

**Inaasahang output**: Kumpirmahin ang output ng checksum verification.&#x20;

```
prometheus-2.45.0.linux-amd64.tar.gz: OK
```

### Palitan ang umiiral na bersyon

Kung na-verify ang checksum, i-extract ang mga file at ilipat ang mga ito sa mga direktoryo ng `/usr/local/bin` at `/etc/prometheus` para sa kalinisan at pinakamahusay na gawain. Pagkatapos, linisin ang mga kopya ng mga file.

```bash
tar xvf prometheus-2.45.0.linux-amd64.tar.gz
sudo cp prometheus-2.45.0.linux-amd64/prometheus /usr/local/bin/
sudo cp prometheus-2.45.0.linux-amd64/promtool /usr/local/bin/
sudo cp -r prometheus-2.45.0.linux-amd64/consoles /etc/prometheus
sudo cp -r prometheus-2.45.0.linux-amd64/console_libraries /etc/prometheus
sudo rm prometheus-2.45.0.linux-amd64.tar.gz
sudo rm -r prometheus-2.45.0.linux-amd64
```

### eI-restart ang serbisyo

I-reload ang systemd daemon, i-restart ang serbisyo, at subaybayan ang mga journal logs.

```bash
sudo systemctl daemon-reload
sudo systemctl restart prometheus.service
sudo systemctl status prometheus.service
```

**Inaasahang output**: Ang serbisyo ay dapat na nagsasabing ito ay "active (running)".

Suriin ang mga journal logs upang tiyakin na walang error na mensahe.

```bash
sudo journalctl -fu prometheus -o cat | ccze -A
```

## Pag-update ng Node Exporter

### Download the latest versionMag-download ng pinakabagong bersyon

[I-Download](https://prometheus.io/download/#node_exporter) ang pinakabagong bersyon ng Node Exporter at patakbuhin ang proseso ng pag-verify ng checksum upang tiyakin na ang in-download na file ay hindi nababago.

```bash
cd
curl -LO https://github.com/prometheus/node_exporter/releases/download/v1.6.1/node_exporter-1.6.1.linux-amd64.tar.gz
echo "ecc41b3b4d53f7b9c16a370419a25a133e48c09dfc49499d63bcc0c5e0cf3d01 node_exporter-1.6.1.linux-amd64.tar.gz" | sha256sum --check
```

**Inaasahang output**: Kumpirmahin ang output ng checksum verification

```
node_exporter-1.6.1.linux-amd64.tar.gz: OK
```

Kung na-verify ang checksum, i-extract ang mga file at ilipat ang mga ito sa (`/usr/local/bin`) na direktoryo para sa kalinisan at pinakamahusay na gawain. Pagkatapos, linisin ang mga kopya ng mga file.

```bash
tar xvf node_exporter-1.6.1.linux-amd64.tar.gz
sudo cp node_exporter-1.6.1.linux-amd64/node_exporter /usr/local/bin
rm node_exporter-1.6.1.linux-amd64.tar.gz
rm -r node_exporter-1.6.1.linux-amd64
```

### I-restart ang serbisyo

I-reload ang systemd daemon, i-restart ang serbisyo, at subaybayan ang mga journal logs.

```bash
sudo systemctl daemon-reload
sudo systemctl restart node_exporter.service
sudo systemctl status node_exporter.service
```

**Inaasahang output**: Ang serbisyo ay dapat na nagsasabing ito ay "active (running)".

Suriin ang mga journal logs upang tiyakin na walang error na mensahe.

```bash
sudo journalctl -fu node_exporter -o cat | ccze -A
```

## Pag-update ng Grafana

Ang pag-update ng Grafana ay ginagawa sa pamamagitan ng mga Linux APT package bilang bahagi ng kabuuang pag-update ng OS. Patakbuhin ang sumusunod na command:

```bash
sudo apt update -y && sudo apt upgrade -y
```

Pagkatapos, i-reboot ang system.

```bash
sudo reboot
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bitskwela.gitbook.io/bitskwela-x-lido-cs-fleet-eth-home-staking-guide/pagpapanatili-at-pag-update/pag-update-ng-monitoring-suite.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
