I hereby claim:
- I am f41gh7 on github.
- I am fght (https://keybase.io/fght) on keybase.
- I have a public key ASCyTsOxjLm8-joVCLCjAgjR8N37bFxTX7Eu4ket_hEzLgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from prometheus_client import Counter, start_http_server | |
from threading import Thread | |
import requests as re | |
import time | |
JOB_NAME = 'test' | |
INSTANCE = 'localhost' | |
def scrape_and_send(local_url: str, vm_url: str, scrape_interval: int): |
apiVersion: operator.victoriametrics.com/v1beta1 | |
kind: VMServiceScrape | |
metadata: | |
name: apiserver | |
namespace: monitoring-system | |
spec: | |
endpoints: | |
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token | |
bearerTokenSecret: | |
key: "" |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: vm-demo-grafana | |
labels: | |
k8s-app: grafana | |
app.kubernetes.io/name: vm-demo | |
app.kubernetes.io/component: grafana | |
spec: | |
ports: |
version: '3.5' | |
services: | |
vminsert: | |
image: victoriametrics/vminsert:v1.60.0-cluster | |
command: | |
- '--storageNode=vmstorage-0:8400' | |
- '--storageNode=vmstorage-1:8400' | |
- '--storageNode=vmstorage-2:8400' | |
- '--storageNode=vmstorage-3:8400' | |
- '--storageNode=vmstorage-4:8400' |
# copy or download dockerfile
wget https://gist.githubusercontent.com/f41gh7/98ad3323cbdd46476595b6a8b753cce9/raw/83df07d56bf36cdba019e6663ee77c1e1649a7a1/cron-vmbackup.Dockerfile
# edit args for your vmbackup config at docker file
openssl req -x509 -sha256 -days 1825 -newkey rsa:2048 -keyout rootCA.key -out rootCA.crt -nodes
openssl req -newkey rsa:2048 -nodes -keyout vmstorage_0.key -out vmstorage_0.csr
serviceMonitor: | |
enabled: true | |
alertmanager: | |
enabled: true | |
persistentVolume: | |
enabled: false | |
replicas: 1 | |
resources: | |
limits: |