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

Commit

Permalink
Merge pull request #31 from loafyloaf/metrics
Browse files Browse the repository at this point in the history
Add metrics tracker
  • Loading branch information
loafyloaf authored Dec 5, 2017
2 parents cb7ec95 + ed29d72 commit 0bec8ea
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,22 @@ To register the deployed rooms in the cluster, you will need to use the UI of yo
* `kubectl delete pv local-volume-1`
* `kubectl delete -f gameon-configmap.yaml`

# Privacy Notice

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:

* Kubernetes Cluster Provider(`IBM Cloud,Minikube,etc`)
* Kubernetes Machine ID
* Kubernetes Cluster ID (Only from IBM Cloud's cluster)
* Kubernetes Customer ID (Only from IBM Cloud's cluster)
* Environment variables in this Kubernetes Job.

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.

## Disabling Deployment Tracking

Please comment out/remove the Metric Kubernetes Job portion at the end of the 'gameon-configmap.yaml' file.

## References

* [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)
Expand Down
21 changes: 21 additions & 0 deletions gameon-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,24 @@ data:
A8_CONTROLLER_URL: http://controller:8080
A8_CONTROLLER_POLL: 5s
A8_CONTROLLER_POLL: 5s
---
apiVersion: batch/v1
kind: Job
metadata: {name: gameon-java-microservices-on-kubernetes-metrics}
spec:
template:
metadata: {name: gameon-java-microservicesn-kubernetes-metrics}
spec:
containers:
- env:
- {name: config, value: '{"event_id": "web",
"repository_id": "GameOn-Java-Microservices-on-Kubernetes",
"target_services": [null], "target_runtimes":
["Kubernetes Cluster"], "event_organizer":
"dev-journeys"}'}
- {name: language, value: 'java'}
image: journeycode/kubernetes:latest
name: gameon-java-microservices-on-kubernetes-metrics
resources:
limits: {cpu: 100m}
restartPolicy: Never

0 comments on commit 0bec8ea

Please sign in to comment.