Skip to content
Snippets Groups Projects
Commit bdde7bbd authored by Sara Stentvedt Luggenes's avatar Sara Stentvedt Luggenes
Browse files

merge

parent 394b9dbd
No related branches found
No related tags found
No related merge requests found
......@@ -41,14 +41,63 @@ FLOATING_IP_ID: 5337587f-47b4-4d98-922e-981ed2231c28
<img src=./bilder/week12_task1.PNG>
<img src=./bilder/week12_task1.2.PNG>
<<<<<<< HEAD
1) By analysing the images above, there is a large range in how many users the game is hosting throughout the given timeperiod. It is a range of 44425 users, from most to least users at a given time, where the maximum value is 44876 and the minimum value is 451. The value 451 is probably indicating some sort of downtime for the game, while the value 44876 tells us how many users the servers should be able to host at any given time, since this is the extreme end of the scale. By looking at the 5% graph to the right, we can see that the 95 percentile of the users are playing the game while there is at least 42654 other users gaming at the time. This is when there is a extreme amount of users gaming at the same time, and there is approxomately 42654-40433=2221 users more than the 90 percentile group.
1) By analysing the images above, there is a large range in how many users the game is hosting throughout the given timeperiod. It is a range of 44425 users, from most to least users at a given time, where the maximum value is 44876 and the minimum value is 451. The value 451 is probably indicating some sort of downtime for the game, while the value 44876 tells us how many users the servers should be able to host at any given time, since this is the extreme end of the scale. By looking at the 5% graph to the right, we can see that the 95 percentile of the users are playing the game while there is at least 42654 other users gaming at the time. This is when there is a extreme amount of users gaming at the same time, and there is approxomately 42654 - 40433 = 2221 users more than the 90 percentile group.
OBS!!! HUSK Å LEGG INN BILDER OVER EXCEL SHEET
2) By looking at the descriptive results in the images above, we can see that the popularity of the game probably have increased over the timeperiod. The mean amount of users at the beginning is 13139, and the mean amount of users at the end is 18822. The range, minimum value and maximum value also confirms this hypothesis.
3) Based on the data given in the begin.dta and end.dta, we can see that
=======
1) By analysing the images above, there is a large range in how many users the game is hosting throughout the given timeperiod. It is a range of 44425 users, from most to least users at a given time, where the maximum value is 44876 and the minimum value is 451. The value 451 is probably indicating some sort of downtime for the game, while the value 44876 tells us how many users the servers should be able to host at any given time, since this is the extreme end of the scale.
>>>>>>> 217cae92ca1bbcc15df8c4272db4f815797c9b49
3) Based on the data given in the begin.dta and end.dta, the popularity of the game have increased with approxomately 18822 - 13139 = 5683 users over the timeperiod.
## Task 2
We run the following command and get the following output in JSON format:
```
curl -s -g 'http://admin:admin@192.168.132.61:9090/api/v1/query?query=last_download_time{name="AETA"}'`
{"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"last_download_time","instance":"192.168.129.65:9001","job":"mongodb","name":"AETA","tags":"dcsg2003_23"},"value":[1679759424.672,"11.698165893554688"]}]}}
```
We install the package jq to be able to make the output above look nicer:
```
apt-get install -y jq
```
The we run the command again, and pipeline it to the jq package. The output is as follows:
```
curl -s -g 'http://admin:admin@192.168.132.61:9090/api/v1/query?query=last_download_time{name="AETA"}' | jq
# Output:
{
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "last_download_time",
"instance": "192.168.129.65:9001",
"job": "mongodb",
"name": "AETA",
"tags": "dcsg2003_23"
},
"value": [
1679759761.415,
"9.776767015457153"
]
}
]
}
}
```
To get the download time in a single integer, we run the command again as follows:
```
curl -s -g 'http://admin:admin@192.168.132.61:9090/api/v1/query?query=last_download_time{name="AETA"}' | jq -r '.data.result[].value[1] '
# OUTPUT
9.776767015457153
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment