Commit graph

595 commits

Author SHA1 Message Date
Jonathan Math
7b9555560f fix docker commands for redis role 2021-06-16 10:56:08 -06:00
Jonathan Math
b89fb9de3a fix sanity checkers in redis role 2021-06-16 10:44:47 -06:00
Jonathan Math
56b44213b9 fix redis sanity checker 'when' directive 2021-06-16 10:26:13 -06:00
Jonathan Math
debafdc9ad fix ansible sanity checkers 2021-06-16 10:12:41 -06:00
Jonathan Math
60e08d6786 make container cron jobs for sanity checkers 2021-06-16 10:00:08 -06:00
Jonathan Math
0b159b19cd add consul manager service 2021-06-15 09:43:44 -06:00
Jonathan Math
6222db9828 add health checks to prometheus and grafana 2021-06-15 09:32:46 -06:00
Jonathan Math
67b0707eb7 dont register consul services for staging. change datasource for ansible grafana 2021-06-15 09:23:14 -06:00
Samuel Clay
cc7251610a Disable consul services needs +ie staging. 2021-06-15 11:12:09 -04:00
Jonathan Math
a6d3fff2ba pin grafana version in ansible and add to consul 2021-06-14 20:32:35 -06:00
Samuel Clay
576f932dea Make generate to generate inventory. 2021-06-08 11:38:57 -04:00
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