This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## The following is a set of default values for prometheus server helm chart which enable remoteWrite to AMP | |
## For the rest of prometheus helm chart values see: https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus/values.yaml | |
## | |
## 通过以下参数安装Prometheus Server在EKS中,并将指标采集并上报至AMP | |
serviceAccounts: | |
server: | |
name: "amp-iamproxy-ingest-service-account" | |
annotations: | |
eks.amazonaws.com/role-arn: "arn:aws:iam::294254988299:role/amp-iamproxy-ingest-role" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import boto3 | |
from botocore.exceptions import ClientError | |
s3client = boto3.client('s3') | |
def lambda_handler(event, context): | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
client = boto3.client('ec2') | |
volumes = client.describe_volumes( | |
Filters = [ | |
{ | |
'Name': 'tag:Owner', | |
'Values': [ | |
'Randy' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inf = open('input.txt', 'r') | |
outf = open('output.txt', 'w') | |
curWord = '' | |
for s in inf.readlines(): | |
s = s.strip() | |
if curWord == '' or s != curWord : | |
curWord = s | |
outf.write(s + ' ') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#~/.zshrc | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/linjungz/.oh-my-zsh" | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype plugin indent on | |
syntax on | |
:set noexpandtab | |
:set copyindent | |
:set preserveindent | |
:set softtabstop=0 | |
:set shiftwidth=2 | |
:set tabstop=2 |