Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <vector>
#include <unordered_set>
using namespace std;
typedef struct Row {
int a;
int b;
} Row;
// Example program
#include <iostream>
#include <string>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <vector>
#include <queue>
#include <cassert>
#include <thread>
@DeathPoem
DeathPoem / Dockerfile
Created July 16, 2020 04:23
how to Change storage.tsdb.retention on Docker Hub "prom/prometheus"
FROM prom/prometheus
CMD ["--config.file=/etc/prometheus/prometheus.yml","--storage.tsdb.path=/prometheus","--web.console.libraries=/usr/share/prometheus/console_libraries","--web.console.templates=/usr/share/prometheus/consoles","--storage.tsdb.retention.size=100GB"]
# docker build --tag 'prom/prometheus:myprom' .
# docker run --network=host -v /$path/prometheus.yml:/etc/prometheus/prometheus.yml -v /export/Prometheus:/prometheus -d prom/prometheus:myprom