24 Commits

Author SHA1 Message Date
Alex Ellis
b4e54b90af Remove Dockerfiles
These Dockerfiles are no longer required due to the projects
being built upstream and published to Quay/Docker Hub.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-04-03 09:21:31 +01:00
Alex Ellis
3059b85e87 Remove unused files
Prometheus/Alertmanager are configured in the faas-netes repo
for use in Kubernetes. These files are not required.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-04-03 09:20:38 +01:00
Vivek Singh
de8cb70f85 Update scrape port for prometheus to 8082
Fixes: #1121

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-04-03 09:20:06 +01:00
Vivek Singh
ebc41933b7 Remove prometheus changes
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-03-09 17:28:46 +00:00
Vivek Singh
90ddd56985 Add new HTTPServer to serve /metrics on port 8082
This commit runs a new HTTPServer on port 8082 in a goroutine to serve
/metrics endpoint on a different port.

This also update the configurations and compose files.

Fixes: #1081

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-03-09 17:28:46 +00:00
Lucas Roesler
3bcc10a07e Upgrade prom and alert manager to 2.7.1 and 0.16.1
**What**
- Removes the `alert` label in the scale-up alert
- Updates the annotaitons to use the `function_name` label instead of
the `instance` label that was removed.
- Per prometheus/prometheus#4836 and the related mailing list discussion
https://groups.google.com/d/msg/prometheus-users/7Ul6ngc7Ogs/j_YDszV5BwAJ
the alert value should not be included in the alert labels otherwise
each calculation of the alert is treated like a new alert and then the
use of `for 5s` will not behave as expected.
- Ports the resoltuion openfaas/faas-netes#372

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-02-21 09:51:38 +00:00
Lucas Roesler
f61735b155 Add basic auth to the system alert endpoint
**What**
- Protect the `/system/alert` endpoint when basic auth is enabled
- Update the alert manager config to send the basic auth credentials
- Bump the gateway version

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-01-24 17:45:33 +00:00
Alex Ellis (VMware)
616ac44739 Bump alertmanager to RC version due to bug
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-13 09:26:32 +00:00
Alex Ellis
f954bf0733 Merge master into breakout_swarm
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-02-01 09:29:54 +00:00
Alex Ellis
01450bdf17 Add nmap sample
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-12-30 21:27:20 +00:00
Alex Ellis
28c7d8a0b7 Update gateway DNS entry to cluster-local 2017-08-09 18:43:00 +01:00
Alex Ellis
518d2f41a0 Add K8s specific files 2017-07-25 20:44:14 +01:00
Alex Ellis
79b13f685e Move to HA for gateway 2017-06-26 12:38:00 +01:00
Alex Ellis
9a70a1b991 Add alertmanager Dockerfile for config 2017-06-22 16:22:45 +01:00
Alex Ellis
5becef76c7 Move Prometheus back to 1.5.2 2017-06-22 16:14:34 +01:00
Alex Ellis
1dcab8874a Add Prometheus with config 2017-06-22 15:47:12 +01:00
Alex
cdd5219200 Tweak alertmanager timeout + simplify down-scale of replicas 2017-01-23 22:44:03 +00:00
Alex Ellis
f4fde50ca8 Add +5 / -5 Replica scaling in response to AlertManager 2017-01-22 20:00:48 +00:00
Alex Ellis
158c412251 Initial test for alert unmarshall 2017-01-22 11:09:43 +00:00
Alex Ellis
ff429ce493 Add static front end + functions endpoint. 2017-01-22 10:45:42 +00:00
Alex Ellis
b9bd7c8101 Extract separate files/packages for better visibility. 2017-01-21 15:50:19 +00:00
Alex
3a0739fad0 Add route /system/alert for scaling. 2017-01-21 10:59:29 +00:00
Alex
ab2f8e85f3 Introduce gateway_function_invocation_total to track individual functions
Introduce prometheus_alertmanager into stack - have it fire into webhook stash
2017-01-21 10:11:33 +00:00
Alex Ellis
eb0776e3a3 Update to support docker stack deploy 2017-01-09 13:24:42 +00:00