This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Metrics library or tool for nrf5?

While working on some problems, I often find it useful to increment a counter at a line of code, and occasionally log the counter for developer debugging. I'd love to have some tool/library to log a set of counters for monitoring purposes, and be able to log occasionally, or export over bluetooth. Is there some tool that already exists that does this?

As a comparison, i'm thinking of Prometheus (https://prometheus.io/), but maybe more pared down for nrf5 systems and embedded use.

Parents
  • Hi Michael

    I can't think of any such library or tool, no. Are you thinking of the code running on the nRF52 only, or would you also need something running on the PC/phone side to process the output?

    Probably the easiest way to do something like this is to output the counter state using the NRF_LOG library when needed, and then check the log output on the PC using a terminal. 

    Best regards
    Torbjørn

Reply
  • Hi Michael

    I can't think of any such library or tool, no. Are you thinking of the code running on the nRF52 only, or would you also need something running on the PC/phone side to process the output?

    Probably the easiest way to do something like this is to output the counter state using the NRF_LOG library when needed, and then check the log output on the PC using a terminal. 

    Best regards
    Torbjørn

Children
Related