Expose versions of deployed GitLab components in our monitoring
We export our version data to prometheus and have these versions presented at the https://dashboards.gitlab.net/d/CRNfDC7mk/gitlab-omnibus-versions?refresh=5m&orgId=1 . Currently this is generated by a cron job that will just parse the apt output.
With the run towards #161 (closed), it becomes more important to have a specific version of each of the component we ship. Tagged version of the package only is not enough, we need specific sha's of each of the components.
This data already exists in the package so we should change the way we parse this data.
At /opt/gitlab/version-manifest.json, each of the libraries we ship has a name/sha/other info that we can leverage for our purposes.
"gitlab-rails": {
"locked_version": "02f36f4f2856130101bb21c4584ee0ff89469079",
"locked_source": {
"git": "git@dev.gitlab.org:gitlab/gitlabhq.git"
},
"source_type": "git",
"described_version": "master",
"license": "MIT"
}