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
Specify the AWS Region where the resources will be deployed:
41
41
42
42
```bash
43
43
export TF_VAR_aws_region=xxx
44
44
```
45
45
46
-
### 3. Amazon EKS Cluster
46
+
####3. Amazon EKS Cluster
47
47
48
48
To run this example, you need to provide your EKS cluster name. If you don't
49
49
have a cluster ready, visit [this example](https://aws-observability.github.io/terraform-aws-observability-accelerator/helpers/new-eks-cluster/)
@@ -55,7 +55,7 @@ Specify your cluster name:
55
55
export TF_VAR_eks_cluster_id=xxx
56
56
```
57
57
58
-
### 4. Amazon Managed Service for Prometheus workspace (optional)
58
+
####4. Amazon Managed Service for Prometheus workspace (optional)
59
59
60
60
By default, we create an Amazon Managed Service for Prometheus workspace for you.
61
61
However, if you have an existing workspace you want to reuse, edit and run:
@@ -70,7 +70,7 @@ To create a workspace outside of Terraform's state, simply run:
70
70
aws amp create-workspace --alias observability-accelerator --query '.workspaceId' --output text
71
71
```
72
72
73
-
### 5. Amazon Managed Grafana workspace
73
+
####5. Amazon Managed Grafana workspace
74
74
75
75
To run this example you need an Amazon Managed Grafana workspace. If you have an existing workspace, create an environment variable as described below.
76
76
To create a new workspace, visit our Amazon Managed Grafana [documentation](https://docs.aws.amazon.com/grafana/latest/userguide/getting-started-with-AMG.html).
@@ -83,7 +83,7 @@ Make sure to provide the workspace with Amazon Managed Service for Prometheus re
83
83
export TF_VAR_managed_grafana_workspace_id=g-xxx
84
84
```
85
85
86
-
### 6. Grafana API Key
86
+
####6. Grafana API Key
87
87
88
88
Amazon Managed Grafana provides a control plane API for generating Grafana API keys.
89
89
As a security best practice, we will provide to Terraform a short lived API key to
@@ -105,7 +105,7 @@ terraform apply
105
105
106
106
## Visualization
107
107
108
-
### 1. Prometheus datasource on Grafana
108
+
####1. Prometheus datasource on Grafana
109
109
110
110
Make sure to open the link in the output. After a successful deployment, this will open
111
111
the Prometheus datasource configuration on Grafana.
@@ -115,7 +115,7 @@ Click `Save & test` and you should see a notification confirming that the Amazon
### 3. Amazon Managed Service for Prometheus rules and alerts
128
+
####3. Amazon Managed Service for Prometheus rules and alerts
129
129
130
130
Open the Amazon Managed Service for Prometheus console and view the details of your workspace. Under the `Rules management` tab, you should find new rules deployed.
Copy file name to clipboardExpand all lines: docs/eks/java.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ configuration options for Java based workloads on EKS.
11
11
12
12
## Setup
13
13
14
-
### 1. Add Java metrics, dashboards and alerts
14
+
####1. Add Java metrics, dashboards and alerts
15
15
16
16
From the [previous example's](https://aws-observability.github.io/terraform-aws-observability-accelerator/eks/) configuration,
17
17
simply enable the Java pattern's flag.
@@ -26,7 +26,7 @@ module "eks_monitoring" {
26
26
27
27
You can further customize the Java pattern by providing `java_config`[options](https://github.com/aws-observability/terraform-aws-observability-accelerator/blob/main/modules/eks-monitoring/README.md#input_java_config).
28
28
29
-
### 2. Grafana API key
29
+
####2. Grafana API key
30
30
31
31
Make sure to refresh your temporary Grafana API key
32
32
@@ -48,7 +48,7 @@ terraform apply
48
48
49
49
## Visualization
50
50
51
-
1. Grafana dashboards
51
+
#### 1. Grafana dashboards
52
52
53
53
Go to the Dashboards panel of your Grafana workspace. There will be a folder called `Observability Accelerator Dashboards`
54
54
@@ -58,7 +58,7 @@ Open the "Java/JMX" dashboard to view its visualization
2. Amazon Managed Service for Prometheus rules and alerts
61
+
#### 2. Amazon Managed Service for Prometheus rules and alerts
62
62
63
63
Open the Amazon Managed Service for Prometheus console and view the details of your workspace. Under the `Rules management` tab, you will find new rules deployed.
64
64
@@ -72,32 +72,37 @@ Open the Amazon Managed Service for Prometheus console and view the details of y
72
72
73
73
In this section we will reuse an example from the AWS OpenTelemetry collector [repository](https://github.com/aws-observability/aws-otel-collector/blob/main/docs/developers/container-insights-eks-jmx.md). For convenience, the steps can be found below.
74
74
75
-
1. Clone [this repository](https://github.com/aws-observability/aws-otel-test-framework) and navigate to the `sample-apps/jmx/` directory.
0 commit comments