#sre (2022-11)

Prometheus, Prometheus Operator, Grafana, Kubernetes

Archive: https://archive.sweetops.com/monitoring/

2022-11-16

Ruan Arcega avatar
Ruan Arcega

Hi there Is there some Kafka channel ?

2022-11-24

Niv Weiss avatar
Niv Weiss

Hey, we’re using eks fargate and monitoring it using cloudwatch in the meantime.

  1. On which metrics do you monitor?
  2. Are you using any other observability tools other than cloudwatch that works well with eks fargate nodes?

2022-11-29

Ronak Jain avatar
Ronak Jain

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
Ronak Jain
Ozzy Aluyi avatar
Ozzy Aluyi

@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
Ronak Jain

That’s the logs

Ozzy Aluyi avatar
Ozzy Aluyi

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
Ronak Jain

gunicorn.service :

Ronak Jain avatar
Ronak Jain

Changes are not reflected into Logs :

Ronak Jain avatar
Ronak Jain

Help me out

2022-11-30

    keyboard_arrow_up