Run stress -c 5 on your server before starting this lesson. With the Node Exporter up and running, we now have access to a number of infrastructure metrics on Prometheus, including data about our CPU. The processing power of our server determines how well basically everything on our server runs, so keeping …
Create a system user: sudo useradd –no-create-home –shell /bin/false node_exporter Download the Node Exporter from Prometheus’s download page: cd /tmp/ wget https://github.com/prometheus/node_exporter/releases/download/v0.17.0/node_exporter-0.17.0.linux-amd64.tar.gz Extract its contents; note that the versioning of the Node Exporter may be different: tar -xvf node_exporter-0.17.0.linux-amd64.tar.gz Move into the newly created directory: cd node_exporter-0.17.0.linux-amd64/ Move the provided binary: …
Add system user and group for Prometheus sudo groupadd –system prometheus sudo useradd -s /sbin/nologin –system -g prometheus prometheus Create data directory for Prometheus sudo mkdir /var/lib/prometheus Create configuration directories for Prometheus for i in rules rules.d files_sd; do sudo mkdir -p /etc/prometheus/${i}; done Download Prometheus curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest \ …
Download this file Open the AWS Management Console and navigate to the S3 console. Select the bucket containing the CSV file you want to query. Select the CSV file you want to query. Click on the “Actions” drop-down menu and select “Select from Object”. In the “Select from Object” dialog …
Create a bucket: Syntax: aws s3api create-bucket –bucket <bucket-name> –region <region-name> Example: aws s3api create-bucket –bucket my-bucket –region us-west-2 List all buckets: Syntax: aws s3api list-buckets Example: aws s3api list-buckets Upload a file: Syntax: aws s3 cp <file-path> s3://<bucket-name>/<object-key> Example: aws s3 cp /path/to/local/file s3://my-bucket/my-file Download a file: Syntax: aws …
Enable Transfer Acceleration on an existing S3 bucket. Navigate to the S3 console in your AWS account. Select the bucket you want to enable Transfer Acceleration on. Click on the “Properties” tab and select “Transfer Acceleration” Enable Transfer Acceleration by selecting “Enabled”. Click “Save” to apply the changes. Test Transfer …
To create a Bucket Policy for an S3 bucket, follow these steps: Login to your AWS account and navigate to the S3 console. Select the S3 bucket you want to apply the policy to. Click on the “Permissions” tab and select “Bucket Policy”. In the text editor, copy and paste …
Enabling Versioning: Log in to the AWS Management Console and navigate to the S3 service. Click on “Create Bucket” to create a new S3 bucket. Enter a globally unique name for the bucket and select a region for it. Leave the default settings for the remaining options and click on …
Log in to the AWS Management Console using your root account credentials. Open the Amazon S3 console by clicking on “Services” in the top navigation bar, selecting “S3” from the dropdown menu. Click on the name of the S3 bucket that contains the object you want to make public. Locate …
Log in to the AWS Management Console using your root account credentials. Open the Amazon S3 console by clicking on “Services” in the top navigation bar, selecting “S3” from the dropdown menu. Click on the “Create bucket” button. In the “Create bucket” dialog box, enter a name for your bucket. …
Log in to the AWS Management Console using your root account credentials. Open the Amazon SQS console by clicking on “Services” in the top navigation bar, selecting “SQS” from the dropdown menu. Click on the “Create New Queue” button. In the “Create New Queue” dialog box, enter a name for …
Log in to the AWS Management Console using your root account credentials. Open the Amazon SNS console by clicking on “Services” in the top navigation bar, selecting “SNS” from the dropdown menu. Click on the “Topics” tab in the left navigation menu. Click on the “Create topic” button. In the …
Log in to the AWS Management Console using your root account credentials. Open the AWS CloudTrail console by clicking on “Services” in the top navigation bar, selecting “CloudTrail” from the dropdown menu. Select the trail that you want to explore logs for. Click on the “Event history” tab to view …
Log in to the AWS Management Console with your root account credentials. Navigate to the IAM console by clicking on “Services” in the top navigation bar, selecting “IAM” from the dropdown menu. Click on “Policies” in the left navigation pane, and then click on the “Create policy” button. Select the …
Log in to the AWS Management Console with your root account credentials. Navigate to the IAM console by clicking on “Services” in the top navigation bar, selecting “IAM” from the dropdown menu. Click on “Roles” in the left navigation pane, and then click on the “Create Role” button. Select “AWS …
Log in to the AWS Management Console with your root account credentials. Navigate to the IAM console by clicking on “Services” in the top navigation bar, selecting “IAM” from the dropdown menu, and then clicking on “Groups” in the left navigation pane. Click on the “Create New Group” button. Enter …