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

[APM] Make UI indices space aware (support for spaces) #49647

Closed
sorenlouv opened this issue Oct 29, 2019 · 10 comments · Fixed by #126176
Closed

[APM] Make UI indices space aware (support for spaces) #49647

sorenlouv opened this issue Oct 29, 2019 · 10 comments · Fixed by #126176
Assignees
Labels
apm:test-plan-done Pull request that was successfully tested during the test plan enhancement New value added to drive a business result Team:APM All issues that need APM UI Team support v8.2.0

Comments

@sorenlouv
Copy link
Member

sorenlouv commented Oct 29, 2019

It should be possible to limit which services are displayed in a given space. This will help users organize services into separate spaces.

This could be accomplished by letting users select which services are part of a given space. If no services are selected all services will be displayed.

Related
https://discuss.elastic.co/t/define-apm-permission-for-services/276663/2

image

@sorenlouv sorenlouv added [zube]: Inbox discuss Team:APM All issues that need APM UI Team support labels Oct 29, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@sorenlouv sorenlouv changed the title [APM] Add support for Spaces [APM] Add support for Kibana Spaces Nov 21, 2019
@sorenlouv sorenlouv added [zube]: Backlog enhancement New value added to drive a business result and removed discuss labels Jun 11, 2020
@sorenlouv sorenlouv changed the title [APM] Add support for Kibana Spaces [APM] UI Indicies should be space aware Jun 11, 2020
@sorenlouv sorenlouv added v7.11.0 and removed v7.10.0 good first issue low hanging fruit labels Jul 13, 2020
@dgieselaar dgieselaar changed the title [APM] UI Indicies should be space aware [APM] UI Indices should be space aware Aug 10, 2020
@sorenlouv sorenlouv removed the v7.11.0 label Sep 29, 2020
@sorenlouv
Copy link
Member Author

The ability to customize apm indices will be removed starting in 8.0.

@vxavictor513
Copy link

The ability to customize apm indices will be removed starting in 8.0.

@sqren: Is there any particular reason?

@simitt
Copy link
Contributor

simitt commented Mar 8, 2021

@sqren there will still be the option to set a custom namespace, leading to dedicated data streams.
The datastreams are built "%{[data_stream.type]}-%{[data_stream.dataset]}-%{[data_stream.namespace]}" where data_stream.namespace will be configurable. Not certain if that impacts the decision to close this issue.

@sorenlouv
Copy link
Member Author

sorenlouv commented Mar 8, 2021

Good point @simitt . I think I'll re-open this issue but rephrase it to be about supporting spaces without mentioning index patterns.

@sorenlouv sorenlouv reopened this Mar 8, 2021
@sorenlouv sorenlouv changed the title [APM] UI Indices should be space aware [APM] Add support for spaces Mar 8, 2021
@dgieselaar
Copy link
Member

Allowing the user to set the index target per space, could give them the option of using filtered aliases to restrict access to specific services or an environment in a space. Data streams don't support aliases yet but it is a work-in-progress, and support for filters could be added if needed. Example:

POST /_aliases
{
  "actions": [
    {
      "add": {
        "indices": [
          "apm-*"
        ],
        "alias": "production-services-apm",
        "filter": {
          "term": { "service.environment": "production" }
        }
      }
    }
  ]
}

or:

POST /_aliases
{
  "actions": [
    {
      "add": {
        "indices": [
          "logs-apm*",
          "traces-apm*",
          "metrics-apm*"
        ],
        "alias": "checkout-service-apm",
        "filter": {
          "term": { "data_stream.dataset": "checkout-service" }
        }
      }
    }
  ]
}

@DanOptimus
Copy link

I work with a rather large deployment of Elastic APM at a Fortune 100 company, presently running 7.15.1, where we have 130+ applications sending data to our elastic APM cluster. We uniquely send each app teams data to its own index using elastic, using logstash. At present page load times take 30 to 60 seconds on the APM dashboards. When I set this kibana space setting to filter by index (or index pattern), the UI goes to nearly sub-second response time. The problem is that when I make this setting it wipes out all other kibana spaces, we prefer to roll out each application to their own kibana space, with their own index filter or index pattern to alleviate this problem, but we really need this fixed to vastly improve our overall performance. Lastly, I just wanted to indicate, I really prefer this setting be externalized via an API, so that we can set this using automated kibana spaces creation. Thanks Dan

@romanlum
Copy link

romanlum commented Feb 8, 2022

Any progress here?
We also need this feature for managing microservices in different spaces using their own index.
#77882 would be a good start to merge :)

@sorenlouv
Copy link
Member Author

Yes, we are actively looking into this. I can't give any timeline but safe to say that we haven't forgotten about it :)

@christianhuening
Copy link

We would also be very interested in this as a customer :)

@sorenlouv sorenlouv changed the title [APM] Add support for spaces [APM] Make UI indices space aware (support for spaces) Feb 14, 2022
@cauemarcondes cauemarcondes self-assigned this Feb 16, 2022
@cauemarcondes cauemarcondes added the apm:test-plan-done Pull request that was successfully tested during the test plan label Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:test-plan-done Pull request that was successfully tested during the test plan enhancement New value added to drive a business result Team:APM All issues that need APM UI Team support v8.2.0
Projects
None yet