summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/nvme/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/nvme/testdata')
-rw-r--r--src/go/collectors/go.d.plugin/modules/nvme/testdata/config.json5
-rw-r--r--src/go/collectors/go.d.plugin/modules/nvme/testdata/config.yaml3
-rw-r--r--src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list-empty.json4
-rw-r--r--src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list.json30
-rw-r--r--src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-float.json24
-rw-r--r--src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-string.json24
-rw-r--r--src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log.json24
7 files changed, 114 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.json
new file mode 100644
index 000000000..095713193
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.json
@@ -0,0 +1,5 @@
+{
+ "update_every": 123,
+ "timeout": 123.123,
+ "binary_path": "ok"
+}
diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.yaml b/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.yaml
new file mode 100644
index 000000000..baf3bcd0b
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.yaml
@@ -0,0 +1,3 @@
+update_every: 123
+timeout: 123.123
+binary_path: "ok"
diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list-empty.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list-empty.json
new file mode 100644
index 000000000..e8da2407f
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list-empty.json
@@ -0,0 +1,4 @@
+{
+ "Devices": [
+ ]
+} \ No newline at end of file
diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list.json
new file mode 100644
index 000000000..6bf159c4f
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list.json
@@ -0,0 +1,30 @@
+{
+ "Devices": [
+ {
+ "NameSpace": 1,
+ "DevicePath": "/dev/nvme0n1",
+ "Firmware": "SU6SM001",
+ "Index": 0,
+ "ModelNumber": "Seagate FireCuda 530 ZP4000GM30023",
+ "ProductName": "Non-Volatile memory controller: Seagate Technology PLC Device 0x5018",
+ "SerialNumber": "7VS00KNX",
+ "UsedBytes": 4000787030016,
+ "MaximumLBA": 7814037168,
+ "PhysicalSize": 4000787030016,
+ "SectorSize": 512
+ },
+ {
+ "NameSpace": 1,
+ "DevicePath": "/dev/nvme1n1",
+ "Firmware": "SU6SM001",
+ "Index": 1,
+ "ModelNumber": "Seagate FireCuda 530 ZP4000GM30023",
+ "ProductName": "Non-Volatile memory controller: Seagate Technology PLC Device 0x5018",
+ "SerialNumber": "7VS00J76",
+ "UsedBytes": 4000787030016,
+ "MaximumLBA": 7814037168,
+ "PhysicalSize": 4000787030016,
+ "SectorSize": 512
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-float.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-float.json
new file mode 100644
index 000000000..f63dd9772
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-float.json
@@ -0,0 +1,24 @@
+{
+ "critical_warning": 0,
+ "temperature": 310.0,
+ "avail_spare": 100.0,
+ "spare_thresh": 5.0,
+ "percent_used": 2.0,
+ "endurance_grp_critical_warning_summary": 0,
+ "data_units_read": 9898518.0,
+ "data_units_written": 136157684.0,
+ "host_read_commands": 313528805.0,
+ "host_write_commands": 1928062610.0,
+ "controller_busy_time": 8284.0,
+ "power_cycles": 64.0,
+ "power_on_hours": 4974.0,
+ "unsafe_shutdowns": 39.0,
+ "media_errors": 0,
+ "num_err_log_entries": 110.0,
+ "warning_temp_time": 0,
+ "critical_comp_time": 0,
+ "thm_temp1_trans_count": 0,
+ "thm_temp2_trans_count": 0,
+ "thm_temp1_total_time": 0,
+ "thm_temp2_total_time": 0
+}
diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-string.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-string.json
new file mode 100644
index 000000000..f582e7485
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-string.json
@@ -0,0 +1,24 @@
+{
+ "critical_warning": "0",
+ "temperature": "310",
+ "avail_spare": "100",
+ "spare_thresh": "5",
+ "percent_used": "2",
+ "endurance_grp_critical_warning_summary": "0",
+ "data_units_read": "9898518",
+ "data_units_written": "136157684",
+ "host_read_commands": "313528805",
+ "host_write_commands": "1928062610",
+ "controller_busy_time": "8284",
+ "power_cycles": "64",
+ "power_on_hours": "4974",
+ "unsafe_shutdowns": "39",
+ "media_errors": "0",
+ "num_err_log_entries": "110",
+ "warning_temp_time": "0",
+ "critical_comp_time": "0",
+ "thm_temp1_trans_count": "0",
+ "thm_temp2_trans_count": "0",
+ "thm_temp1_total_time": "0",
+ "thm_temp2_total_time": "0"
+}
diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log.json
new file mode 100644
index 000000000..cbd0e4c7d
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log.json
@@ -0,0 +1,24 @@
+{
+ "critical_warning": 0,
+ "temperature": 310,
+ "avail_spare": 100,
+ "spare_thresh": 5,
+ "percent_used": 2,
+ "endurance_grp_critical_warning_summary": 0,
+ "data_units_read": 9898518,
+ "data_units_written": 136157684,
+ "host_read_commands": 313528805,
+ "host_write_commands": 1928062610,
+ "controller_busy_time": 8284,
+ "power_cycles": 64,
+ "power_on_hours": 4974,
+ "unsafe_shutdowns": 39,
+ "media_errors": 0,
+ "num_err_log_entries": 110,
+ "warning_temp_time": 0,
+ "critical_comp_time": 0,
+ "thm_temp1_trans_count": 0,
+ "thm_temp2_trans_count": 0,
+ "thm_temp1_total_time": 0,
+ "thm_temp2_total_time": 0
+}