Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Prometheus library dependencies #182

Merged
merged 2 commits into from Jan 14, 2018
Merged

Upgrade Prometheus library dependencies #182

merged 2 commits into from Jan 14, 2018

Conversation

mattbostock
Copy link
Owner

Update to the latest version of the Prometheus libraries and make
necessary changes to satisfy API changes:

  • Use NewMergeSeriesSet() instead of DeduplicateSeriesSet(), which was
    removed in prometheus/prometheus@bb724f1.

  • Explicitly specify the options for the PromQL engine to ensure that
    PromQL metrics are registered following the change in
    prometheus/prometheus@f8fccc7. The options used here are copied
    from the defaults.

Prometheus vendors its own dependencies but also provides library
packages, meaning that we have to manage its dependencies as transient
dependencies. Using the dep tool, we cannot manage transient
dependencies using regular constraints so I had to pin the versions in
Gopkg.toml using overrides.

See:
https://github.com/golang/dep/blob/master/docs/FAQ.md#how-do-i-constrain-a-transitive-dependencys-version
golang/dep#999 (comment)
golang/dep#302

Update to the latest version of the Prometheus libraries and make
necessary changes to satisfy API changes:

- Use NewMergeSeriesSet() instead of DeduplicateSeriesSet(), which was
  removed in prometheus/prometheus@bb724f1bef6a.

- Explicitly specify the options for the PromQL engine to ensure that
  PromQL metrics are registered following the change in
  prometheus/prometheus@f8fccc73d8705. The options used here are copied
  from the defaults.

Prometheus vendors its own dependencies but also provides library
packages, meaning that we have to manage its dependencies as transient
dependencies. Using the `dep` tool, we cannot manage transient
dependencies using regular constraints so I had to pin the versions in
`Gopkg.toml` using overrides.

See:
https://github.com/golang/dep/blob/master/docs/FAQ.md#how-do-i-constrain-a-transitive-dependencys-version
golang/dep#999 (comment)
golang/dep#302
Pass a logger to the PromQL library so that we can see its logs.

Prior to 1fe1279 we were using the default options for PromQL, which
meant that a no-op logger was being used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant