Commit graph

235 commits

Author SHA1 Message Date
Konstantin Shalygin
6d8ccdc85f Release 0.9.2
Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
2023-08-10 21:58:03 +03:00
David Randall
05a503e023
Merge pull request #132 from prometheus-community/dependabot/go_modules/github.com/prometheus/client_golang-1.16.0
Bump github.com/prometheus/client_golang from 1.14.0 to 1.16.0
2023-08-10 13:56:30 -04:00
dependabot[bot]
90280d1efd
Bump github.com/prometheus/client_golang from 1.14.0 to 1.16.0
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.14.0 to 1.16.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.14.0...v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-10 17:48:30 +00:00
David Randall
e5dbffc757
Merge pull request #125 from prometheus-community/dependabot/go_modules/github.com/prometheus/exporter-toolkit-0.10.0
Bump github.com/prometheus/exporter-toolkit from 0.9.1 to 0.10.0
2023-08-10 13:42:40 -04:00
dependabot[bot]
e61b719e3b
Bump github.com/prometheus/exporter-toolkit from 0.9.1 to 0.10.0
Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/prometheus/exporter-toolkit/releases)
- [Changelog](https://github.com/prometheus/exporter-toolkit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prometheus/exporter-toolkit/compare/v0.9.1...v0.10.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/exporter-toolkit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-10 17:40:11 +00:00
David Randall
ef4fc654b4
Merge pull request #124 from prometheus-community/dependabot/go_modules/github.com/prometheus/common-0.44.0
Bump github.com/prometheus/common from 0.42.0 to 0.44.0
2023-08-10 13:32:59 -04:00
David Randall
8331d7f6a9
Merge pull request #137 from tekert/remove_duplicate2
Remove duplicate smartctl_device_status metric
2023-08-10 13:25:23 -04:00
David Randall
e5bf7aa1b2
Merge pull request #138 from tekert/fix_data_written_ssd
Fix reported Data bytes Read/Written on SSDs
2023-08-10 11:58:18 -04:00
David Randall
17207c7b4b
Merge pull request #141 from k0ste/help2
Added device name to logger rc code parser
2023-08-10 08:47:22 -04:00
David Randall
a03bac1f1d
Merge pull request #140 from Knalltuete5000/device_rescan
Add background scanning for devices
2023-08-10 08:44:42 -04:00
Niklas Schwarz
6f41855c36 Add background scanning for devices
Add a background routine to rescan in a specified interval for devices

Signed-off-by: Niklas Schwarz <schwarz.niklas@hotmail.de>
2023-08-10 12:10:39 +02:00
David Randall
6448d79458
Merge pull request #131 from jthiltges/pr/21upd
Critical metrics for SCSI disks added, rebased
2023-08-09 13:50:34 -04:00
Konstantin Shalygin
75ab833fd0
Added device name to logger rc code parser
Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
2023-08-08 12:42:50 +03:00
tekert
d7fb89ee2c Forgot cleaning the non used metric.
smartctl_device_status is not mined anymore,
smartctl_device_smart_status replaces it.

Signed-off-by: tekert <tekert@gmail.com>
2023-07-29 13:13:33 -03:00
tekert
9698c581b3 Remove duplicate fixes #136
Signed-off-by: tekert <tekert@gmail.com>
2023-07-29 13:13:33 -03:00
tekert
c2e9d33118 Fix reported Data bytes Read/Written on SSDs
This value is reported in thousands (i.e., a value of 1 corresponds to 1000 units of 512 bytes written) and is rounded up.
	 When the LBA size is a value other than 512 bytes, the controller shall convert the amount of data written to 512 byte units.

Current code is using 1024 instead of 1000.

Signed-off-by: tekert <tekert@gmail.com>
2023-07-25 09:30:29 -03:00
Nazar Mokrynskyi
9566595104
Example of running with Docker
Signed-off-by: Nazar Mokrynskyi <nazar@mokrynskyi.com>
2023-07-07 21:25:06 +03:00
John Thiltges
b333d3f2f0 Include SCSI error counters in smartctl JSON output
Signed-off-by: John Thiltges <jthiltges2@unl.edu>
2023-06-29 15:34:57 -05:00
John Thiltges
179f37f05d Set SCSI disk metrics to GaugeValue
Signed-off-by: John Thiltges <jthiltges2@unl.edu>
2023-06-29 15:34:57 -05:00
Denys Lemeshko
637ad4223b Critical metrics for SCSI disks added
Signed-off-by: Denys Lemeshko <denys.lemeshko@pm.bet>
2023-06-29 14:50:45 -05:00
Niklas Schwarz
d26c3a82ea Add counter for the number of devices configured or dynamically discovered
Signed-off-by: Niklas Schwarz <schwarz.niklas@hotmail.de>
2023-06-28 11:40:41 +02:00
prombot
771039baaf Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-06-27 17:51:55 +00:00
Ben Kochie
895bf1eeb3
Merge pull request #126 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2023-06-19 10:47:23 +02:00
prombot
7af12a210f Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-06-18 17:52:13 +00:00
dependabot[bot]
72b25c569e
Bump github.com/prometheus/common from 0.42.0 to 0.44.0
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.42.0 to 0.44.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.42.0...v0.44.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 15:58:23 +00:00
Ben Kochie
50ac65eeba
Merge pull request #117 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2023-04-14 07:31:45 +02:00
prombot
93c2d8b40b Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-04-13 17:50:49 +00:00
Ben Kochie
4ca8e0df6e
Merge pull request #115 from prometheus-community/superq/toolkit
Update build
2023-04-12 19:53:11 +02:00
SuperQ
5bd7420ca8
Update build
* Update Go to 1.20.
* Update CI orb.
* Update golangci-lint.
* Update Go modules.
* Use new landing page function.

Signed-off-by: SuperQ <superq@gmail.com>
2023-04-12 09:36:11 +02:00
Ben Kochie
0a97a63773
Merge pull request #104 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2023-04-12 09:27:40 +02:00
Conrad Hoffmann
03d3c8c42a Update LICENSE
All source files have headers designating them as Apache-2.0-licensed.
The `LICENSE` file however contains the text of the LGPL 3. This causes
e.g. Github to declare the project as being LGPL licensed and also
causes problems for packagers who need to figure out the project's
license.

Since the `LICENSE` file seems to be a remnant of a distant past, update
it to contain the Apache license, which seems to be what the project is
intended to be licensed under.

Signed-off-by: Conrad Hoffmann <ch@bitfehler.net>
2023-03-03 10:01:24 +01:00
Ben Kochie
7d206388fb
Merge pull request #109 from hansmi/typo1
Fix typo in "smarctl"
2023-02-14 11:41:18 +01:00
Michael Hanselmann
c3600bef43 Fix typo in "smarctl"
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-01-31 13:35:51 +01:00
prombot
f2c980c515 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-12-22 17:50:15 +00:00
Ben Kochie
d5aa2289fe
Merge pull request #103 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2022-12-14 19:16:36 +01:00
prombot
5302f44234 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-12-14 17:49:59 +00:00
Ben Kochie
2df95c8071
Merge pull request #99 from prometheus-community/superq/filter
Add device filtering
2022-12-09 22:04:04 +01:00
SuperQ
fff5f67ae5
Add device filtering
* Add device include/exclude filters for the automatic scanning.
* Refactor scanning to not scan if devices are manually specified.
* Don't try and filter manually specified devices.

Signed-off-by: SuperQ <superq@gmail.com>
2022-12-09 21:12:08 +01:00
dependabot[bot]
6c965f1462
Bump github.com/tidwall/gjson from 1.14.3 to 1.14.4 (#102)
Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson) from 1.14.3 to 1.14.4.
- [Release notes](https://github.com/tidwall/gjson/releases)
- [Commits](https://github.com/tidwall/gjson/compare/v1.14.3...v1.14.4)

---
updated-dependencies:
- dependency-name: github.com/tidwall/gjson
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-08 16:00:23 +01:00
dependabot[bot]
10c5141131
Bump github.com/prometheus/client_golang from 1.13.1 to 1.14.0 (#100)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.13.1...v1.14.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-08 15:48:57 +01:00
dependabot[bot]
682fa7759a
Bump github.com/prometheus/exporter-toolkit from 0.8.1 to 0.8.2 (#101)
Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/prometheus/exporter-toolkit/releases)
- [Changelog](https://github.com/prometheus/exporter-toolkit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prometheus/exporter-toolkit/compare/v0.8.1...v0.8.2)

---
updated-dependencies:
- dependency-name: github.com/prometheus/exporter-toolkit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-08 15:48:32 +01:00
Ben Kochie
a58c632ea8
Merge pull request #96 from prometheus-community/superq/0.9.1
Release v0.9.1
2022-11-06 22:44:55 +01:00
SuperQ
4829a8861f
Release v0.9.1
* [BUGFIX] Fix runtime error: index out of range in mineVersion #93
* [BUGFIX] Fix race condition with maps and goroutines #94

Signed-off-by: SuperQ <superq@gmail.com>
2022-11-06 12:42:41 +01:00
Ben Kochie
61e28093f6
Merge pull request #93 from lahwaacz/master
Fix runtime error: index out of range in mineVersion
2022-11-06 12:20:27 +01:00
Jakub Klinkovský
a35f67bb0f Avoid running mineVersion when the SMARTctlInfo struct is not ready
Signed-off-by: Jakub Klinkovský <j.l.k@gmx.com>
2022-11-06 11:56:43 +01:00
Jakub Klinkovský
6e2143ca62 Remove useless error message
All errors are already logged from the called functions: readSMARTctl,
resultCodeIsOk, jsonIsOk. Logging twice due to the same error is useless
and the "smartctl returned bad data for device" message is confusing
since that condition may happen when a device is in a low-power mode.

Signed-off-by: Jakub Klinkovský <j.l.k@gmx.com>
2022-11-06 11:56:41 +01:00
Ben Kochie
97947b0e27
Merge pull request #94 from NiceGuyIT/issue-23
Fixes #23: Race condition with maps and goroutines
2022-11-06 11:38:21 +01:00
David Randall
18b5b8d57e Fixes #23: Race condition with maps and goroutines
Signed-off-by: David Randall <David@NiceGuyIT.biz>
2022-11-05 08:55:14 -04:00
Ben Kochie
9bc77c579d
Merge pull request #90 from DaAwesomeP/DaAwesomeP-update-exporter-toolkit-v0.8.1
Update to exporter-toolkit v0.8.1
2022-10-23 11:44:36 +01:00
Perry Naseck
a972874397
update to exporter-toolkit v0.8.1
Signed-off-by: Perry Naseck <git@perrynaseck.com>
2022-10-22 14:00:37 -04:00