knox / Prometheus-readme-7.sh
0 likes
0 forks
1 files
Last active
1 | go get github.com/prometheus/prometheus@v0.35.0 |
knox / Prometheus-readme-6.sh
0 likes
0 forks
1 files
Last active
1 | go get buf.build/gen/go/prometheus/prometheus/protocolbuffers/go@latest |
knox / Prometheus-readme-5.sh
0 likes
0 forks
1 files
Last active
1 | make promu |
2 | promu crossbuild -p linux/amd64 |
3 | make npm_licenses |
4 | make common-docker-amd64 |
knox / Prometheus-readme-4.sh
0 likes
0 forks
1 files
Last active
1 | make build |
2 | ./prometheus --config.file=your_config.yml |
knox / Prometheus-readme-3.sh
0 likes
0 forks
1 files
Last active
1 | GO111MODULE=on go install github.com/prometheus/prometheus/cmd/... |
2 | prometheus --config.file=your_config.yml |
knox / Prometheus-readme-2.sh
0 likes
0 forks
1 files
Last active
1 | git clone https://github.com/prometheus/prometheus.git |
2 | cd prometheus |
knox / Prometheus-readme-1.sh
0 likes
0 forks
1 files
Last active
1 | docker run --name prometheus -d -p 127.0.0.1:9090:9090 prom/prometheus |
knox / Redis-readme-3.c
0 likes
0 forks
1 files
Last active
1 | void foobarCommand(client *c) { |
2 | printf("%s",c->argv[1]->ptr); /* Do something with the argument. */ |
3 | addReply(c,shared.ok); /* Reply something to the client. */ |
4 | } |
knox / Redis-readme-2.c
0 likes
0 forks
1 files
Last active
1 | struct redisObject { |
2 | unsigned type:4; |
3 | unsigned encoding:4; |
4 | unsigned lru:LRU_BITS; /* LRU time (relative to global lru_clock) or |
5 | * LFU data (least significant 8 bits frequency |
6 | * and most significant 16 bits access time). */ |
7 | int refcount; |
8 | void *ptr; |
9 | }; |