[Meta] Internationalization support for Prometheus
As part of GitLab's push to localize the product, each area is being asked to begin work in their areas to support internationalization. The main issue is here: https://gitlab.com/gitlab-org/gitlab-ce/issues/4012
For Prometheus, we have three main workflows today in GitLab itself:
- Service Configuration (https://gitlab.com/gitlab-org/gitlab-ce/issues/33338)
- Environment Monitoring
- Merge Request widget (https://gitlab.com/gitlab-org/gitlab-ce/issues/44218)
We also provide server monitoring metrics through a collection of exporters:
- Third party: Node Exporter, Postgres Exporter, Redis Exporter, Kubernetes
- GitLab provided: GitLab Monitor
For the 9.4 release, we should target a workflow to add support, and continue to roll out support across future releases.
- For 9.4, I would suggest we target the Service Configuration screen first.
- I imagine the MR widget will get translated as part of that effort, and only translating our widget does not make sense.
- We will also need to consider how to translate the Environment Dashboard if strings come from the library YML file.
- Should we modify the file format now to support internationalization?
- What about having an english string in the file, as well as a "string id". The string identifier can then be used to look up a localized string somewhere else if needed. This would also provide a fall back if a particular string was not translated for a particular language, or someone manually entered the file but did not bother to localize.
With regards to Prometheus and it's exporters, what is possible to internationalize here? It looks like the file format is plain english.
Edited by Joshua Lambert