How did GitLab track and create this diagram? Is there a service that does it automatically?

See https://app.diagrams.net/ -- you'll recognize the style.