

We will also create an helm chart for simple execution of this step. In this step we will not configure prometheus.yaml file to directly set our microservice url in prometheus for scrapping but we will use the concept of serviceMonitor in K8 to register our Springboot application and scrap the metrics. We will create docker image of this springboot application and uplaod the same on dockerhub. We will be scrapping Mongodb using mongodb exporter in K8 with Premetheus operator and ServiceMinotor using helm (Mongodb + MongoDb Exporter + ServiceMonitor)Ĥ- Finally we will have our own spring boot microservice using micrometer to expose our springboot metrics to prometheus.
#Prometheus node exporter helm install
And check we are able to access MongoDb using Mongoexpress port-forward method.ģ- We will install mongodb exporter using helm and service monitor. Use the values displayed in the Outputs tab for the stack, as shown in the following figure.In this example we will do following things sequentiallyġ- We will configure prometheus using K8 operatorĢ- We will install Mongodb using helm chart. When the status is CREATE_COMPLETE, the Prometheus deployment is ready. Under Capabilities, select the two check boxes to acknowledge that the template creates IAM resources and might require the ability to automatically expand macros. On the Review page, review and confirm the template settings. When you finish reviewing and customizing the parameters, choose Next. For details on each parameter, see the Parameter reference section of this guide. For all other parameters, review the default settings, and customize them as necessary. Provide values for the parameters that require input. On the Specify stack details page, change the stack name if needed. The template launches in the us-east-2 Region by default. This is where the network infrastructure for Prometheus is built. For more information, see Managing users or IAM roles for your cluster.Ĭheck the AWS Region that’s displayed in the upper-right corner of the navigation bar, and change it if necessary. This allows the Quick Start to manage your cluster via AWS CloudFormation. Monitor the stack’s status until it is CREATE_COMPLETE.įrom the Outputs section of the stack, note the KubernetesRoleArn and HelmRoleArn roles.Īdd the roles to the aws-auth config map in your cluster, specifying system:masters for the groups. On the Review page, review and confirm your template settings. On the Options page, specify the key-value pairs for resources in your stack, and set advanced options. These can be obtained from the EKS cluster console. Enter the name of the Amazon EKS cluster you want to deploy to in addition to the subnet IDs and security group ID associated with the cluster. On the Create stack page, keep the default setting for the template URL, and then choose Next. To change the Region, choose another Region from the list in the upper-right corner of the navigation bar. The template launches in the US East (Ohio) Region by default.

For details, see Planning the deployment, earlier in this guide. Sign in to your AWS account at with an IAM user role that has the necessary permissions.
