This file contains 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
--- | |
groups: | |
- name: msgbus | |
interval: 15s | |
rules: | |
- alert: zero_subscribers | |
expr: | | |
msgbus_bus_subscribers == 0 | |
for: 30s | |
annotations: |
This file contains 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
--- | |
- name: traefik | |
interval: 15s | |
rules: | |
- alert: p95_latency | |
expr: | | |
label_replace( | |
histogram_quantile( | |
0.95, | |
sum( |
This file contains 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" | |
"log" | |
"net" | |
) | |
func main() { | |
cnames, addrs, err := net.LookupSRV("_salty", "_tcp", "home.arpa") |
This file contains 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
sum(label_replace( | |
increase(container_network_transmit_bytes_total{image!="", container_label_com_docker_stack_namespace=~"$stack", container_label_com_docker_swarm_service_name=~"$service"}[$__range]) | |
+ | |
increase(container_network_receive_bytes_total{image!="", container_label_com_docker_stack_namespace=~"$stack", container_label_com_docker_swarm_service_name=~"$service"}[$__range]), | |
"task_name", "$1", "container_label_com_docker_swarm_task_name", "(.*\\.[0-9]*).*\\..*")) by (task_name) |
This file contains 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/sh | |
random_string() { | |
tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 64 | head -n 1 | |
} | |
echo " - API_SIGNING_KEY=$(random_string)" | |
echo " - COOKIE_SECRET=$(random_string)" | |
echo " - MAGICLINK_SECRET=$(random_string)" |
This file contains 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
autodock: | |
image: prologic/autodock | |
ports: | |
- "1338:1338/udp" | |
- "1338:1338/tcp" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
autodocklogger: | |
image: prologic/autodock-logger |
This file contains 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
--- | |
version: "3.8" | |
services: | |
hello: | |
image: prologic/hello-go | |
networks: | |
- traefik | |
deploy: | |
mode: replicated |
This file contains 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
module twtxt-search-engine | |
go 1.14 | |
require ( | |
github.com/gocolly/colly/v2 v2.1.0 | |
github.com/jointwt/twtxt v0.0.0-20210108082814-7098fcfa49df | |
github.com/prologic/read-file-last-line v0.0.0-20200806014221-326f63458987 | |
github.com/sirupsen/logrus v1.7.0 | |
) |
This file contains 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
--- | |
version: "3.8" | |
services: | |
traefik: | |
image: traefik:latest | |
ports: | |
- target: 80 | |
published: 80 | |
protocol: tcp |
This file contains 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
--- | |
version: "3.8" | |
services: | |
hello: | |
image: r.mills.io/prologic/hello-go | |
networks: | |
- traefik | |
deploy: | |
mode: replicated |