INSTALL PUB CERTS PROXMOX
# Folder need to be created for certificates
mkdir -p /etc/pve/nodes/<node>/certificates/custom
# Copy certificate into folder,
# in this case wget is used
# (local files can also be copied from client)
wget -O /etc/pve/nodes/<node>/certificates/custom/custom-ca.crt https://<vault url>:8200/v1/pki/ca/pem --no-check-certificate
DEPLOY INFLUXDB
helm repo add influxdata https://helm.influxdata.com/
helm upgrade --install influxdb2 influxdata/influxdb2 \
-n influxdb --create-namespace --version 2.1.2 \
-f - <<EOF
---
persistence:
enabled: true
accessMode: ReadWriteOnce
size: 12Gi
ingress:
enabled: true
tls: true
hostname: influxdb.automation.sthings-vsphere.labul.sva.de
className: nginx
secretName: influxdb-ingress-tls
service:
type: ClusterIP
EOF
CONFIGURE INFLUXDB
BUCKET/TOKEN ETC..
CONFIGURE METRIC SHIPPING ON PROXMOX WEB UI
PVE -> Datacenter -> Metric Server -> Add -> InfluxDB
Create: InfluxDB | |||
---|---|---|---|
Name | influxdb-automation | Enabled | YES |
Server | <influxdb.ingress address> | Organization | influxdata |
Port | 443 | Bucket | _monitoring |
Protocol | HTTPS | Token | <32bit Token> |
API Path Prefix | leave empty | Batch Size (b) | leave default |
Timeout (s) | leave default | MTU | leave default |
Verify Certificate | Yes |
CONFIGURE GRAFANA DASHBOARD
Grafana -> Connections -> Add new connection -> InfluxDB
Change Query language
Query language -> Flux
HTTP | |
---|---|
URL | http://influxdb-influxdb2.influxdb.svc.cluster.local |
Allowed Cookies | Don't needed |
Timeout | Don't needed |
AUTH | |||
---|---|---|---|
Basic auth | NO | With Credentials | NO |
TLS Client Auth | NO | With CA Cert | NO |
Skip TLS Verify | YES | ||
Forward OAuth Identity | NO |
InfluxDB Details | |
---|---|
Organization | influxdata |
Token | <InfluxDB Admin's Token> |
Default Bucket | _monitoring |
Min time interval | leave default |
Max series | leave default |