Here is my experience installing Exporter on Proxmox and visualizing it on Grafana.
python3 -m pip install prometheus-pve-exporter
""" | |
Structlog example configuration with FastAPI. | |
Features: | |
- async bound logger | |
- contextvars to log request-id and other meta data | |
- custom format for default logging loggers and structlog loggers | |
""" | |
import asyncio | |
import logging |
FROM debian:latest | |
# Install basic dev packages | |
RUN apt-get clean && apt-get update && apt-get -y install --no-install-recommends \ | |
apt-utils \ | |
openssh-client \ | |
git \ | |
gnupg2 \ | |
dirmngr \ | |
iproute2 \ |
FROM balabit/syslog-ng:3.35.1 | |
COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf |
version: "3" | |
networks: | |
loki: | |
services: | |
loki: | |
image: grafana/loki:2.4.0 | |
volumes: | |
- ./loki:/etc/loki |
After researching a lot on how to use PyTorch with a RTX 3060 card, specially with older versions or torch
(0.4.0
) and torchvision
(0.2.1
), I noticed that it was either impossible or very hard to do. RTX 3060 and these packages apparently doesn't have compatibility with the same versions of CUDA and cuDNN. I tried to do this by using different combinations with compiled versions available in conda, but didn't work, maybe it could work if you recompile from source these versions.
After all this, actually I was able to use RTX 3060 effectively with latest versions of all these dependencies with two methods:
conda create -n rtx_3060 python=3.6.5
conda activate rtx_3060
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c nvidia
input { | |
udp { | |
port => 10514 | |
type => unifi_syslog | |
} | |
} | |
filter { | |
if [type] == "unifi_syslog" { | |
grok { |
Setup etcdctl using the instructions at https://github.com/etcd-io/etcd/releases/tag/v3.4.13 (changed path to /usr/local/bin
):
Note: if you want to match th etcdctl binaries with the embedded k3s etcd version, please run the curl command for getting the version first and adjust ETCD_VER
below accordingly:
curl -L --cacert /var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert /var/lib/rancher/k3s/server/tls/etcd/server-client.crt --key /var/lib/rancher/k3s/server/tls/etcd/server-client.key https://127.0.0.1:2379/version
NOTE: Content below is written by Adrian Mace. Click here for an updated version.
Below are the key settings that I apply on any unifi installation for optimal performance.
Enable Advanced Features
is enabled