Skip to content

Conversation

@tsullivan
Copy link
Member

@tsullivan tsullivan commented Jul 13, 2018

Depended on #20577
Part of #20393

  1. /api/_xpack/usage was added as a target for 6.4.0 but it will not be
    used. Instead, the /api/stats?extended=true response will include
    usage info on everything that gets registered with the usage service in
    /src/server/usage

  2. /api/_kibana/v1/stats is a GET API that was added in 6.2, during a point
    where we thought providing usage stats through a public API would be OK
    for capturing internally, with the benefit of having it be visible.

    However, we've pivoted away from that idea because it doesn't line up
    too well with the existing flow of data, where usage stats are combined
    with the "Kibana stats" such as process uptime and number of requests.
    We want to shift how we collect stats from Kibana, but it will be
    gradual. It might be a while before we have an architecture that makes
    sense for a standalone public API for the usage stats

    This endpoint was never documented, and isn't used anywhere in the code.
    It does incur a maintenance cost though.

    Therefore, instead of waiting for a next major version to remove this
    API, I'm removing it for 6.4. It will be marked in the release notes as
    a breaking change. Since it was never documented, it should not provide
    a problem.

Release notes: We removed a public HTTP API endpoint of /api/_kibana/v1/stats. This endpoint was meant for internal consumption only, but since it was public we're considering it a breaking change. The data provided by this endpoint is available as the usage field of a new /api/stats?extended=true. The new /api/stats endpoint is still meant for internal consumption, but we're going to keep working on improvements to it and it'll eventually be documented as an API we'll support publicly.

@tsullivan tsullivan force-pushed the usage/remove-xpack-usage-api branch 4 times, most recently from 5bb9f7a to 2f704b8 Compare July 18, 2018 20:47
/api/_xpack/usage was added as a target for 6.4.0 but it will not be
used. Instead, the /api/stats response will include usage info on
everything that gets registered with the usage service in
/src/server/usage

/api/_kibana/v1/stats is a GET API that was added in 6.2, during a point
where we thought providing usage stats through a public API would be OK
for capturing internally, with the benefit of having it be visible.

However, we've pivoted away from that idea because it doesn't line up
too well with the existing flow of data, where usage stats are combined
with the "Kibana stats" such as process uptime and number of requests.
We want to shift how we collect stats from Kibana, but it will be
gradual. It might be a while before we have an architecture that makes
sense for a standalone public API for the usage stats

This endpoint was never documented, and isn't used anywhere in the code.
It does incur a maintenance cost though.

Therefore, instead of waiting for a next major version to remove this
API, I'm removing it for 6.4. It will be marked in the release notes as
a breaking change. Since it was never documented, it should not provide
a problem.
@tsullivan tsullivan force-pushed the usage/remove-xpack-usage-api branch from 2f704b8 to 7d554c6 Compare July 19, 2018 00:46
@elastic elastic deleted a comment from elasticmachine Jul 19, 2018
@elastic elastic deleted a comment from elasticmachine Jul 19, 2018
@elastic elastic deleted a comment from elasticmachine Jul 19, 2018
@elastic elastic deleted a comment from elasticmachine Jul 19, 2018
@elastic elastic deleted a comment from elasticmachine Jul 19, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tsullivan tsullivan merged commit 80833cd into elastic:master Jul 19, 2018
@tsullivan tsullivan deleted the usage/remove-xpack-usage-api branch July 19, 2018 20:46
tsullivan added a commit to tsullivan/kibana that referenced this pull request Jul 19, 2018
/api/_xpack/usage was added as a target for 6.4.0 but it will not be
used. Instead, the /api/stats response will include usage info on
everything that gets registered with the usage service in
/src/server/usage

/api/_kibana/v1/stats is a GET API that was added in 6.2, during a point
where we thought providing usage stats through a public API would be OK
for capturing internally, with the benefit of having it be visible.

However, we've pivoted away from that idea because it doesn't line up
too well with the existing flow of data, where usage stats are combined
with the "Kibana stats" such as process uptime and number of requests.
We want to shift how we collect stats from Kibana, but it will be
gradual. It might be a while before we have an architecture that makes
sense for a standalone public API for the usage stats

This endpoint was never documented, and isn't used anywhere in the code.
It does incur a maintenance cost though.

Therefore, instead of waiting for a next major version to remove this
API, I'm removing it for 6.4. It will be marked in the release notes as
a breaking change. Since it was never documented, it should not provide
a problem.
tsullivan added a commit that referenced this pull request Jul 20, 2018
/api/_xpack/usage was added as a target for 6.4.0 but it will not be
used. Instead, the /api/stats response will include usage info on
everything that gets registered with the usage service in
/src/server/usage

/api/_kibana/v1/stats is a GET API that was added in 6.2, during a point
where we thought providing usage stats through a public API would be OK
for capturing internally, with the benefit of having it be visible.

However, we've pivoted away from that idea because it doesn't line up
too well with the existing flow of data, where usage stats are combined
with the "Kibana stats" such as process uptime and number of requests.
We want to shift how we collect stats from Kibana, but it will be
gradual. It might be a while before we have an architecture that makes
sense for a standalone public API for the usage stats

This endpoint was never documented, and isn't used anywhere in the code.
It does incur a maintenance cost though.

Therefore, instead of waiting for a next major version to remove this
API, I'm removing it for 6.4. It will be marked in the release notes as
a breaking change. Since it was never documented, it should not provide
a problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants