Skip to content

Instantly share code, notes, and snippets.

View LenaAn's full-sized avatar
☮️

Lena Anyusheva LenaAn

☮️
View GitHub Profile
services:
prometheus:
image: prom/prometheus
container_name: prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.time=365d"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
# HELP users_started_bot Total users who started the bot (based on broadcast reach)
# TYPE users_started_bot gauge
# HELP users_failed_broadcast Users with failed broadcast delivery
# TYPE users_failed_broadcast gauge
users_started_bot{exported_job="nelenkin-bot",instance="pushgateway:9091",job="pushgateway"} 840 1770407790
users_failed_broadcast{exported_job="nelenkin-bot",instance="pushgateway:9091",job="pushgateway"} 147 1770407790
users_started_bot{exported_job="nelenkin-bot",instance="pushgateway:9091",job="pushgateway"} 938 1770999030
users_failed_broadcast{exported_job="nelenkin-bot",instance="pushgateway:9091",job="pushgateway"} 164 1770999030
users_started_bot{exported_job="nelenkin-bot",instance="pushgateway:9091",job="pushgateway"} 972 1772292990
users_failed_broadcast{exported_job="nelenkin-bot",instance="pushgateway:9091",job="pushgateway"} 178 1772292990
services:
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
ports:
- "127.0.0.1:9090:9090"