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
| ### Keybase proof | |
| I hereby claim: | |
| * I am adaam on github. | |
| * I am cadaam (https://keybase.io/cadaam) on keybase. | |
| * I have a public key whose fingerprint is 7167 468B BF39 D2F6 57AF 62EC C200 9DD3 4346 5BD1 | |
| To claim this, I am signing this object: |
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
| root@percona_mongodb_lab:/usr/local/percona/pmm-client# pmm-admin add mongodb:queries mdb0g-testingdb --uri mongodb://root:[email protected]:20010/testingdb | |
| Error adding MongoDB queries: timeout 10s waiting on agent to connect to API. | |
| root@percona_mongodb_lab:/usr/local/percona/pmm-client# cat /var/log/pmm-mongodb-queries-0.log | |
| # Version: percona-qan-agent 1.3.1 | |
| # Basedir: /usr/local/percona/qan-agent | |
| # PID: 10560 | |
| # API: 172.10.2.23/qan-api | |
| # UUID: e84f9bbe1c094c0c7b01598a0d425776 | |
| 2017/10/11 18:17:51.569074 main.go:163: Starting agent... |
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
| { | |
| "description": "Pipeline for parsing Nginx access logs. Requires the user_agent plugins.", | |
| "processors": [{ | |
| "grok": { | |
| "field": "message", | |
| "patterns":[ | |
| "\"?%{IP_LIST:nginx.access.remote_ip_list} - %{DATA:nginx.access.user_name} \\[%{HTTPDATE:nginx.access.time}\\] \"%{GREEDYDATA:nginx.access.info}\" %{NUMBER:nginx.access.response_code} %{NUMBER:nginx.access.body_sent.bytes} \"%{DATA:nginx.access.referrer}\" \"%{DATA:nginx.access.agent}\" %{DATA:nginx.access.CF_RAY} %{NUMBER:nginx.access.request_time}" | |
| ], | |
| "pattern_definitions": { | |
| "IP_LIST": "%{IP}(\"?,?\\s*%{IP})*" |
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
| #!/usr/bin/env python3 | |
| # inspire by https://www.slsmk.com/getting-the-size-of-an-s3-bucket-using-boto3-for-aws/ | |
| import boto3 | |
| import datetime | |
| def main(): | |
| # Get all regions | |
| ec2 = boto3.setup_default_session(region_name='us-east-1') | |
| ec2 = boto3.client('ec2') | |
| desc_regions = ec2.describe_regions() |
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
| #!/bin/bash | |
| curl -X PUT "localhost:9200/_template/zero_replica?pretty" -H 'Content-Type: application/json' -d' | |
| { | |
| "index_patterns": ["*"], | |
| "settings": { | |
| "number_of_shards": 1, | |
| "number_of_replicas" : 0 | |
| } | |
| }' |
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
| image: | |
| repository: quay.io/cortexproject/cortex | |
| tag: v1.6.0 | |
| pullPolicy: IfNotPresent | |
| clusterDomain: cluster.local | |
| tags: | |
| blocks-storage-memcached: false | |
| ingress: | |
| enabled: true | |
| annotations: |
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
| # Search running ssh-agent | |
| # Source: https://github.com/docker/for-mac/issues/6541#issuecomment-1304604625 | |
| SSH_AGENT_PID="$(pgrep ssh-agent)" | |
| SSH_AUTH_SOCK="$(lsof -p "${SSH_AGENT_PID}" | awk '/ unix / {print $8}') | |
| export SSH_AGENT_PID SSH_AUTH_SOCK |
OlderNewer