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
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "net/url" | |
| "os" | |
| ) |
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
| claims_depth | |
| etcd_helper_cache_hit_count | |
| replicationmanager_adds | |
| deployment_adds | |
| serviceaccount_tokens_secret_work_duration_sum | |
| disruption_work_duration_sum | |
| garbage_collector_operation_extensions_v1beta1_rate_limiter_use | |
| resourcequota_primary_retries | |
| serviceaccount_tokens_service_queue_latency_count | |
| service_queue_latency_sum |
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
| curl localhost:9090/api/v1/targets | jq '.data.activeTargets[] | . + {"targets": [.labels.instance]} | del(.scrapeUrl, .lastError, .lastScrape, .health, .discoveredLabels)' | jq --slurp '.' |
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
| fredericbranczyk at Frederics-MBP in ~/git/coreos/coreos-vagrant on master | |
| ○ vagrant up | |
| Bringing machine 'core-01' up with 'virtualbox' provider... | |
| ==> core-01: Importing base box 'coreos-alpha'... | |
| ==> core-01: Matching MAC address for NAT networking... | |
| ==> core-01: Checking if box 'coreos-alpha' is up to date... | |
| ==> core-01: A newer version of the box 'coreos-alpha' is available! You currently | |
| ==> core-01: have version '1221.0.0'. The latest is version '1248.1.0'. Run | |
| ==> core-01: `vagrant box update` to update. | |
| ==> core-01: Setting the name of the VM: coreos-vagrant_core-01_1481751747919_2287 |
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
| global: | |
| resolve_timeout: 5m | |
| route: | |
| group_by: ['job'] | |
| group_wait: 30s | |
| group_interval: 5m | |
| repeat_interval: 12h | |
| receiver: 'webhook' | |
| receivers: | |
| - name: 'webhook' |
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
| apiVersion: v1 | |
| kind: List | |
| items: | |
| - apiVersion: v1 | |
| data: | |
| alertmanager.yaml: |- | |
| global: | |
| resolve_timeout: 5m | |
| route: | |
| group_by: ['job'] |
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 | |
| # First git clone [email protected]:kubernetes-incubator/bootkube | |
| # cd bootkube/hack/quickstart | |
| # | |
| # Then start executing these commands | |
| gcloud compute instances create k8s-core1 \ | |
| --image https://www.googleapis.com/compute/v1/projects/coreos-cloud/global/images/coreos-stable-1122-3-0-v20161021 \ | |
| --zone us-east1-c --machine-type n1-standard-1 |
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
| apiVersion: storage.k8s.io/v1beta1 | |
| kind: StorageClass | |
| metadata: | |
| name: gce-ssd-storage | |
| parameters: | |
| type: pd-ssd | |
| provisioner: kubernetes.io/gce-pd | |
| --- | |
| apiVersion: v1 | |
| kind: PersistentVolumeClaim |
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 -e | |
| db=/srv/prometheus/alertmanager/data/am.db | |
| backup="${db}-$(date +%s)" | |
| convert=/srv/prometheus/alertmanager/csv2json.rb | |
| # block outgoing pagerduty requests | |
| iptables -A OUTPUT -p tcp --dport 443 -j REJECT | |
| sv stop alertmanager |
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
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| labels: | |
| app: alertmanager-cluster | |
| name: alertmanager-cluster-client | |
| spec: | |
| ports: | |
| - name: alertmanager-web | |
| nodePort: 30900 |