You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b115471
Browse filesBrowse the repository at this point in the historyBrowse files
Robert Bailey
authored
Update helm configuration to allow annotations to be added to service (agones-dev#2134)
Adds helm configuration options and documentation to enable stackdriver on GKE clusters using workload identity.
Copy file name to clipboardExpand all lines: site/content/en/docs/Guides/metrics.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,22 +206,36 @@ Open a web browser to [http://localhost:3000](http://localhost:3000), you should
206
206
207
207
### Stackdriver installation
208
208
209
-
In order to use [Stackdriver monitoring](https://app.google.stackdriver.com) you should[enable Stackdriver Monitoring API](https://cloud.google.com/monitoring/api/enable-api)on Google Cloud Console. You need to grant all the necessary permissions to the users (see [Access Control Guide](https://cloud.google.com/monitoring/access-control)). Stackdriver exporter uses a strategy called Application Default Credentials (ADC) to find your application's credentials. Details could be found here[Setting Up Authentication for Server to Server Production Applications](https://cloud.google.com/docs/authentication/production).
209
+
In order to use [Stackdriver monitoring](https://app.google.stackdriver.com) you must[enable the Monitoring API](https://cloud.google.com/monitoring/api/enable-api)in the Google Cloud Console. You need to grant all the necessary permissions to the users (see [Access Control Guide](https://cloud.google.com/monitoring/access-control)). Stackdriver exporter uses a strategy called Application Default Credentials (ADC) to find your application's credentials. Details can be found in[Setting Up Authentication for Server to Server Production Applications](https://cloud.google.com/docs/authentication/production).
210
210
211
-
Note that Stackdriver monitoring is enabled by default on GKE clusters, however you can follow this [guide](https://cloud.google.com/kubernetes-engine/docs/how-to/monitoring#enabling_stackdriver_monitoring) if it was disabled on your GKE cluster.
211
+
{{< alert title="Note" color="info">}}
212
+
Cloud Operations for GKE (including stackdriver monitoring) is enabled by default on GKE clusters, however you can follow this [guide](https://cloud.google.com/stackdriver/docs/solutions/gke/installing#upgrade-instructions) if it is currently disabled in your GKE cluster.
213
+
{{< /alert >}}
212
214
213
-
Default metrics exporter is Prometheus. If you are using the [Helm installation]({{< ref "/docs/Installation/Install Agones/helm.md" >}}), you can install or upgrade Agones to use Stackdriver, using the following chart parameters:
215
+
The default metrics exporter installed with Agones is Prometheus. If you are using the [Helm installation]({{< ref "/docs/Installation/Install Agones/helm.md" >}}), you can install or upgrade Agones to use Stackdriver, using the following chart parameters:
With this configuration only Stackdriver exporter would be used instead of Prometheus exporter.
219
221
220
-
Create a Fleet or a Gameserver in order to check that connection with stackdriver API is configured properly and so that you will be able to see the metrics data.
222
+
{{% feature publishVersion="1.16.0" %}}
223
+
#### Using Stackdriver with Workload Identity
224
+
225
+
If you would like to enable stackdriver in conjunction with [Workload Identity](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity), there are a few extra steps you need to follow:
226
+
227
+
1. When setting up the Google service account following the instructions for [Authenticating to Google Cloud](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity#authenticating_to), create two IAM policy bindings, one for `serviceAccount:PROJECT_ID.svc.id.goog[agones-system/agones-controller]` and one for `serviceAccount:PROJECT_ID.svc.id.goog[agones-system/agones-allocator]`.
228
+
229
+
1. Pass parameters to helm when installing Agones to add annotations to the `agones-controller` and `agones-allocator` Kubernetes service accounts:
Visit [Stackdriver monitoring](https://app.google.stackdriver.com) website, select your project, or choose `Create a new Workspace`and select GCP project where your cluster resides. In [Stackdriver metrics explorer](https://cloud.google.com/monitoring/charts/metrics-explorer)you should be able to find new metrics with prefix `agones/` after a couple of minutes. Choose the metrics you are interested in and add to a single or separate graphs. Select `Kubernetes Container` resource type for each of them. You can create multiple graphs, save them into your dashboard and use various aggregation parameters and reducers for each graph.
236
+
To verify that metrics are being sent to Stackdriver, create a Fleet or a Gameserver and look for the metrics to show up in the Stackdriver dashboard. Navigate to the [Metrics explorer](https://console.cloud.google.com/monitoring/metrics-explorer)and search for metrics with the prefix `agones/`. Select a metric and look for data to be plotted in the graph to the right.
223
237
224
-
Example of the dashboard appearance is provided below:
Copy file name to clipboardExpand all lines: site/content/en/docs/Installation/Install Agones/helm.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,8 +94,8 @@ The following tables lists the configurable parameters of the Agones chart and t
94
94
|`agones.metrics.stackdriverEnabled`| Enables Stackdriver exporter of controller metrics |`false`|
95
95
|`agones.metrics.stackdriverProjectID`| This overrides the default gcp project id for use with stackdriver |\`\`|
96
96
|`agones.metrics.stackdriverLabels`| A set of default labels to add to all stackdriver metrics generated in form of key value pair (`key=value,key2=value2`). By default metadata are automatically added using Kubernetes API and GCP metadata enpoint. |\`\`|
97
-
|`agones.serviceaccount.controller`| Service account name for the controller|`agones-controller`|
98
-
|`agones.serviceaccount.sdk`| Service account name for the sdk|`agones-sdk`|
97
+
|`agones.serviceaccount.controller`| Service account name for the controller. **Note**: Will be replaced with `agones.serviceaccount.controller.name` in Agones 1.16|`agones-controller`|
98
+
|`agones.serviceaccount.sdk`| Service account name for the sdk. **Note**: Will be replaced with `agones.serviceaccount.sdk.name` in Agones 1.16|`agones-sdk`|
99
99
|`agones.image.registry`| Global image registry for all images |`gcr.io/agones-images`|
100
100
|`agones.image.tag`| Global image tag for all images |`{{< release-version >}}`|
101
101
|`agones.image.controller.name`| Image name for the controller |`agones-controller`|
@@ -184,6 +184,11 @@ The following tables lists the configurable parameters of the Agones chart and t
0 commit comments