- create a snapshot of the db
curl -XPOST http://${PROMETHEUS_IP}:8080/api/v1/admin/tsdb/snapshot
- get the prometheus database
tar cvf prometheus.tar /prometheus/snapshots
- create a fake prometheus config so it does not complain
package main | |
import ( | |
"context" | |
"crypto/tls" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"net/http" |
package main | |
import ( | |
"crypto/tls" | |
"flag" | |
"log" | |
"net/http" | |
"os" | |
"path/filepath" |
/* | |
Copyright 2017 The Kubernetes Authors. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/108414/pull-kubernetes-e2e-gce-100-performance/1499390264190439424 | |
https://storage.googleapis.com/kubernetes-jenkins/pr-logs/pull/108414/pull-kubernetes-e2e-gce-100-performance/1499390264190439424/artifacts/prometheus_snapshot.tar | |
TMP_DIR=$(mktemp -d) | |
cd $TMP_DIR | |
wget https://storage.googleapis.com/kubernetes-jenkins/pr-logs/pull/108414/pull-kubernetes-e2e-gce-100-performance/1499390264190439424/artifacts/prometheus_snapshot.tar | |
tar xvf prometheus_snapshot.tar | |
touch prometheus.yml | |
SNAPSHOT=$(ls prometheus/snapshots/) |
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
curl -XPOST http://${PROMETHEUS_IP}:8080/api/v1/admin/tsdb/snapshot
tar cvf prometheus.tar /prometheus/snapshots
{ | |
"__inputs": [ ], | |
"__requires": [ ], | |
"annotations": { | |
"list": [ ] | |
}, | |
"description": "", | |
"editable": "true", | |
"gnetId": null, | |
"graphTooltip": 0, |
etcd& | |
_output/dockerized/bin/linux/amd64/kube-apiserver --etcd-servers localhost:2379 --service-account-issuer=api --service-account-api-audiences=api --service-account-signing-key-file=/var/run/kubernetes/apiserver.key --service-account-key-file=/var/run/kubernetes/apiserver.key 2>&1 | less |
/* | |
Copyright 2021 The Kubernetes Authors. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: mydomainfortest | |
namespace: default | |
spec: | |
externalName: www.google.com | |
type: ExternalName | |
selector: | |
app: myapp |