Added metrics registry and two global records counters (served and generated)