Skip to content

Instantly share code, notes, and snippets.

| ULID | FROM | UNTIL | RANGE | UNTIL-COMP | #SERIES | #SAMPLES | #CHUNKS | COMP-LEVEL | COMP-FAILED | LABELS | RESOLUTION | SOURCE |
|----------------------------|---------------------|---------------------|----------|------------|---------|---------------|------------|------------|-------------|------------------------------------|------------|-----------|
| 01D3EWQEZH4AZ2XH1NZJQGYXVF | 31-01-2019 07:00:00 | 06-02-2019 19:00:00 | 156h0m0s | -116h0m0s | 32,093 | 803,431,659 | 6,681,767 | 4 | false | monitor=test,promenv=dev,replica=0 | 0s | compactor |
| 01D3EWWXKFJJEMFF0HJ5Z4QE0K | 31-01-2019 07:00:00 | 06-02-2019 19:00:00 | 156h0m0s | 84h0m0s | 32,093 | 40,191,129 | 296,000 | 4 | false | monitor=test,promenv=dev,replica=0 | 5m0s | compactor |
| 01D8M48SKFYMS4F53GJ3K5J443 | 06-02-2019 19:00:00 | 12-02-2019 13:00:00 | 138h0m0s | -98h0m0s | 36,973 | 1,031,8
@jjneely
jjneely / foobar.txt
Created May 20, 2019 14:35
Thanos blocks in GCS: Missing 1h downsampling
| ULID | FROM | UNTIL | RANGE | UNTIL-COMP | #SERIES | #SAMPLES | #CHUNKS | COMP-LEVEL | COMP-FAILED | LABELS | RESOLUTION | SOURCE |
|----------------------------|---------------------|---------------------|----------|------------|-----------|----------------|-------------|------------|-------------|-------------------------|------------|-----------|
| 01DASGK0H6DYPF8BH2PAFYV0S7 | 13-03-2019 08:00:00 | 20-03-2019 02:00:00 | 162h0m0s | -122h0m0s | 2,986,314 | 50,967,296,465 | 425,671,791 | 5 | false | monitor=elk07,replica=0 | 0s | compactor |
| 01DASN4J7TKF60ZZQ40CCG3AX9 | 13-03-2019 08:00:00 | 20-03-2019 02:00:00 | 162h0m0s | -122h0m0s | 2,926,875 | 50,967,076,673 | 425,615,451 | 5 | false | monitor=elk07,replica=1 | 0s | compactor |
| 01DB2DKZ4BM45MG6P03X2MZA86 | 13-03-2019 08:00:00 | 20-03-2019 02:00:00 | 162h0m0s | 78h0m0s | 2,986,309 | 3,398,816,966 | 25,679,802 | 5
global:
evaluation_interval: 30s
external_labels:
monitor: node
scrape_interval: 30s
scrape_timeout: 10s
rule_files:
- /etc/prometheus/rules/*
scrape_configs:
- file_sd_configs:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.provider 'virtualbox' do |v|
v.memory = ENV.fetch('VAGRANT_MEMORY_SIZE', 4096)
v.cpus = 2
v.customize ['modifyvm', :id, '--nictype1', 'virtio']
end

Keybase proof

I hereby claim:

  • I am jjneely on github.
  • I am jjneely (https://keybase.io/jjneely) on keybase.
  • I have a public key whose fingerprint is 1917 5AC1 E828 9337 7AA4 EA6B 213B 765F 3B6A 5B89

To claim this, I am signing this object:

@jjneely
jjneely / gist:91c877d463681a93eac5
Created October 16, 2014 17:44
Logrotate for Docker's stdout/stderr json dumps
# Prune Docker's JSON format stdout/stderr files as they
# grow boundlessly. Also, deal with the fact that the Docker daemin
# will not re-open these files.
/mnt/docker/containers/*/*-json.log
{
rotate 31
daily
missingok
notifempty
compress
@jjneely
jjneely / openssl-fix.yml
Last active August 29, 2015 13:58
Ansible Playbook for dealing with Heartbleed
---
# Much lifted from https://gist.github.com/carsongee/10137729
# Make our target groups
- hosts: all
sudo: true
tasks:
@jjneely
jjneely / gist:1040726
Created June 22, 2011 18:14
YUMng and verifying multiarch packages
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py
index 6aab981..24605ca 100644
--- a/src/lib/Client/Tools/YUMng.py
+++ b/src/lib/Client/Tools/YUMng.py
@@ -451,8 +451,13 @@ class YUMng(Bcfg2.Client.Tools.PkgTool):
verify_flags = inst.get('verify_flags', self.verifyFlags)
verify_flags = verify_flags.lower().replace(' ', ',').split(',')
- if len(POs) == 0:
- # Package not installed
<Bundle name='gpg-pubkeys' version='2.0'>
<Path name='/etc/pki/rpm-gpg/RPM-GPG-KEY-RealmLinux-0'/>
<Path name='/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta-2'/>
<Path name='/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release'/>
<Path name='/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5'/>
<Path name='/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-former'/>
<Package name='gpg-pubkey'>
<!-- The Realm Linux RPM signing key GPG v1.2.1 -->