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

Remove NodePrometheusRequestBuilder class #99

Closed
lukas-vlcek opened this issue Sep 6, 2022 · 0 comments · Fixed by #100
Closed

Remove NodePrometheusRequestBuilder class #99

lukas-vlcek opened this issue Sep 6, 2022 · 0 comments · Fixed by #100

Comments

@lukas-vlcek
Copy link
Collaborator

The NodePrometheusRequestBuilder class is no longer needed because the method that was returning instance of this class has been removed from upstream classes (see below). Now, it is just a leftover from past refactoring and can be removed.


  1. First the method Action.newRequestBuilder(client) was removed from Elasticsearch (see: Core: Remove RequestBuilder from Action elastic/elasticsearch#30966, specifically here elastic/elasticsearch@46e8d97#diff-34311f69b4f5ea90a3e88cabb8d3167f6c0651e5172f906750efc8a8276e4320L37).

  2. Then it was removed from the Elasticsearch Prometheus exporter NodePrometheusMetricsAction class (see: vvanholl/elasticsearch-prometheus-exporter@deb496d#diff-d4bd29c3b4f015bf843e60db39c318a2560c6d9384942bbb271ed662ecf0d507L41).

lukas-vlcek added a commit to lukas-vlcek/prometheus-exporter-plugin-for-opensearch that referenced this issue Sep 6, 2022
This class is no longer needed because of refactoring that happened in the upstream in the past.

Closes: Aiven-Open#99

---

Some details:

1. First the method `Action.newRequestBuilder(client)` was removed from Elasticsearch (see: elastic/elasticsearch#30966, specifically here elastic/elasticsearch@46e8d97#diff-34311f69b4f5ea90a3e88cabb8d3167f6c0651e5172f906750efc8a8276e4320L37).

2. Then it was removed from the Elasticsearch Prometheus exporter NodePrometheusMetricsAction class (see: vvanholl/elasticsearch-prometheus-exporter@deb496d#diff-d4bd29c3b4f015bf843e60db39c318a2560c6d9384942bbb271ed662ecf0d507L41).

Signed-off-by: Lukáš Vlček <lukas.vlcek@aiven.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant