Anyway I can configure SLO on specific key request, instead of that service as-a-whole?
Best Regards,
Wai Keat
Anyway I can configure SLO on specific key request, instead of that service as-a-whole?
Best Regards,
Wai Keat
You can add filter to the metric to to pick the key request you are looking for.
The filter will look something like:
builtin:apps.other.keyUserActions.count.osAndApdex:filter(eq(dt.entity.device_application_method,âDEVICE_APPLICATION_METHOD-B60A00B9A3831556â)):splitBy(dt.entity.device_application_method):sum:auto
More information about filter transformation can be found in documentation
HTH
Yos
Hi Wai Keat,
Yes, this is possible. It doesnât even need to be a request marked as key request. It just needs to be a metric.
For this you can create a calculated service metric (from the service, click on the chart option for the request, then âcreate metricâ from the multi-dimensional analysis view).
Thereâs actually a walkthrough that makes this use case as an example in the âGetting Started with SLOs in Dynatraceâ performance clinic webinar. You may watch this explanation either within Dynatrace University or on Youtube.
Starts from 26min mark if youâre in a hurry
Hope that helps.
Andrew
The only concern with creating metrics is that customers do care about their DDUâs license that creation of metrics do consume, while creating key user action and using built in metric is free of DDU charge.
Yos
To add further to this,
Calculated service metrics can be created using conditionals on request name or request type (among others). A calculated service metric can then be used as a single metric or included as the numerator/denominator for SLO creation.
This needs to be better documented as is standard SLO/SLI practice. Weâve managed to get it working but found it was incompatible with the âSLO filterâ when using calc service metrics. We also couldnât filter by status code without a calc service metric:
e.g. Latency SLI
<custom success metrics/filter service, endpoint, availability, and latency>
/
builtin:service.keyRequest.count.server:filter(eq(âdt.entity.service_methodâ,âSERVICE_METHOD-XXXâ))
**EDIT**
e.g. Availability SLI
builtin:service.keyRequest.errors.server.successCount
/
builtin:service.keyRequest.count.server
SLO filter: type(âSERVICE_METHODâ) AND entityId(âSERVICE_METHOD-XXXâ)
cc/ @wolfgang_heider
Thanks a lot for the feedback!
I already triggered to improve docs with your help/feedback/examples
and we think about how to make the filtering more self-explanatory.
The SLO filter would apply for both metrics and for the custom calc metric, there is only the dimension of the service.
This will change with a new query syntax for metrics (coming along with calculated metrics), which will also be part of the SLO setup then. There it becomes more clear, what is possible (to filter) on the individual metric queries and makes the overall setup easier.
Hi @The_AM
The new features is not the same as the one used in the University, we lost a lot of parametersâŚ
Can we have details about how we can create the same SLOs shown in the videos with the actual features?
Thanks
Hi, how can I build SLO Latency using built in metric? , we have already achieved the availability, but we canât find the way to count the requests that a method responds in less than 5s.
If the video seems not quite up-to-date with current, I would suggest to review the documentation here: Service-Level Objectives Classic â Dynatrace Docs
Itâs often quicker for the Dynatrace docs team to update the online documentation, since review and re-recording of training videos takes longer and the SLO feature is still evolving and improving over time.
You will be looking for the metric(s) for Response Time. Please see the glossary on the definition here: Dynatrace glossary â Dynatrace Docs
Note that, usually in Dynatrace, when we use the term âlatencyâ we are specifically relating to a certain component of response time, such as network latency. Whereas overall service transaction time is response time.
Hi Wolfang.
Iâm with the same problem, with calculated metrics I could build latency SLO, but this generates licensing costs but with the builtin metrics I have not been able to do it, only for the availability SLOs by services and KeyRequest
Hello All,
Im searching for the same.
Building the SLO for Availability, Response time⌠for a specific Request without making KeyRequest and Without creating a calculated Metric.
Is it possible?
Thanks and good day.
HIi @Malaik ,
this is not possible. At least in current Dynatrace versions. SLOs work on metrics only. You wonât have the metric (Response time for example) for a single request unless you mark it as a key request or you create the calculated service metric.
Also, this should now be easier to implement as code, since there is now a key requests REST API for web and mobile apps.
For example: Web application configuration API - GET key user actions â Dynatrace Docs
Hi, Wolfang.
Iâm having problem with metrics for SLO calculation based on keyRequest usingentityId(âSERVICE_METHOD-XXXâ) change over time which causes the SLO to break, if I do it using entitySelector("type(service),entityName(~âcreateEvent~â) in the filter the problem of duplicate names is presented, and when trying to add in the entitySelector for example the controller does not bring data. This generates that when the METHOD_ID changes it is necessary to adjust the dashboard again and in some cases it does not work with that either.
I would appreciate if someone has had this problem and has managed to mitigate it somehow.
Thanks.
Hi @Kenny ,
if there is a change in the entityId identifier for a key request, then it is in fact a new key request. Unless there is an architectural change (host group has changed) or deployment change in the application, the entityId will not change.
Technically you should be able to enter entityselector using entityName and leveraging the relationships. For example:
type(service_method),entityName("/my/request/name"),fromRelationships.isServiceMethodOfService(entityId(SERVICE-5D1E8D73D43E6F7D))
This will return key requests which contain â/my/request/nameâ in the name and are on the service with the ID specified.
Anyway - I recommend finding out why your SERVICE_METHOD ID had changed. It should not.
Julius
Thanks @Julius_Loman .
It works for me for example for availability SLO as follows:
(100)*((builtin:service.keyRequest.errors.fivexx.successCount:filter(eq(eq(dt.entity.service_method, "SERVICE_METHOD-XXX")):splitBy())/
(builtin:service.keyRequest.count.server:filter(eq(dt.entity.service_method, "SERVICE_METHOD-XXX")):splitBy()))))
We are analyzing why we lose in some cases the SERVICE_METHOD_ID since they are not all, for the case of availability we only change the metric of good event by a calculated one and it also makes it perfect, we only have to determine the origin of the loss of KeyRequest
@Kenny hard to tell - most likely there has been a change in deployment and Dynatrace considers even the service as a different one. Iâd suggest to choose a long timeframe in the global time selector so it spans the time when the âoldâ keyrequest was present as well as the new one. Look at the process group. Iâd bet you will see two services with the same name.
Hi Julius.
Totally correct your observation, we will be following up on what produces the splitting of the microservice information.
Thank you very much for your support.
Kenny.