-
Notifications
You must be signed in to change notification settings - Fork 786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: integrate dockerised prometheus and grafana #3432
Conversation
4fdad2d
to
2a8f7b0
Compare
docker-compose.yml
Outdated
image: grafana/grafana:latest | ||
user: "1000" | ||
environment: | ||
- GF_SECURITY_ADMIN_PASSWORD=evalai |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@burnerlee move this to a docker.env
file for grafana. We can't check in the secrets in the repository
.gitignore
Outdated
@@ -67,3 +67,5 @@ ssl/ | |||
out/ | |||
.idea_modules/ | |||
|
|||
#monitoring-setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a space after #
prometheus/prometheus.yml
Outdated
@@ -0,0 +1,8 @@ | |||
global: | |||
scrape_interval: 5s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@burnerlee we can increase this to 30s
.pre-commit-config.yaml
Outdated
@@ -1,6 +1,6 @@ | |||
repos: | |||
- repo: https://github.com/ambv/black | |||
rev: stable | |||
rev: 21.5b1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@burnerlee you can remove this change from the PR
.gitignore
Outdated
@@ -67,3 +67,5 @@ ssl/ | |||
out/ | |||
.idea_modules/ | |||
|
|||
#monitoring-setup | |||
prometheus/prometheus_db/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add grafana_db
in gitignore too.
docker/dev/docker.env
Outdated
@@ -32,3 +32,5 @@ EKS_NODEGROUP_ROLE_ARN=x | |||
C_FORCE_ROOT=true | |||
ENVIRONMENT=dev | |||
SERVICE_DNS=localhost | |||
|
|||
GF_SECURITY_ADMIN_PASSWORD=evalai |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@burnerlee can you also add environment variables to configure username
.gitignore
Outdated
@@ -67,3 +67,7 @@ ssl/ | |||
out/ | |||
.idea_modules/ | |||
|
|||
# Monitoring-Setup | |||
prometheus/prometheus_db/* | |||
!prometheus/prometheus_db/.gitkeep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@burnerlee the .gitkeep
files are not being ignored. Please fix that too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ram81 I committed these files to push the grafana/grafana_db, prometheus/prometheus_db folders, as these directories are currently empty, i need to keep a gitkeep file in them and commit that file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@burnerlee we don't need to check in the folders if there is nothing in that folder. And you can remove .gitkeep
from promethues
folder as we already have the config file in that folder.
.gitignore
Outdated
@@ -67,3 +67,7 @@ ssl/ | |||
out/ | |||
.idea_modules/ | |||
|
|||
# Monitoring-Setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove -
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@burnerlee let's create a single monitoring
folder and move all grfana and prometheus config files in that folder. Please make the required changes to the docker setup
docker/dev/docker.env
Outdated
@@ -32,3 +32,6 @@ EKS_NODEGROUP_ROLE_ARN=x | |||
C_FORCE_ROOT=true | |||
ENVIRONMENT=dev | |||
SERVICE_DNS=localhost | |||
|
|||
GF_SECURITY_ADMIN_USER=evalai | |||
GF_SECURITY_ADMIN_PASSWORD=evalaiai |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@burnerlee can we change the username to admin
and password to password
for dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @RishabhJain2018 can you review the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good!
this PR adds dockerised Prometheus and Grafana to evalai. The Prometheus server starts at 9090, and the grafana server at 3000. The password for admin user on Grafana is
evalai
. Prometheus has been added as a data source on grafana