Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
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
trackrdrd
Commits
74ae3eb8
Commit
74ae3eb8
authored
Jun 02, 2014
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MQ plugin for Kafka: stats are all unsigned long
parent
4e034900
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
monitor.c
trackrdrd/src/mq/kafka/monitor.c
+2
-2
mq_kafka.h
trackrdrd/src/mq/kafka/mq_kafka.h
+7
-7
No files found.
trackrdrd/src/mq/kafka/monitor.c
View file @
74ae3eb8
...
...
@@ -40,12 +40,13 @@
static
pthread_t
monitor
;
static
int
run
=
0
;
static
unsigned
seen
,
produced
,
delivered
,
failed
,
nokey
,
badkey
,
nodata
;
static
unsigned
long
seen
,
produced
,
delivered
,
failed
,
nokey
,
badkey
,
nodata
;
/* Call rd_kafka_poll() for each worker to provoke callbacks */
static
void
poll_workers
(
void
)
{
seen
=
produced
=
delivered
=
failed
=
nokey
=
badkey
=
nodata
=
0
;
for
(
int
i
=
0
;
i
<
nwrk
;
i
++
)
if
(
workers
[
i
]
!=
NULL
)
{
kafka_wrk_t
*
wrk
=
workers
[
i
];
...
...
@@ -103,7 +104,6 @@ static void
pthread_exit
(
&
err
);
}
}
seen
=
produced
=
delivered
=
failed
=
nokey
=
badkey
=
nodata
=
0
;
poll_workers
();
MQ_LOG_Log
(
LOG_INFO
,
"mq stats summary: seen=%u produced=%u "
"delivered=%u failed=%u nokey=%u badkey=%u nodata=%u"
,
...
...
trackrdrd/src/mq/kafka/mq_kafka.h
View file @
74ae3eb8
...
...
@@ -46,13 +46,13 @@ typedef struct kafka_wrk {
int
err
;
char
reason
[
LINE_MAX
];
/* errs from rdkafka callbacks */
char
errmsg
[
LINE_MAX
];
/* thread-safe return from MQ_*() */
unsigned
seen
;
unsigned
produced
;
unsigned
delivered
;
unsigned
failed
;
unsigned
nokey
;
unsigned
badkey
;
unsigned
nodata
;
unsigned
long
seen
;
unsigned
long
produced
;
unsigned
long
delivered
;
unsigned
long
failed
;
unsigned
long
nokey
;
unsigned
long
badkey
;
unsigned
long
nodata
;
}
kafka_wrk_t
;
kafka_wrk_t
**
workers
;
...
...
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