#sre (2022-11)
Prometheus, Prometheus Operator, Grafana, Kubernetes
Archive: https://archive.sweetops.com/monitoring/
2022-11-16
![ruan.arcega avatar](https://avatars.slack-edge.com/2019-06-28/682016987190_83da81f915037f35f3ec_72.png)
Hi there Is there some Kafka channel ?
2022-11-24
![Niv Weiss avatar](https://avatars.slack-edge.com/2022-03-22/3278518702036_e8e9dc4b640af88a835a_72.jpg)
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
![Ronak Jain avatar](https://avatars.slack-edge.com/2022-11-18/4392433165573_b9331bad1786e1f62725_72.png)
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 avatar](https://avatars.slack-edge.com/2022-11-18/4392433165573_b9331bad1786e1f62725_72.png)
![Ozzy Aluyi avatar](https://avatars.slack-edge.com/2021-09-18/2513114117316_a52a7982930735e2c8bc_72.png)
@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.
![Ronak Jain avatar](https://avatars.slack-edge.com/2022-11-18/4392433165573_b9331bad1786e1f62725_72.png)
That’s the logs
![Ozzy Aluyi avatar](https://avatars.slack-edge.com/2021-09-18/2513114117316_a52a7982930735e2c8bc_72.png)
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
![Ronak Jain avatar](https://avatars.slack-edge.com/2022-11-18/4392433165573_b9331bad1786e1f62725_72.png)
gunicorn.service :
![Ronak Jain avatar](https://avatars.slack-edge.com/2022-11-18/4392433165573_b9331bad1786e1f62725_72.png)
Changes are not reflected into Logs :
![Ronak Jain avatar](https://avatars.slack-edge.com/2022-11-18/4392433165573_b9331bad1786e1f62725_72.png)
Help me out