Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent3
Commits
2b85b01b
Commit
2b85b01b
authored
Oct 17, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishevent: monitoring stats for writer threads include bytes written
parent
367e8492
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
writer.c
bin/varnishevent/writer.c
+10
-6
No files found.
bin/varnishevent/writer.c
View file @
2b85b01b
...
...
@@ -76,10 +76,11 @@ static char *obuf = NULL;
static
pthread_mutex_t
reopen_lock
=
PTHREAD_MUTEX_INITIALIZER
;
/* stats */
static
unsigned
deqs
=
0
;
static
unsigned
waits
=
0
;
static
unsigned
writes
=
0
;
static
unsigned
errors
=
0
;
static
unsigned
long
deqs
=
0
;
static
unsigned
long
bytes
=
0
;
static
unsigned
long
waits
=
0
;
static
unsigned
long
writes
=
0
;
static
unsigned
long
errors
=
0
;
typedef
struct
writer_data_s
{
unsigned
magic
;
...
...
@@ -166,6 +167,7 @@ wrt_write(logline_t *ll)
}
writes
++
;
bytes
+=
VSB_len
(
os
);
MON_StatsUpdate
(
STATS_WRITTEN
);
/* clean up */
...
...
@@ -276,8 +278,10 @@ WRT_Stats(void)
if
(
!
run
)
return
;
LOG_Log
(
LOG_INFO
,
"Writer (%s): seen=%u writes=%u errors=%u waits=%u free=%u"
,
statename
[
wrt_data
.
state
],
deqs
,
writes
,
errors
,
waits
,
wrt_nfree
);
"Writer (%s): seen=%lu writes=%lu bytes=%lu errors=%lu waits=%lu"
" free=%u"
,
statename
[
wrt_data
.
state
],
deqs
,
writes
,
bytes
,
errors
,
waits
,
wrt_nfree
);
}
int
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment