Recently, I posted a tutorial on how I monitored my Raspberry-pi based "pihole" server using New Relic and Flex.
Like many tutorials, what you read there is the end result, a narrative of the perfect execution of a well-conceived idea where all steps and variables are foreseen beforehand.