# cat /etc/issue
Ubuntu 20.04.6 LTS \n \l
git clone https://github.com/s0nik42/lotus-farcaster.git
cd lotus-farcaster/lotus-exporter-farcaster/
cp config.toml.example config.toml
miner_api = "miner_api"
markets_api = "miner_api"
daemon_api = "lotus_api"
boost_api = ""
boost_graphql = "http://127.0.0.1:8080/graphql/query"
markets_type = "boost"
boostd auth api-info --perm admin
cp addresses.toml.example addresses.toml
mkdir /backup/lotus-exporter-farcaster
elif [ ! -f "$IUSER_HOME/.lotusminer/config.toml" ]
./install.sh -c /backup/lotus-exporter-farcaster root
* connect to 127.0.0.1 port 9100 failed: Connection refused
* Failed to connect to localhost port 9100: Connection refused
9100
已经被yb-tserver占用journalctl -fu prometheus-node-exporter.service
cat /lib/systemd/system/prometheus-node-exporter.service
cat /etc/default/prometheus-node-exporter | grep "web.listen-address"
# --web.listen-address=":9100"
ARGS=--web.listen-address=":9200"
# cat install.sh | grep 9200
TRACELOG=$(curl -vs -o - http://localhost:9200/metrics 2>&1)
verify "curl -vs -o - http://localhost:9200/metrics"
安装超时可以使用代理安装
pip3 install py-multibase gql
cat check.sh | grep 9200
r=$(curl -s -o - http://localhost:9200/metrics |wc -l 2>/dev/null)
echo -e "$KO cannot connect to prometheus-node-exporter (cannot access to http://localhost:9200/metrics)"
r=$(curl -s -o - http://localhost:9200/metrics |grep "lotus_info")
# ./install.sh -c /backup/lotus-exporter-farcaster root
wget https://github.com/prometheus/prometheus/releases/download/v2.45.2/prometheus-2.45.2.linux-amd64.tar.gz
tar -zxvf prometheus-2.45.2.linux-amd64.tar.gz
mv prometheus-2.45.2.linux-amd64 prometheus
cd prometheus/
mkdir /backup/prometheus/data
cat /lib/systemd/system/prometheus.service
[Unit]
Description=prometheus service
[Service]
User=root
ExecStart=/backup/prometheus/prometheus \
--config.file=/backup/prometheus/prometheus.yml \
--storage.tsdb.path=/backup/prometheus/data \
--web.enable-lifecycle \
--storage.tsdb.retention.time=365d
TimeoutStopSec=10
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable prometheus.service
systemctl start prometheus.service
systemctl status prometheus.service
curl localhost:9090/metrics
- job_name: 'node'
static_configs:
- targets: ['localhost:9200']
systemctl restart prometheus.service
curl -X POST http://localhost:9090/-/reload
apt-get install -y adduser libfontconfig1 musl
wget https://dl.grafana.com/enterprise/release/grafana-enterprise_10.2.3_amd64.deb
dpkg -i grafana-enterprise_10.2.3_amd64.deb
systemctl daemon-reload
systemctl enable grafana-server
systemctl start grafana-server
systemctl status grafana-server