I hereby claim:
- I am adaam on github.
- I am cadaam (https://keybase.io/cadaam) on keybase.
- I have a public key ASBYlCMx-GBr9WSpltLY6Xqu6koUVTk-07bJvT-QaARwUAo
To claim this, I am signing this object:
# 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 |
image: | |
repository: quay.io/cortexproject/cortex | |
tag: v1.6.0 | |
pullPolicy: IfNotPresent | |
clusterDomain: cluster.local | |
tags: | |
blocks-storage-memcached: false | |
ingress: | |
enabled: true | |
annotations: |
#!/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 | |
} | |
}' |
#!/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() |
{ | |
"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})*" |
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... |
### 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: |
I hereby claim:
To claim this, I am signing this object:
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: prometheus | |
data: | |
prometheus.yml: |- | |
global: | |
scrape_interval: 15s | |
scrape_configs: | |
# etcd is living outside of our cluster and we configure |
#!/bin/sh | |
while true | |
do | |
D=$(date +%s) | |
nfsstat -l > /home/XXX_USER/nfsstat_log/$D | |
sleep 5 | |
done |