Слияние кода завершено, страница обновится автоматически
Scrape RAID card metrics for prometheus.
git clone https://gitee.com/autom-studio/raid_exporter.git
cd raid_exporter
go build -o examples/raid_exporter
mkdir -p examples
GO_PATH=$PWD/examples go get gitee.com/autom-studio/raid_exporter
./raid_exporter
sudo mkdir -p /opt/promExporters/raid_exporter
sudo cp examples/raid_exporter.yaml.example /opt/promExporters/raid_exporter/raid_exporter.yaml
sudo cp examples/raid_exporter /opt/promExporters/raid_exporter/raid_exporter
sudo chmod 755 /opt/promExporters/raid_exporter/raid_exporter
sudo cp init/systemd/raid_exporter.service /lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now raid_exporter
---
exporter:
listenAddress: :9400 # Required field, exporter listen address
readTimeout: 60 # Required field, metrics web read timeout
writeTimeout: 60 # Required field, metrics web write timeout
metricsPath: /metrics # Required field, metrics web path
cliType: perccli # Required field, raid card cli type, perccli or storcli
log:
path: "./raid_exporter.log" # Required field, log file path
level: "INFO" # Required field, log level
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Комментарии ( 0 )