Skip to content

Business intelligence made simple

Added instructions for self-hosted Trend [skip ci]

Andrew Kane22cda9ccc62f
diff --git a/README.md b/README.md
index 6985e91d..923efb3d 100644
--- a/README.md
+++ b/README.md
@@ -389,7 +389,7 @@ Blazer supports two different approaches to anomaly detection.
### Trend
-[Trend](https://trendapi.org/) is easiest to set up but uses an external service.
+[Trend](https://trendapi.org/) is easiest to set up. By default, it uses an external service, but you can run it on your own infrastructure as well.
Add [trend](https://github.com/ankane/trend) to your Gemfile:
@@ -403,6 +403,12 @@ And add to `config/blazer.yml`:
anomaly_checks: trend
```
+For the [self-hosted API](https://github.com/ankane/trend-api), create an initializer with:
+
+```ruby
+Trend.url = "http://localhost:8000"
+```
+
### R
R is harder to set up but doesn’t use an external service. It uses Twitter’s [AnomalyDetection](https://github.com/twitter/AnomalyDetection) library.