Compare commits

...

5 Commits

12 changed files with 55 additions and 14 deletions

View File

@ -1 +1 @@
0.9.87
0.9.89

View File

@ -1,5 +1,18 @@
## PVC Changelog
###### [v0.9.89](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.89)
* [API/Worker Daemons] Fixes a bug with the Celery result backends not being properly initialized on Debian 10/11.
* [API Daemon] Fixes a bug if VM CPU stats are missing on Debian 10.
###### [v0.9.88](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.88)
* [API Daemon] Adds an additional Prometheus metrics proxy for Zookeeper stats.
* [API Daemon] Adds a new configuration to enable or disable metric endpoints if desired, defaulting to enabled.
* [API Daemon] Alters and adjusts the metrics output for VMs to complement new dashboard.
* [CLI Client] Adds a "json-prometheus" output format to "pvc connection list" to auto-generate file SD configs.
* [Monitoring] Adds a new VM dashboard, updates the Cluster dashboard, and adds a README.
###### [v0.9.87](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.87)
* [API Daemon] Adds cluster Prometheus resource utilization metrics and an updated Grafana dashboard.

View File

@ -27,7 +27,7 @@ from distutils.util import strtobool as dustrtobool
import daemon_lib.config as cfg
# Daemon version
version = "0.9.87"
version = "0.9.89"
# API version
API_VERSION = 1.0

View File

@ -118,7 +118,7 @@ celery_task_uri = "redis://{}:{}{}".format(
celery = Celery(
app.name,
broker=celery_task_uri,
result_backend=celery_task_uri,
backend=celery_task_uri,
result_extended=True,
)
app.config["broker_url"] = celery_task_uri

View File

@ -68,8 +68,8 @@ for HOST in ${HOSTS[@]}; do
ssh $HOST $SUDO systemctl restart pvcworkerd &>/dev/null
sleep 2
ssh $HOST $SUDO systemctl restart pvchealthd &>/dev/null
sleep 2
ssh $HOST $SUDO systemctl restart pvcnoded &>/dev/null
# sleep 2
# ssh $HOST $SUDO systemctl restart pvcnoded &>/dev/null
echo " done."
echo -n "Waiting for node daemon to be running..."
while [[ $( ssh $HOST "pvc -q node list -f json ${HOST%%.*} | jq -r '.[].daemon_state'" 2>/dev/null ) != "run" ]]; do

View File

@ -2,7 +2,7 @@ from setuptools import setup
setup(
name="pvc",
version="0.9.87",
version="0.9.89",
packages=["pvc.cli", "pvc.lib"],
install_requires=[
"Click",

View File

@ -1187,7 +1187,10 @@ def get_resource_metrics(zkhandler):
)
output_lines.append("# TYPE pvc_vm_vcpus_cpu_time gauge")
for vm in vm_data:
cpu_time = vm["vcpu_stats"]["cpu_time"] / 1000000
try:
cpu_time = vm["vcpu_stats"]["cpu_time"] / 1000000
except Exception:
cpu_time = 0
output_lines.append(f"pvc_vm_vcpus_cpu_time{{vm=\"{vm['name']}\"}} {cpu_time}")
output_lines.append(
@ -1195,7 +1198,10 @@ def get_resource_metrics(zkhandler):
)
output_lines.append("# TYPE pvc_vm_vcpus_user_time gauge")
for vm in vm_data:
user_time = vm["vcpu_stats"]["user_time"] / 1000000
try:
user_time = vm["vcpu_stats"]["user_time"] / 1000000
except Exception:
cpu_time = 0
output_lines.append(
f"pvc_vm_vcpus_user_time{{vm=\"{vm['name']}\"}} {user_time}"
)
@ -1205,7 +1211,10 @@ def get_resource_metrics(zkhandler):
)
output_lines.append("# TYPE pvc_vm_vcpus_system_time gauge")
for vm in vm_data:
system_time = vm["vcpu_stats"]["system_time"] / 1000000
try:
system_time = vm["vcpu_stats"]["system_time"] / 1000000
except Exception:
system_time = 0
output_lines.append(
f"pvc_vm_vcpus_system_time{{vm=\"{vm['name']}\"}} {system_time}"
)

17
debian/changelog vendored
View File

@ -1,3 +1,20 @@
pvc (0.9.89-0) unstable; urgency=high
* [API/Worker Daemons] Fixes a bug with the Celery result backends not being properly initialized on Debian 10/11.
* [API Daemon] Fixes a bug if VM CPU stats are missing on Debian 10.
-- Joshua M. Boniface <joshua@boniface.me> Tue, 09 Jan 2024 12:15:53 -0500
pvc (0.9.88-0) unstable; urgency=high
* [API Daemon] Adds an additional Prometheus metrics proxy for Zookeeper stats.
* [API Daemon] Adds a new configuration to enable or disable metric endpoints if desired, defaulting to enabled.
* [API Daemon] Alters and adjusts the metrics output for VMs to complement new dashboard.
* [CLI Client] Adds a "json-prometheus" output format to "pvc connection list" to auto-generate file SD configs.
* [Monitoring] Adds a new VM dashboard, updates the Cluster dashboard, and adds a README.
-- Joshua M. Boniface <joshua@boniface.me> Fri, 29 Dec 2023 14:50:40 -0500
pvc (0.9.87-0) unstable; urgency=high
* [API Daemon] Adds cluster Prometheus resource utilization metrics and an updated Grafana dashboard.

View File

@ -33,7 +33,7 @@ import os
import signal
# Daemon version
version = "0.9.87"
version = "0.9.89"
##########################################################

View File

@ -2515,7 +2515,9 @@
],
"refresh": "5s",
"schemaVersion": 38,
"tags": [],
"tags": [
"pvc"
],
"templating": {
"list": [
{

View File

@ -49,7 +49,7 @@ import re
import json
# Daemon version
version = "0.9.87"
version = "0.9.89"
##########################################################

View File

@ -44,7 +44,7 @@ from daemon_lib.vmbuilder import (
)
# Daemon version
version = "0.9.87"
version = "0.9.89"
config = cfg.get_configuration()
@ -58,7 +58,7 @@ celery_task_uri = "redis://{}:{}{}".format(
celery = Celery(
"pvcworkerd",
broker=celery_task_uri,
result_backend=celery_task_uri,
backend=celery_task_uri,
result_extended=True,
)