Add a Prometheus version detection helper

Summary

Add Prometheus version detection helper

Proposal

Add a Prometheus version detection helper to assist in the Prometheus 2.0 upgrade

Version 1.x:

  • Detect the file #{node['gitlab']['prometheus']['home']}/data/heads.db
  • Detect the version in the output of prometheus --version

Version 2.x:

  • Detect the directory #{node['gitlab']['prometheus']['home']}/data/wal/
  • Detect the version in the output of prometheus --version

References

Related: #2940 (closed)

Assignee Loading
Time tracking Loading