Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Commit 0bec8ea

Browse files
authored
Merge pull request #31 from loafyloaf/metrics
Add metrics tracker
2 parents cb7ec95 + ed29d72 commit 0bec8ea

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,22 @@ To register the deployed rooms in the cluster, you will need to use the UI of yo
271271
* `kubectl delete pv local-volume-1`
272272
* `kubectl delete -f gameon-configmap.yaml`
273273

274+
# Privacy Notice
275+
276+
Sample Kubernetes Yaml file that includes this package may be configured to track deployments to [IBM Cloud](https://www.bluemix.net/) and other Kubernetes platforms. The following information is sent to a [Deployment Tracker](https://github.com/IBM/metrics-collector-service) service on each deployment:
277+
278+
* Kubernetes Cluster Provider(`IBM Cloud,Minikube,etc`)
279+
* Kubernetes Machine ID
280+
* Kubernetes Cluster ID (Only from IBM Cloud's cluster)
281+
* Kubernetes Customer ID (Only from IBM Cloud's cluster)
282+
* Environment variables in this Kubernetes Job.
283+
284+
This data is collected from the Kubernetes Job in the sample application's yaml file. This data is used by IBM to track metrics around deployments of sample applications to IBM Cloud to measure the usefulness of our examples so that we can continuously improve the content we offer to you. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.
285+
286+
## Disabling Deployment Tracking
287+
288+
Please comment out/remove the Metric Kubernetes Job portion at the end of the 'gameon-configmap.yaml' file.
289+
274290
## References
275291

276292
* [GameOn](https://gameontext.org) - The original game on app. The journey is based on [deploying GameOn using Docker](https://book.gameontext.org/walkthroughs/local-docker.html)

gameon-configmap.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,24 @@ data:
3535
A8_CONTROLLER_URL: http://controller:8080
3636
A8_CONTROLLER_POLL: 5s
3737
A8_CONTROLLER_POLL: 5s
38+
---
39+
apiVersion: batch/v1
40+
kind: Job
41+
metadata: {name: gameon-java-microservices-on-kubernetes-metrics}
42+
spec:
43+
template:
44+
metadata: {name: gameon-java-microservicesn-kubernetes-metrics}
45+
spec:
46+
containers:
47+
- env:
48+
- {name: config, value: '{"event_id": "web",
49+
"repository_id": "GameOn-Java-Microservices-on-Kubernetes",
50+
"target_services": [null], "target_runtimes":
51+
["Kubernetes Cluster"], "event_organizer":
52+
"dev-journeys"}'}
53+
- {name: language, value: 'java'}
54+
image: journeycode/kubernetes:latest
55+
name: gameon-java-microservices-on-kubernetes-metrics
56+
resources:
57+
limits: {cpu: 100m}
58+
restartPolicy: Never

0 commit comments

Comments
 (0)