Usually you can get the url for the badges from the respective services.
For example the url of the pipeline batch for your repo would be:
https://gitlab.com/username/userproject/badges/master/pipeline.svg)
For adding it to the README you would use following markdown code:
[](https://gitlab.com/user/userproject/commits/master)
Note: This badge is the pipeline badge for the master branch. For a pipeline badge of a different branch you'd simply replace master
with the respective branch name.
File from the screenshot: https://gitlab.com/gitlab-org/gitlab-ee/blob/master/README.md