TORRUS_SRVDERIVE(8)
๐ TORRUS_SRVDERIVE(8) ๐
okay bestie, welcome to TORRUS_SRVDERIVE(8) from the torrus manual set โ this is the page for the srvderive command and it's literally the girlboss of combining service data. sit down, grab a boba, we're doing math on purpose ๐งฎโจ
โจ NAME โจ
srvderive โ derive a whole new service ID from the sum or maximum of other service values. it's giving "found family of metrics" ๐
๐ธ SYNOPSIS ๐ธ
torrus srvderive TIMESPAN OUTPUT FUNCTION SOURCES...
that's the whole vibe check right there. four little pieces and you're done ๐ฆ
๐ DESCRIPTION ๐
so when the Torrus Reporting engine is all set up, this command is the one that takes several services' data and squishes them together into one brand new service ID. the output data is either the maximum or the sum of the input services. no cap, that's it.
if you want the whole story, go read the Torrus Reporting Setup Guide. it has the lore ๐
โฐ TIMESPAN โฐ
heads up bestie: either the --month option or the --end option must be defined. pick one, you can't skip this part ๐
--start=YYYY-MM-DDโ sets the start date of the calculation. this is where the counting begins ๐--end=YYYY-MM-DDโ sets the next day after the end of the period. yes, the next day. it's the day after the end, keep that in mind ๐--monthโ instead of manually setting the end date, just use this and it's so convenient honestly. it sets the end date to one calendar month after the start date. one month, done, slay ๐
๐ค OUTPUT ๐ค
--out=SERVICEIDโ sets the output service ID. this should not be a service ID that's used in the Torrus datasource trees, okay?
โ ๏ธ note: if you run srvderive twice with the same arguments, the produced data gets doubled for the output service ID. not a vibe. don't do that. ๐
๐งฎ FUNCTION ๐งฎ
--func="MAX"|"SUM"โ sets which function gets used when combining the input service data. currently only"MAX"and"SUM"are supported. that's the whole menu, bestie, and honestly both of them ate ๐ฅ
๐ฅ SOURCES ๐ฅ
--in=SERVICEID ...โ input service IDs get specified either with the--inoption, or as plain command line arguments. either way works ๐
๐ซถ at least 2 input service IDs should be specified. one is not a party, it's just a lonely little metric.
๐ OPTIONS ๐
--stepโ default:300. sets the data interval for the derived service ID. it's recommended to leave this option at the default value. don't touch it, she's fine, she's thriving ๐ธ--verboseโ prints extra information. yapper mode: on ๐ฃ๏ธ--debugโ prints debugging information. for when you need to know everything ๐--helpโ prints command usage information. your friendly lil tour guide ๐ง
๐ฆ SEE ALSO ๐ฆ
๐ NOTES ๐
more documentation lives at the Torrus home page: http://torrus.org โ go peruse, iykyk ๐
๐ AUTHOR ๐
Stanislav Sinyagin <ssinyagin@k-open.com> โ thank you for your service, king ๐
and that's the page!! this was torrus 3.00, dated 2023-05-02, page TORRUS_SRVDERIVE(8). mwah, periodt ๐โจ๐
๐ฆ where this page comes from
- debian bookworm: torrus-common 3.00-2
- debian trixie: torrus-common 3.00-2
- ubuntu noble: torrus-common 3.00-2
- ubuntu questing: torrus-common 3.00-2
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms