#sre (2022-11)
Prometheus, Prometheus Operator, Grafana, Kubernetes
Archive: https://archive.sweetops.com/monitoring/
2022-11-16

Hi there Is there some Kafka channel ?
2022-11-24

Hey, we’re using eks fargate and monitoring it using cloudwatch in the meantime.
- On which metrics do you monitor?
- Are you using any other observability tools other than cloudwatch that works well with eks fargate nodes?
2022-11-29

HI Guys
Anyone can help me regarding to deployment process : etc/systemd/system/gunicorn.socket —–
[Unit]
Description=gunicorn socket
[Socket]
ListenStream=/run/gunicorn.sock
[Install]
WantedBy=sockets.target
/etc/systemd/system/gunicorn.service —-
[Unit]
Description=Gunicorn service
Requires=gunicorn.sock
After=network.target
[Service]
User=ubuntu
Group=www-data
WordkDirectory=/home/ubuntu/PocEnvironment
Environment="PATH=/PocEnvironment/env/bin"
ExecStart=/usr/bin/gunicorn \
--access-logfile - \
--workers 3 \
--bind unix:/run/gunicorn.sock \
PocEnvironment.src.runner:application
[Install]
WantedBy=multi-user.target
/etc/nginx/sites-enabled
server{
listen 80;
server_name {IP Address};
location /static/ {
root /home/ubuntu/PocEnvironment;
}
location / {
include proxy_params;
proxy_pass <http://unix>:/run/gunicorn.sock;
# proxy_pass <http://0.0.0.0:8000>;
}
}
Applied these commands: sudo systemctl daemon-reload sudo systemctl restart gunicorn sudo systemctl status gunicorn


@Ronak Jain I notice that your WordkDirectory=/home/ubuntu/PocEnvironment
`
should be
WorkingDirectory
Also, ExecStart
is missing your user=ubuntu
in the path. For example `
ExecStart=/home/ubuntu/...
Hope this helps.

That’s the logs

in the service file, change the ExecStart path to
`
ExecStart=/home/ubuntu/PocEnvironment/bin/gunicorn \ -access-logfile - \
--workers 3 \
--bind unix:/run/gunicorn.sock \
PocEnvironment.wsgi:application

gunicorn.service :

Changes are not reflected into Logs :

Help me out