Adding upload statistics and alerts for both app binary uploads towards the CF API and OS uploads - #1885
Adding upload statistics and alerts for both app binary uploads towards the CF API and OS uploads#1885karrgov wants to merge 4 commits into
Conversation
…ds the CF API and OS uploads LMCROSSITXSADEPLOY-3054
LMCROSSITXSADEPLOY-3054
6b53ead to
20645c9
Compare
LMCROSSITXSADEPLOY-3054
| requires software.amazon.awssdk.retries.api; | ||
| requires static java.compiler; | ||
| requires static org.immutables.value; | ||
| requires io.netty.handler; |
There was a problem hiding this comment.
If this is needed, sort it alphabetically
| } | ||
|
|
||
| public long maxDurationMs() { | ||
| return maxDuration.getAndSet(0); |
There was a problem hiding this comment.
why is this set to 0 after the value is read?
There was a problem hiding this comment.
This is on purpose as well, since Dynatrave is configured to poll each one minute which means that the poll happens at a random moment during these 60 seconds, which I would say that it is not fully correct, since a better way would be the way I have done it now - I am saving the maximum value per every 60 second poll and that is the value that dynatrace then displays on the charts. The idea is that in this one minute there might be a problematic deployment with lets say an abnormally high upload time and then after a couple of seconds there might be another totally normal one and the value would be overwritten and then if the Dynatrace poll is right after that - the chart would show that everything is totally alright.
| } | ||
|
|
||
| public long timeoutsInWindow() { | ||
| return timeoutsInWindow.getAndSet(0); |
There was a problem hiding this comment.
same as the one above :D
| import java.util.concurrent.atomic.LongAdder; | ||
|
|
||
| @Named | ||
| public class UploadDurationTracker { |
There was a problem hiding this comment.
This class which dynatrace uses for monitoring is only in memory - per instance and the values will be zero after restart of instance of DS, LSS. This is expected right?
There was a problem hiding this comment.
Yes, I made it like that on purpose so we are better able to see when and if an instance has any problems and also we do not have to think and be responsible about the persistence part of the whole thing, since Dynatrace automatically saves the information on the charts, even after if lets say there have been lots of restarts. We would only have to change the timeframe and we will be able to see if and which metric exactly has abnormal values.
LMCROSSITXSADEPLOY-3054
|




Adding upload statistics and alerts for both app binary uploads towards the CF API and OS uploads
LMCROSSITXSADEPLOY-3054