2019-08-14 22:34:49 +02:00
|
|
|
build: get
|
2020-10-02 13:30:09 +02:00
|
|
|
@go build -v
|
2019-08-14 22:34:49 +02:00
|
|
|
|
|
|
|
get:
|
2020-10-02 13:30:09 +02:00
|
|
|
@go get -v
|
2019-08-14 22:34:49 +02:00
|
|
|
|
|
|
|
install:
|
2020-10-02 13:30:09 +02:00
|
|
|
@go install
|
2019-08-14 22:34:49 +02:00
|
|
|
|
|
|
|
run: build
|
2020-10-02 13:30:09 +02:00
|
|
|
@go run . --config=$(shell pwd)/smartctl_exporter.yaml --debug --verbose
|
2019-08-14 22:34:49 +02:00
|
|
|
|
|
|
|
run-sudo: build
|
2020-10-02 13:30:09 +02:00
|
|
|
sudo ./smartctl_exporter --config=$(shell pwd)/smartctl_exporter.yaml --debug --verbose
|
2019-08-14 22:34:49 +02:00
|
|
|
|
|
|
|
clear:
|
|
|
|
@clear
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo "Cleaning"
|
2020-10-02 13:30:09 +02:00
|
|
|
@go clean
|
2019-08-17 12:18:48 +02:00
|
|
|
|
|
|
|
example:
|
|
|
|
@echo "# Example output" > EXAMPLE.md
|
2019-08-17 12:26:31 +02:00
|
|
|
@echo '```' >> EXAMPLE.md
|
2019-08-17 12:18:48 +02:00
|
|
|
@curl -s localhost:9633/metrics | grep smartctl >> EXAMPLE.md
|
2019-08-17 12:26:31 +02:00
|
|
|
@echo '```' >> EXAMPLE.md
|