Commit graph

484 commits

Author SHA1 Message Date
Jonathan Math
23f1af298a fix celery_task sanity checker docker container directive 2021-06-08 10:35:57 -04:00
Samuel Clay
8f5e0ba690 Ignore missing task_env.py. 2021-06-08 10:23:51 -04:00
Jonathan Math
2b49288aa7 pull latest grafana image 2021-06-08 08:50:40 -04:00
Jonathan Math
5bea910d46 keep sanity checkers alive, fix ln directive in ansible 2021-06-07 16:30:51 -04:00
Jonathan Math
78120ad11c keep sanity checker container alive and only use on task_work servers 2021-06-07 16:27:46 -04:00
Jonathan Math
adf7955df5 add the rest of the sanity checkers to ansible 2021-06-07 15:57:01 -04:00
Jonathan Math
17c64e4acc add disk usage sanity checker 2021-06-07 15:44:59 -04:00
Samuel Clay
d1b73bf86d Reload haproxy on cert update 2021-06-07 11:20:18 -04:00
Jonathan Math
36f61bd4a8 disable ssl for postgres connection in postgres-exporter 2021-06-03 10:52:27 -04:00
Jonathan Math
9939af7747 sort-of fix to mongo-exporter issue. It needs to explicitly register mongo-exporter in order for consul to see it. 2021-06-03 10:40:01 -04:00
Jonathan Math
2d5a9db663 fix postgres-exporter role 2021-06-03 10:24:00 -04:00
Jonathan Math
3c5f26a26a add exporters for dbs 2021-05-26 12:16:33 -04:00
Jonathan Math
2558c533b8 add restart policy to grafana 2021-05-26 12:16:12 -04:00
Jonathan Math
b5a9c0eb52 add restart policy to node-exporter 2021-05-26 12:15:52 -04:00
Samuel Clay
ee7bd47e8b Cleaning up deploy work and monitors. The task monitors need to be integrate with the flask db monitors. 2021-05-26 11:41:28 -04:00
Samuel Clay
4b3ee0b3d1 Adding new docker based network newsblurnet which is on 178.18.0.0/16 range. 2021-05-25 15:51:23 -04:00
Jonathan Math
de93df270b correct username and password for grafana 2021-05-21 13:09:22 -04:00
Samuel Clay
deadb36c92 Adding metrics tag to all nodeexporter/prometheus/grafana roles. 2021-05-21 12:02:07 -04:00
Jonathan Math
aa8c17e011 get grafana provisioning to work for NewsBlur dashboard 2021-05-21 10:49:17 -04:00
Jonathan Math
821e7661fd make prometheus reachable by grafana 2021-05-21 10:30:45 -04:00
Jonathan Math
f253a0e0f7 add grafana_password to ansible from secrets file 2021-05-21 10:29:39 -04:00
Samuel Clay
0d182059f3 Fixing monitor to not use env vars for hostname. 2021-05-19 23:05:31 -04:00
Samuel Clay
22cc6de301 Switching from LOCAL_HOST to named server for monitor. 2021-05-19 23:01:12 -04:00
Samuel Clay
49d84af67c Updating monitor to use new elasticsearch. 2021-05-19 22:40:45 -04:00
Samuel Clay
a63b4097a3 Fixing nginx on staging to expose proper ports. 2021-05-19 22:03:53 -04:00
Samuel Clay
4fce6831d1 Monitor also goes off host network mode. 2021-05-19 17:32:08 -04:00
Samuel Clay
48c894d8ce Did not mean to archive monitor. 2021-05-19 17:30:06 -04:00
Samuel Clay
82fddd415f Switching from network_mode host to using a docker network. This gets us off host networking and to defined ports. The docker network connects the container's dns resolver to the machine's dnsmasq, which is used for consul. 2021-05-19 17:26:47 -04:00
Samuel Clay
af734dbb2c Moving port 80 and 443 to haproxy and nginx roles. 2021-05-19 12:14:31 -04:00
Jonathan Math
f10a7a203d fix syntax for prometheus role 2021-05-19 11:19:23 -04:00
Jonathan Math
e08678b613 WIP attempting to get node exporter talking to prometheus but it doesn't work 2021-05-18 12:11:20 -04:00
Jonathan Math
dd92ae114a Merge branch 'dashboard3' of https://github.com/samuelclay/NewsBlur into dashboard3 2021-05-18 11:47:16 -04:00
Jonathan Math
fc73b84191 register prometheus with consul 2021-05-18 10:15:28 -04:00
Jonathan Math
bcc195dfa2 register node-exporter properly with consul 2021-05-18 10:14:45 -04:00
Samuel Clay
2e5ca80b56 Removing unused ansible-consul role. 2021-05-18 10:14:24 -04:00
Jonathan Math
e698fb03f8 fix up prometheus and try to get grafana/prometheus working in ansible (Work in progress) 2021-05-17 15:14:19 -04:00
Samuel Clay
b1680f9e49 Adding db-metrics server. 2021-05-17 11:30:09 -04:00
Jonathan Math
6da0450fc3 add node-exporter to setup_ .yml files 2021-05-17 10:09:50 -04:00
Jonathan Math
e52d1d5ebc register node-exporter to consul 2021-05-17 10:05:15 -04:00
Jonathan Math
a9219030e0 edit prometheus.consul.yml.j2, add consul sd configs, and add node-exporter consul service 2021-05-17 10:04:16 -04:00
Samuel Clay
d0f03779b3 Fixing sharing story issue with scrubbing encoding. 2021-05-14 20:52:28 -04:00
Samuel Clay
6a559e0f3f HAProxy now does a graceful reload. Cleaning up ansible. Splitting out firewall into ufw role. 2021-05-14 18:40:43 -04:00
Samuel Clay
22605d07cc Changing hostname on early task machines. 2021-05-14 12:29:47 -04:00
Samuel Clay
62a6f664e1 Maintenance mode was easier to write than I thought. 2021-05-13 19:53:34 -04:00
Samuel Clay
13fd328cfd Reloading DNSMasq when updating /etc/hosts. 2021-05-13 10:43:33 -04:00
Samuel Clay
2f602a8d85 Removing consul health check for web, lowering workers. 2021-05-12 17:07:37 -04:00
Samuel Clay
54e4914804 Adding 3 consul servers. 2021-05-12 15:41:17 -04:00
Samuel Clay
d19f062b2a Don't know why ansible keeps running a never tag 2021-05-11 17:14:53 -04:00
Samuel Clay
4efa1319a1 Mongo secondaries are on the primary consul. 2021-05-11 17:11:51 -04:00
Samuel Clay
9b624acb0a Syslog doesn't work, switching back to mongod.log. 2021-05-11 16:55:59 -04:00