Commit graph

263 commits

Author SHA1 Message Date
PrometheusBot
b06982fe08
Update common Prometheus files (#203)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-02-28 09:25:18 +01:00
David Randall
58a7eb8756
Merge pull request #200 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2024-02-06 21:10:25 -05:00
prombot
14860d44fe Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-02-06 17:50:25 +00:00
David Randall
a1a414cad4
Merge pull request #199 from prometheus-community/dependabot/go_modules/github.com/prometheus/common-0.46.0
Bump github.com/prometheus/common from 0.45.0 to 0.46.0
2024-02-01 21:02:55 -05:00
dependabot[bot]
1921e16582
Bump github.com/prometheus/common from 0.45.0 to 0.46.0
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.45.0 to 0.46.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.45.0...v0.46.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>
2024-02-01 15:15:12 +00:00
Ben Kochie
77e6b075fa
Update json reading logging (#198)
Update the smartctl command reading and parsing of json logging to make
for easier debugging of slow devices by adding a duration to the debug
logging.

For https://github.com/prometheus-community/smartctl_exporter/issues/197

Signed-off-by: SuperQ <superq@gmail.com>
2024-01-25 17:52:05 +01:00
David Randall
844af85ca8
Merge pull request #194 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2024-01-08 12:59:25 -05:00
prombot
8e1ebdd668 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2024-01-08 17:48:59 +00:00
David Randall
4554e35937
Merge pull request #191 from prometheus-community/dependabot/go_modules/github.com/prometheus/client_golang-1.18.0
Bump github.com/prometheus/client_golang from 1.17.0 to 1.18.0
2024-01-01 19:59:43 -05:00
dependabot[bot]
fbc5d901a6
Bump github.com/prometheus/client_golang from 1.17.0 to 1.18.0
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.17.0 to 1.18.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.17.0...v1.18.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>
2024-01-02 00:52:41 +00:00
David Randall
18957fb64d
Merge pull request #192 from prometheus-community/dependabot/go_modules/github.com/prometheus/exporter-toolkit-0.11.0
Bump github.com/prometheus/exporter-toolkit from 0.10.0 to 0.11.0
2024-01-01 19:51:52 -05:00
dependabot[bot]
054d273466
Bump github.com/prometheus/exporter-toolkit from 0.10.0 to 0.11.0
Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.10.0 to 0.11.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.10.0...v0.11.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>
2024-01-01 15:02:23 +00:00
Konstantin Shalygin
3b2c702f42
Added more testdata json's
Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
2023-12-31 13:24:13 +03:00
Konstantin Shalygin
3a49418e45
collect-smartctl-json: shell fixes for script (#188)
* Remove `"`, `(` and `)` from file names (see #188)
* Added regex ignore for some devices, fixes:

```
Collecting data for '/dev/sda'...       Saving to sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB240G8-sda.json
Collecting data for '/dev/sdb'...       Saving to sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB240G8-sdb.json
Collecting data for '/dev/bus/0'...jq: error (at <stdin>:34): null (null) cannot be matched, as it is not a string
        Saving to null-null--0.json
Collecting data for '/dev/bus/0'...jq: error (at <stdin>:34): null (null) cannot be matched, as it is not a string
        Saving to null-null--0.json
Collecting data for '/dev/nvme0'...     Saving to nvme-null-HUSMR7632BHP301-nvme0.json
Collecting data for '/dev/nvme1'...     Saving to nvme-null-HUSMR7632BHP301-nvme1.json
Collecting data for '/dev/nvme2'...     Saving to nvme-null-HUSMR7632BHP301-nvme2.json
Collecting data for '/dev/nvme3'...     Saving to nvme-null-HUSMR7632BHP301-nvme3.json
Collecting data for '/dev/nvme4'...     Saving to nvme-null-HUSMR7632BHP301-nvme4.json
```

The `/dev/bus/*` is some pseudo-device comes with Broadcom driver, after fix:

```
Collecting data for '/dev/sda'...       Saving to sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB240G8-sda.json
Collecting data for '/dev/sdb'...       Saving to sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB240G8-sdb.json
Collecting data for '/dev/nvme0'...     Saving to nvme-null-HUSMR7632BHP301-nvme0.json
Collecting data for '/dev/nvme1'...     Saving to nvme-null-HUSMR7632BHP301-nvme1.json
Collecting data for '/dev/nvme2'...     Saving to nvme-null-HUSMR7632BHP301-nvme2.json
Collecting data for '/dev/nvme3'...     Saving to nvme-null-HUSMR7632BHP301-nvme3.json
Collecting data for '/dev/nvme4'...     Saving to nvme-null-HUSMR7632BHP301-nvme4.json
```

Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
2023-12-30 12:55:13 +03:00
PrometheusBot
3463e4fcd5
Update common Prometheus files (#187)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-12-18 21:25:12 +01:00
David Randall
6a5d100c1b
Merge pull request #186 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2023-12-11 14:34:17 -05:00
prombot
6d4a5c103b Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-12-11 17:49:15 +00:00
PrometheusBot
95a0afb6f0
Update common Prometheus files (#183)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-12-08 10:59:47 +01:00
David Randall
1660b84e6e
Merge pull request #182 from prometheus-community/dependabot/go_modules/github.com/alecthomas/kingpin/v2-2.4.0
Bump github.com/alecthomas/kingpin/v2 from 2.3.2 to 2.4.0
2023-12-02 09:10:38 -05:00
dependabot[bot]
2f90c835b4
Bump github.com/alecthomas/kingpin/v2 from 2.3.2 to 2.4.0
Bumps [github.com/alecthomas/kingpin/v2](https://github.com/alecthomas/kingpin) from 2.3.2 to 2.4.0.
- [Release notes](https://github.com/alecthomas/kingpin/releases)
- [Commits](https://github.com/alecthomas/kingpin/compare/v2.3.2...v2.4.0)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/kingpin/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-01 15:05:53 +00:00
David Randall
e82d21fa27 Fix: Issue 157: Document how to troubleshoot data inconsistencies
Signed-off-by: David Randall <David@NiceGuyIT.biz>
2023-11-21 20:11:57 -05:00
David Randall
1f56220657
Merge pull request #168 from robbat2/rjohnson/scsi-support
feat: Better SCSI/SAS support, and removing confused metrics
2023-11-20 18:33:13 -05:00
Konstantin Shalygin
9db6746825
collect-smartctl-json: shell fixes for script (#178)
Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
2023-11-20 16:33:28 +01:00
David Randall
3c27af18ec
Merge pull request #177 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2023-11-18 20:07:12 -05:00
prombot
45564fd9f4 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-11-18 17:49:29 +00:00
David Randall
6acadc64fb
Merge pull request #176 from NiceGuyIT/smartctl-data
Chg: Impvoe the JSON collection script; now requires jq/yq
2023-11-17 05:00:46 -05:00
David Randall
8193e8eb3b Chg: Impvoe the JSON collection script; now requires jq/yq
Signed-off-by: David Randall <David@NiceGuyIT.biz>
2023-11-15 20:43:43 -05:00
David Randall
172bfb3ef4
Merge pull request #175 from robbat2/testdata
feat: add JSON testing data
2023-11-15 18:42:14 -05:00
Robin H. Johnson
a1c3448357
feat: add JSON testing data
- Add README about test data.
- Add script to redact sensitive fields.
- Add JSON testing data collected from many systems, with redaction of
  sensitive fields.

The initial corpus includes:
- NVME drives
- SAS drives - HDD only, no SSD
- SCSI drives - HDD only, no SSD
- SATA drives - SSD & HDD

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2023-11-07 22:58:28 -08:00
David Randall
536ca0c8b8
Merge pull request #174 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2023-11-03 15:37:41 -04:00
prombot
306aea77a8 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-11-03 17:51:24 +00:00
David Randall
2ca3bd9fbd
Merge pull request #173 from prometheus-community/dependabot/go_modules/github.com/prometheus/common-0.45.0
Bump github.com/prometheus/common from 0.44.0 to 0.45.0
2023-11-01 14:22:10 -04:00
dependabot[bot]
2661bacff5
Bump github.com/prometheus/common from 0.44.0 to 0.45.0
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.44.0...v0.45.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-11-01 15:50:32 +00:00
Ben Kochie
eb781ad2b5
Update maintainers (#171)
* Update maintainers

Add @bitfehler to maintainers list.

---------

Signed-off-by: SuperQ <superq@gmail.com>
Signed-off-by: Ben Kochie <superq@gmail.com>
Co-authored-by: Conrad Hoffmann <1226676+bitfehler@users.noreply.github.com>
2023-10-26 10:38:59 +02:00
David Randall
2ba3056f22
Merge pull request #170 from bitfehler/master
Remove obsolte ebuild
2023-10-25 20:24:19 -04:00
Conrad Hoffmann
98436820b0 Remove obsolte ebuild
It's old and unmaintained, and there is an official one now:

c18ea60fb1

Signed-off-by: Conrad Hoffmann <ch@bitfehler.net>
2023-10-25 15:20:13 +02:00
David Randall
25f25810fc
Merge pull request #159 from NiceGuyIT/issue-158
Fix #158: collect_fake_json.sh
2023-10-25 04:37:22 -04:00
David Randall
d20ab77aaf
Merge pull request #169 from prometheus-community/superq/update_build
Update build
2023-10-25 04:36:40 -04:00
SuperQ
842a810c2b
Update build
* Update Go to 1.21.
* Remove uncessary build flag overrides.
* Update Go modules.
* Add maintainers file.
* Update ebuild file license.

Signed-off-by: SuperQ <superq@gmail.com>
2023-10-25 10:30:01 +02:00
Горлов Максим
be7e4fabf0
Merge pull request #113 from bitfehler/master
Update LICENSE
2023-10-25 09:03:17 +03:00
Robin H. Johnson
9113c6cf0f feat: Better SCSI/SAS support
Fix the following metrics that were exported as zero because the
exporter did not know how to read them for SCSI devices:
- smartctl_device_bytes_read
- smartctl_device_bytes_written
- smartctl_device_power_cycle_count

New metrics:
- smartctl_read_errors_corrected_by_eccdelayed
- smartctl_read_errors_corrected_by_eccfast
- smartctl_write_errors_corrected_by_eccdelayed
- smartctl_write_errors_corrected_by_eccfast

Fix labels:
- smartctl_device{model_name} is now populated for SCSI/SAS, using
  scsi_model_name.

New labels:
- smartctl_device{} gains:
  scsi_product,scsi_revision,scsi_vendor,scsi_version

Signed-off-by: Robin H. Johnson <rjohnson@coreweave.com>
2023-10-16 10:15:57 -07:00
Robin H. Johnson
d90594ac23 fix: Remove confused metrics
The exporter presently has metrics that are nonsense for a given type of
drive, and remain at zero due to their defaults.

Change the behavior to NOT emit a metric if the underlying JSON field is
not present.

Future related work may include parsing the corresponding metrics for
SATA/SAS SSDs (e.g. `smartctl_device_percentage_used` could derived from
`SSD_Life_Left` on some drives).

Metrics no longer exported for the wrong type of drive:
- `smartctl_device_nvme_capacity_bytes` (NVME-specific)
- `smartctl_device_available_spare` (NVME-specific, ATA possible)
- `smartctl_device_available_spare_threshold` (NVME-specific, ATA
  possible)
- `smartctl_device_critical_warning` (NVME-specific, ATA possible)
- `smartctl_device_interface_speed` (ATA-specific)
- `smartctl_device_media_errors` (NVME-specific, ATA possible)
- `smartctl_device_num_err_log_entries` (NVME-specific, SCSI uses
  distinct metrics, ATA possible)
- `smartctl_device_nvme_capacity_bytes` (NVME-specific)
- `smartctl_device_percentage_used` (NVME-specific, ATA possible)

Signed-off-by: Robin H. Johnson <rjohnson@coreweave.com>
2023-10-16 10:12:40 -07:00
David Randall
558a760c14
Merge pull request #167 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2023-10-02 19:24:23 -04:00
prombot
3f7a16c11b Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-10-02 17:50:16 +00:00
David Randall
5d1212cc9a
Merge pull request #166 from prometheus-community/dependabot/go_modules/github.com/tidwall/gjson-1.17.0
Bump github.com/tidwall/gjson from 1.16.0 to 1.17.0
2023-10-01 18:58:55 -04:00
David Randall
10a9654740
Merge pull request #165 from prometheus-community/dependabot/go_modules/github.com/prometheus/client_golang-1.17.0
Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0
2023-10-01 18:57:53 -04:00
dependabot[bot]
3f98f3a9c4
Bump github.com/tidwall/gjson from 1.16.0 to 1.17.0
Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson) from 1.16.0 to 1.17.0.
- [Commits](https://github.com/tidwall/gjson/compare/v1.16.0...v1.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-01 15:39:23 +00:00
dependabot[bot]
6a97ceeee2
Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.16.0 to 1.17.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.16.0...v1.17.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-10-01 15:39:16 +00:00
David Randall
23f00b2bcd
Merge pull request #164 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2023-09-14 17:53:16 -04:00
prombot
516ae545ba Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-09-14 17:50:36 +00:00