Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,18 @@ jobs:
fail-fast: false
matrix:
os: [debian, centos, ubuntu]
version: [buster, bullseye, bookworm, 7, 8, 9, jammy, kinetic, lunar]
version: [buster, bullseye, bookworm, 7, 8, 9, noble, mantic, jammy, kinetic, lunar]
exclude:
- os: debian
version: 7
- os: debian
version: 8
- os: debian
version: 9
- os: debian
version: noble
- os: debian
version: mantic
- os: debian
version: jammy
- os: debian
Expand All @@ -76,6 +80,10 @@ jobs:
version: bullseye
- os: centos
version: bookworm
- os: centos
version: noble
- os: centos
version: mantic
- os: centos
version: jammy
- os: centos
Expand Down Expand Up @@ -107,7 +115,7 @@ jobs:
with:
ssh-key: ${{ secrets.BUILDOZER_DEPLOY_KEY }}
repository: quanta-computing/buildozer
ref: 'new-packages-worflow'
ref: 'master'
persist-credentials: true
path: tools

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([quanta-agent],[1.3.0],[[email protected]])
AC_INIT([quanta-agent],[1.3.1],[[email protected]])
AM_INIT_AUTOMAKE([subdir-objects])
LT_INIT

Expand Down
3 changes: 3 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
monikor (1.3.1) quanta; urgency=low
* Fix name matching in Varnish module when suffix are present

monikor (1.3.0) quanta; urgency=low

* Fixed time comparison in metric store
Expand Down
2 changes: 1 addition & 1 deletion include/monikor.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
typedef struct monikor_s monikor_t;
#endif

#define MONIKOR_VERSION "1.3.0"
#define MONIKOR_VERSION "1.3.1"

#include "server.h"
#include "strl.h"
Expand Down
32 changes: 17 additions & 15 deletions lib/modules/varnish/poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,23 @@ size_t varnish_fetch_metrics(varnish_module_t *mod, const char *output) {

gettimeofday(&clock, NULL);
for (size_t i = 0; metrics[i].name; i++) {
if ((found = strstr(output, metrics[i].varnish_name))
&& ((found - VARNISH_SMA_TRANSIENT_LEN < output)
|| strncmp(found - VARNISH_SMA_TRANSIENT_LEN, VARNISH_SMA_TRANSIENT,
VARNISH_SMA_TRANSIENT_LEN))) {
char *endval;
char *val = found + strlen(metrics[i].name);
uint64_t value = strtoull(val, &endval, 10);
if (val == endval)
continue;
if (mod->instance)
sprintf(metric_name, "%s.%s", metrics[i].name, mod->instance);
else
sprintf(metric_name, "%s", metrics[i].name);
n_metrics += monikor_metric_push(mod->mon, monikor_metric_integer(
metric_name, &clock, value, metrics[i].flags));
for (found = output; (found = strstr(found, metrics[i].varnish_name)); found += strlen(metrics[i].varnish_name)) {
if (((found - VARNISH_SMA_TRANSIENT_LEN < output)
|| strncmp(found - VARNISH_SMA_TRANSIENT_LEN, VARNISH_SMA_TRANSIENT, VARNISH_SMA_TRANSIENT_LEN))
&& (isspace(found[strlen(metrics[i].varnish_name)]))) {
char *endval;
char *val = found + strlen(metrics[i].varnish_name);
uint64_t value = strtoull(val, &endval, 10);
if (val == endval)
continue;
if (mod->instance)
sprintf(metric_name, "%s.%s", metrics[i].name, mod->instance);
else
sprintf(metric_name, "%s", metrics[i].name);
n_metrics += monikor_metric_push(mod->mon, monikor_metric_integer(
metric_name, &clock, value, metrics[i].flags));
break;
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions monikor.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: monikor
Version: 1.3.0
Version: 1.3.1
Release: 1%{?dist}
Summary: Quanta monitoring packages
Distribution: Quanta
Expand All @@ -8,7 +8,7 @@ Packager: Matthieu ROSINSKI <[email protected]>
Group: Applications/Internet
URL: http://www.quanta.io
License: toto
Source: monikor-1.3.0.tgz
Source: monikor-1.3.1.tgz

Buildroot : %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%define _unpackaged_files_terminate_build 0
Expand Down