From 920c3429b13ae8db6eb6cda5692db6c8b5097958 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Fri, 5 Aug 2022 03:37:13 +0200 Subject: [PATCH] Release 0.7.0 (#50) First prometheus-community release. * [FEATURE] Add various new metrics #14 * [BUGFIX] Fix exit code bit parsing #37 Signed-off-by: SuperQ --- .circleci/config.yml | 2 +- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ VERSION | 1 + gjsonext.go | 13 +++++++++++++ logging.go | 13 +++++++++++++ main.go | 13 +++++++++++++ metrics.go | 13 +++++++++++++ options.go | 13 +++++++++++++ readjson.go | 13 +++++++++++++ smartctl.go | 13 +++++++++++++ smartctlinfo.go | 13 +++++++++++++ 11 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md create mode 100644 VERSION diff --git a/.circleci/config.yml b/.circleci/config.yml index af723e5..91aa8de 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,7 @@ jobs: executor: golang steps: - prometheus/setup_environment - - run: make style lint yamllint unused build test + - run: make - prometheus/store_artifact: file: smartctl_exporter codespell: diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..74bcda9 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,28 @@ +## 0.7.0 / 2022-08-05 + +First prometheus-community release. + +* [FEATURE] Add various new metrics #14 +* [BUGFIX] Return the cached value if it's not time to scan again yet #18 +* [BUGFIX] Fix exit code bit parsing #37 + +## 0.6.0 / 2020-10-29 + +* Parsing smartctl return code and collect metrics if no errors +* Parsing smartctl messages and collect metrics if no errors + +## 0.5.0 / 2019-08-17 + +* smartctl_device: Device info +* smartctl_device_attribute: Device attributes +* smartctl_device_block_size: Device block size +* smartctl_device_capacity_blocks: Device capacity in blocks +* smartctl_device_capacity_bytes: Device capacity in bytes +* smartctl_device_interface_speed: Device interface speed, bits per second +* smartctl_device_power_cycle_count: Device power cycle count +* smartctl_device_power_on_seconds: Device power on seconds +* smartctl_device_rotation_rate: Device rotation rate +* smartctl_device_smartctl_exit_status: Exit status of smartctl on device +* smartctl_device_statistics: Device statistics +* smartctl_device_temperature: Device temperature celsius +* smartctl_version: smartctl version diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..faef31a --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.7.0 diff --git a/gjsonext.go b/gjsonext.go index 7005430..b5ef373 100644 --- a/gjsonext.go +++ b/gjsonext.go @@ -1,3 +1,16 @@ +// Copyright 2022 The Prometheus Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/logging.go b/logging.go index d2e9e94..175f923 100644 --- a/logging.go +++ b/logging.go @@ -1,3 +1,16 @@ +// Copyright 2022 The Prometheus Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/main.go b/main.go index 06b866b..7e26058 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,16 @@ +// Copyright 2022 The Prometheus Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/metrics.go b/metrics.go index a638ba5..7cc134b 100644 --- a/metrics.go +++ b/metrics.go @@ -1,3 +1,16 @@ +// Copyright 2022 The Prometheus Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/options.go b/options.go index 059f65b..dcb6e46 100644 --- a/options.go +++ b/options.go @@ -1,3 +1,16 @@ +// Copyright 2022 The Prometheus Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/readjson.go b/readjson.go index e256399..8e6682e 100644 --- a/readjson.go +++ b/readjson.go @@ -1,3 +1,16 @@ +// Copyright 2022 The Prometheus Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/smartctl.go b/smartctl.go index f5281a9..ca40a7d 100644 --- a/smartctl.go +++ b/smartctl.go @@ -1,3 +1,16 @@ +// Copyright 2022 The Prometheus Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/smartctlinfo.go b/smartctlinfo.go index 5b0159a..a688870 100644 --- a/smartctlinfo.go +++ b/smartctlinfo.go @@ -1,3 +1,16 @@ +// Copyright 2022 The Prometheus Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import (