title='Health',
unit='short',
datasource='$datasource',
- gridPosition={ h: 4, w: 4, x: 0, y: 1 }
+ gridPosition={ h: 4, w: 4, x: 0, y: 1 },
+ reducerFunction='last',
+ noValue='N/A',
)
.addTarget($.addTargetSchema(
'max(ceph_hardware_health)',
{ type: 'value', options: { '0': { color: 'green', index: 0, text: 'OK' } } },
{ type: 'range', options: { from: 1, to: 999, result: { color: 'semi-dark-red', index: 1, text: 'NOT OK' } } },
],
+ noValue: 'N/A',
thresholds: {
mode: 'absolute',
steps: [{ color: 'green' }, { color: 'red', value: 1 }],
title='Hosts',
unit='short',
datasource='$datasource',
- gridPosition={ h: 4, w: 2, x: 0, y: 5 }
+ gridPosition={ h: 4, w: 2, x: 0, y: 5 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'count(count by(hostname) (ceph_hardware_health))',
legendFormat='Hosts'
title='Drives',
unit='short',
datasource='$datasource',
- gridPosition={ h: 4, w: 2, x: 2, y: 5 }
+ gridPosition={ h: 4, w: 2, x: 2, y: 5 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'count(ceph_hardware_storage_capacity_bytes)',
legendFormat='Drives'
title='Power',
unit='short',
datasource='$datasource',
- gridPosition={ h: 3, w: 2, x: 0, y: 2 }
+ gridPosition={ h: 3, w: 2, x: 0, y: 2 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'max(ceph_hardware_health{hostname=~"$hostname",category="power"})',
legendFormat='Power'
{ type: 'value', options: { '0': { color: 'green', index: 0, text: 'OK' } } },
{ type: 'range', options: { from: 1, to: 9999, result: { color: 'red', index: 1, text: 'NOT OK' } } },
],
+ noValue: 'N/A',
thresholds: { mode: 'absolute', steps: [{ color: 'green' }, { color: 'red', value: 1 }] },
},
},
title='MB Temperature (max)',
unit='celsius',
datasource='$datasource',
- gridPosition={ h: 4, w: 3, x: 2, y: 2 }
+ gridPosition={ h: 4, w: 3, x: 2, y: 2 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'max(ceph_hardware_temperature_celsius{hostname=~"$hostname", sensor_name=~".*MB_TEMP.*"})',
legendFormat='Motherboard'
title='CPU Temperature',
unit='celsius',
datasource='$datasource',
- gridPosition={ h: 4, w: 3, x: 5, y: 2 }
+ gridPosition={ h: 4, w: 3, x: 5, y: 2 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'avg(ceph_hardware_temperature_celsius{hostname=~"$hostname", sensor_name=~".*CPU_TEMP"})',
legendFormat='CPU'
title='DIMM Temperature (max)',
unit='celsius',
datasource='$datasource',
- gridPosition={ h: 4, w: 3, x: 8, y: 2 }
+ gridPosition={ h: 4, w: 3, x: 8, y: 2 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'max(ceph_hardware_temperature_celsius{hostname=~"$hostname", sensor_name=~".*DIMM.*_TEMP"})',
legendFormat='DIMM'
title='PSU Fans',
unit='short',
datasource='$datasource',
- gridPosition={ h: 4, w: 3, x: 11, y: 2 }
+ gridPosition={ h: 4, w: 3, x: 11, y: 2 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'count(ceph_hardware_fan_rpm{hostname=~"$hostname", fan_name=~"PSU.*"})',
legendFormat='PSU Fans'
title='AVG PSU Temperature',
unit='celsius',
datasource='$datasource',
- gridPosition={ h: 4, w: 3, x: 14, y: 2 }
+ gridPosition={ h: 4, w: 3, x: 14, y: 2 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'avg(ceph_hardware_temperature_celsius{hostname=~"$hostname", sensor_name=~"PSU.*_TEMP.*"})',
legendFormat='PSU'
title='NVMe Drives',
unit='short',
datasource='$datasource',
- gridPosition={ h: 4, w: 3, x: 17, y: 2 }
+ gridPosition={ h: 4, w: 3, x: 17, y: 2 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'count(ceph_hardware_storage_capacity_bytes{hostname=~"$hostname", protocol="NVMe"})',
legendFormat='NVMe'
title='NVMe Temperature (max)',
unit='celsius',
datasource='$datasource',
- gridPosition={ h: 4, w: 3, x: 20, y: 2 }
+ gridPosition={ h: 4, w: 3, x: 20, y: 2 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'max(ceph_hardware_temperature_celsius{hostname=~"$hostname", sensor_name=~"NVME.*"})',
legendFormat='NVMe'
title='Network',
unit='short',
datasource='$datasource',
- gridPosition={ h: 3, w: 2, x: 0, y: 5 }
+ gridPosition={ h: 3, w: 2, x: 0, y: 5 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'max(ceph_hardware_health{hostname=~"$hostname",category="network"})',
legendFormat='Network'
{ type: 'value', options: { '0': { color: 'green', index: 0, text: 'OK' } } },
{ type: 'range', options: { from: 1, to: 9999, result: { color: 'red', index: 1, text: 'NOT OK' } } },
],
+ noValue: 'N/A',
thresholds: { mode: 'absolute', steps: [{ color: 'green' }, { color: 'red', value: 1 }] },
},
},
title='Cooling',
unit='short',
datasource='$datasource',
- gridPosition={ h: 3, w: 2, x: 0, y: 8 }
+ gridPosition={ h: 3, w: 2, x: 0, y: 8 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'max(ceph_hardware_health{hostname=~"$hostname",category="fans"})',
legendFormat='Cooling'
{ type: 'value', options: { '0': { color: 'green', index: 0, text: 'OK' } } },
{ type: 'range', options: { from: 1, to: 9999, result: { color: 'red', index: 1, text: 'NOT OK' } } },
],
+ noValue: 'N/A',
thresholds: { mode: 'absolute', steps: [{ color: 'green' }, { color: 'red', value: 1 }] },
},
},
title='Drives',
unit='short',
datasource='$datasource',
- gridPosition={ h: 3, w: 2, x: 0, y: 11 }
+ gridPosition={ h: 3, w: 2, x: 0, y: 11 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'max(ceph_hardware_health{hostname=~"$hostname",category="storage"})',
legendFormat='Drives'
{ type: 'value', options: { '0': { color: 'green', index: 0, text: 'OK' } } },
{ type: 'range', options: { from: 1, to: 9999, result: { color: 'red', index: 1, text: 'NOT OK' } } },
],
+ noValue: 'N/A',
thresholds: { mode: 'absolute', steps: [{ color: 'green' }, { color: 'red', value: 1 }] },
},
},
title='FAN: $fan_speeds (RPM)',
unit='locale',
datasource='$datasource',
- gridPosition={ h: 5, w: 4, x: 0, y: 3 }
+ gridPosition={ h: 5, w: 4, x: 0, y: 3 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'ceph_hardware_fan_rpm{hostname=~"$hostname",fan_name=~"$fan_speeds"}',
legendFormat='{{fan_name}}'
title='PSU1 Fan Speed (RPM)',
unit='locale',
datasource='$datasource',
- gridPosition={ h: 5, w: 4, x: 0, y: 8 }
+ gridPosition={ h: 5, w: 4, x: 0, y: 8 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'ceph_hardware_fan_rpm{hostname=~"$hostname",fan_name=~"PSU1.*"}',
legendFormat='{{fan_name}}'
title='PSU2 Fan Speed (RPM)',
unit='locale',
datasource='$datasource',
- gridPosition={ h: 5, w: 4, x: 4, y: 8 }
+ gridPosition={ h: 5, w: 4, x: 4, y: 8 },
+ reducerFunction='last',
+ noValue='N/A',
).addTarget($.addTargetSchema(
'ceph_hardware_fan_rpm{hostname=~"$hostname",fan_name=~"PSU2.*"}',
legendFormat='{{fan_name}}'