Stay Hungry

Welcome to Jingwei’s blog.

  • Jingwei’s is a very simple blog, used to share my daily life and work.
  • If it can help you a little, I will be very happy!

Integrated Node Exporter on Openwrt

Prerequisites You should have a public IP address for your router, or you should use the DDNS to do a port forward to your router. Interacting with OpenWrt login in your router opkg update opkg install prometheus-node-exporter-lua opkg install prometheus-node-exporter-lua-nat_traffic opkg install prometheus-node-exporter-lua-netstat opkg install prometheus-node-exporter-lua-openwrt opkg install prometheus-node-exporter-lua-wifi opkg install prometheus-node-exporter-lua-wifi_stations test curl localhost:9100/metrics change the port and interface vim /etc/config/prometheus-node-exporter-lua You will see the contents as follow. config prometheus-node-exporter-lua 'main' option listen_ipv6 '0' option listen_port '9100' option listen_interface 'lan' change the listen_interface to lan which already changed and showed above....

December 29, 2022 · 1 min · Jingwei Lei

Configure Grafana Alerting Rules  [draft]

December 20, 2022 · 0 min · Jingwei Lei

How to Deploy Prometheus on Your Server

Download all required packages Go to the download page, find these packages as below, https://prometheus.io/download/ Prometheus https://github.com/prometheus/prometheus/releases/download/v2.37.5/prometheus-2.37.5.linux-amd64.tar.gz Alertmanager https://github.com/prometheus/alertmanager/releases/download/v0.24.0/alertmanager-0.24.0.linux-amd64.tar.gz Node_exporter https://github.com/prometheus/node_exporter/releases/download/v1.5.0/node_exporter-1.5.0.linux-amd64.tar.gz Allow 9090 port open ufw allow 9090/tcp ufw reload Configure and start tar xvfz prometheus-2.37.5.linux-amd64.tar.gz cd prometheus-2.37.5.linux-amd64/ mv prometheus-2.37.5.linux-amd64 /usr/local/prometheus useradd -M -s /sbin/nologin prometheus cd /usr/local/prometheus mkdir data chown -R prometheus:prometheus /usr/local/prometheus Add to system service [Unit] Description=Prometheus After=network.target [Service] User=prometheus Group=prometheus WorkingDirectory=/usr/local/prometheus ExecStart=/usr/local/prometheus/prometheus [Install] WantedBy=multi-user.target Save the file to /usr/lib/systemd/system/prometheus....

December 18, 2022 · 3 min · Jingwei Lei

how to allow specific tcodes make changes on SAP PRD

For some reason, I worked as an SAP basis consultant. The FICO consultant asked me to allow her open posting periods on SAP production client as the PRD client is not modifiable. I will tell you how to achieve this. find the relevant table of this T-code The T-code they want to run on production client is OB52. Run this T-code and find the technical information of one record. The table name is V_T001B_COFI, and if you know FICO well, you will know there is another table V_T001B_COFIB also related to this T-Code....

November 16, 2022 · 1 min · Jingwei Lei

Client Copy in SAP

Overview With SAP_BASIS 7.54 (SAP S/4HANA 1909), SAP delivers new client management tools based on new common architecture. They are a complete redesign of the previous client copy (transactions SCCL, SCC9, SCC5, …). The new tools replace the old client copy and also offer new functions. They are optimized for increased performance, process automation and stability. The log of the client copy has also been completely revised and is now much more meaningful and easier to read, so that troubleshooting is much easier....

October 22, 2022 · 21 min · Jingwei Lei