Calculate prometheus disk space

Posted on Mon 01 August 2022 in Network • Tagged with pxe, howto, linux, notepad, work • 1 min read

Calculate

needed_disk_space = retention_time_seconds * ingested_samples_per_second * bytes_per_sample

Source

30 days (secs): 2592000
ingested_samples_per_second: rate(prometheus_tsdb_head_samples_appended_total[2h])
bytes_per_sample: rate(prometheus_tsdb_compaction_chunk_size_bytes_sum[2h]) / rate(prometheus_tsdb_compaction_chunk_samples_sum[2h])

PromQL

(( 30*24*60*60 ) * rate(prometheus_tsdb_head_samples_appended_total[2h]) * ( rate(prometheus_tsdb_compaction_chunk_size_bytes_sum[2h]) / rate(prometheus_tsdb_compaction_chunk_samples_sum[2h]))) / 1024 / 1024 / 1024

Enable PXE boot on Mellanox ConnectX

Posted on Fri 08 July 2022 in Network • Tagged with pxe, howto, linux, notepad, work • 1 min read

MFT Tool

https://www.mellanox.com/downloads/MFT/mft-4.20.1-14-x86_64-deb.tgz

MD5SUM: 097c0874bd33fbff2f7fd21699c843c5
SHA256: 4b1b4a8e2eba2369317c0e504ef09b1dc0c60119ddaead45fd26b0c36434635c
wget https://www.mellanox.com/downloads/MFT/mft-4.20.1-14-x86_64-deb.tgz
tar zxvf mft-4.20.1-14-x86_64-deb.tgz
mft-*-deb/install.sh

Enable UEFI and PXE boot

mst start
for card in $(ls …

Continue reading