This repository has been archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comment out Grafana server url and smtp settings
fix #20
- Loading branch information
1 parent
024ad7a
commit 6dd60fc
Showing
3 changed files
with
14 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -457,23 +457,3 @@ Scope offers remote access to the Swarm’s nods and containers, making it easy | |
![Scope Hosts](https://raw.githubusercontent.com/stefanprodan/swarmprom/master/grafana/screens/weave-scope-hosts-v2.png) | ||
|
||
|
||
## Enable emails on Grafana: | ||
|
||
To get SMTP credentials you can use [SendGrid](https://sendgrid.com/) service with free 40K emails per month. | ||
|
||
Export the next env vars: | ||
|
||
```bash | ||
|
||
export GF_SMTP_ENABLED=true | ||
export [email protected] # change to you preference | ||
export GF_SMTP_FROM_NAME=Grafana | ||
export GF_SMTP_HOST=smtp:25 # change, based on your SMTP provider | ||
export GF_SMTP_USER=*** # change, based on your SMTP provider | ||
export GF_SMTP_PASSWORD=*** # change, based on your SMTP provider | ||
|
||
``` | ||
You can test emails by: | ||
- invite users, visit: localhost:`/org/users?gettingstarted` | ||
- send test notification: localhost:`/alerting/notification/new` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,13 +65,13 @@ services: | |
- GF_SECURITY_ADMIN_USER=${ADMIN_USER:-admin} | ||
- GF_SECURITY_ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin} | ||
- GF_USERS_ALLOW_SIGN_UP=false | ||
- GF_SERVER_ROOT_URL=${GF_SERVER_ROOT_URL:-localhost} | ||
- GF_SMTP_ENABLED=${GF_SMTP_ENABLED:-false} | ||
- GF_SMTP_FROM_ADDRESS=${GF_SMTP_FROM_ADDRESS:[email protected]} | ||
- GF_SMTP_FROM_NAME=${GF_SMTP_FROM_NAME:-Grafana} | ||
- GF_SMTP_HOST=${GF_SMTP_HOST:-smtp:25} | ||
- GF_SMTP_USER=${GF_SMTP_USER} | ||
- GF_SMTP_PASSWORD=${GF_SMTP_PASSWORD} | ||
# - GF_SERVER_ROOT_URL=${GF_SERVER_ROOT_URL:-localhost} | ||
# - GF_SMTP_ENABLED=${GF_SMTP_ENABLED:-false} | ||
# - GF_SMTP_FROM_ADDRESS=${GF_SMTP_FROM_ADDRESS:[email protected]} | ||
# - GF_SMTP_FROM_NAME=${GF_SMTP_FROM_NAME:-Grafana} | ||
# - GF_SMTP_HOST=${GF_SMTP_HOST:-smtp:25} | ||
# - GF_SMTP_USER=${GF_SMTP_USER} | ||
# - GF_SMTP_PASSWORD=${GF_SMTP_PASSWORD} | ||
volumes: | ||
- grafana:/var/lib/grafana | ||
deploy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,13 +50,13 @@ services: | |
- GF_SECURITY_ADMIN_USER=${ADMIN_USER:-admin} | ||
- GF_SECURITY_ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin} | ||
- GF_USERS_ALLOW_SIGN_UP=false | ||
- GF_SERVER_ROOT_URL=${GF_SERVER_ROOT_URL:-localhost} | ||
- GF_SMTP_ENABLED=${GF_SMTP_ENABLED:-false} | ||
- GF_SMTP_FROM_ADDRESS=${GF_SMTP_FROM_ADDRESS:[email protected]} | ||
- GF_SMTP_FROM_NAME=${GF_SMTP_FROM_NAME:-Grafana} | ||
- GF_SMTP_HOST=${GF_SMTP_HOST:-smtp:25} | ||
- GF_SMTP_USER=${GF_SMTP_USER} | ||
- GF_SMTP_PASSWORD=${GF_SMTP_PASSWORD} | ||
# - GF_SERVER_ROOT_URL=${GF_SERVER_ROOT_URL:-localhost} | ||
# - GF_SMTP_ENABLED=${GF_SMTP_ENABLED:-false} | ||
# - GF_SMTP_FROM_ADDRESS=${GF_SMTP_FROM_ADDRESS:[email protected]} | ||
# - GF_SMTP_FROM_NAME=${GF_SMTP_FROM_NAME:-Grafana} | ||
# - GF_SMTP_HOST=${GF_SMTP_HOST:-smtp:25} | ||
# - GF_SMTP_USER=${GF_SMTP_USER} | ||
# - GF_SMTP_PASSWORD=${GF_SMTP_PASSWORD} | ||
volumes: | ||
- grafana:/var/lib/grafana | ||
deploy: | ||
|