-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2033 running against z/OS #75
Comments
The log output you provide doesn't correspond to what you should get with loglevel=debug. At minimum I'd expect to see the active configuration printed out. So I wonder if you're actually picking up the correct config file. |
Hi Mark |
If you've been using the sample Dockerfiles unchanged, then you might be picking up the env var set in Dockerfile.run that also sets a loglevel - env vars have priority over config files or command line. |
Hi Mark Hope you can see what's wrong: Exposing the port to 9290 ( docker run --rm -p 9290:9157) Have expected to get metric but no metrics shows up. When docker container runs : root@b0633s01:~# curl http://localhost:9290/metrics When no docker container runs : root@b0633s01:~# curl http://localhost:9290/metrics Debug logging : root@b0633s01:/home/bdujsk/mq-exporter/mq-metric-samples-master/scripts# ./runMonitor.sh mq_prometheus DEBU[0000] VerifyConfig Config: {cf:{ConfigFile:/opt/config/mq_prometheus.yaml QMgrName:MQT1 ReplyQ:SYSTEM.DEFAULT.MODEL.QUEUE MetaPrefix: TZOffsetString:0h Locale: MonitoredQueues:KTO.,APP.,SYSTEM.,!AMQ.,QM* MonitoredQueuesFile: MonitoredChannels:SYSTEM.,TO.,KTO.* MonitoredChannelsFile: MonitoredTopics: MonitoredTopicsFile: MonitoredSubscriptions: MonitoredSubscriptionsFile: QueueSubscriptionSelector:PUT,GET,GENERAL LogLevel:DEBUG pollInterval:30s PollIntervalDuration:0 rediscoverInterval:1h RediscoverDuration:0 CC:{ClientMode:false UserId: Password: TZOffsetSecs:0 UsePublications:false UseStatus:true UseResetQStats:false ShowInactiveChannels:true CcdtUrl: ConnName: Channel:}} httpListenPort:9157 httpListenHost: httpMetricPath:/metrics namespace:ibmmq httpsCertFile: httpsKeyFile:} |
The only things I can think of are unlikely such as
|
I was able to reproduce with the debug showing the odd responsetype. And I've found what's going on. Looping round the MQGET for buffer increases to get larger response messages modifies the MQMD so that data conversion was not performed on the 2nd loop. The temporary fix of increasing that buffer will work; I've got a proper fix that I'll push in the next update. |
Hi Mark
Great news, what about the issue with the danish characters in the descriptor field?
Venlig hilsen / Best regards
Charles Vindum
Lead Domain Architect - Serverplatforme
***@***.***
Udviklingscenter Fredericia
Erritsø Bygade 102
7000 Fredericia
Tlf.nr.: +45 7924 2435
www.bankdata.dk
Fra: Mark Taylor ***@***.***>
Sendt: 17. september 2021 09:30
Til: ibm-messaging/mq-metric-samples ***@***.***>
Cc: Charles Vindum ***@***.***>; Author ***@***.***>
Emne: Re: [ibm-messaging/mq-metric-samples] 2033 running against z/OS (#75)
I was able to reproduce with the debug showing the odd responsetype. And I've found what's going on. Looping round the MQGET for buffer increases to get larger response messages modifies the MQMD so that data conversion was not performed on the 2nd loop.
The temporary fix of increasing that buffer will work; I've got a proper fix that I'll push in the next update.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#75 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUXOPYGYU6X7JVHEXSNCAXLUCLVALANCNFSM472PYUKQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I think I've got a fix for that too |
Great 😊
Have a nice weekend
Venlig hilsen / Best regards
Charles Vindum
Lead Domain Architect - Serverplatforme
***@***.***
Udviklingscenter Fredericia
Erritsø Bygade 102
7000 Fredericia
Tlf.nr.: +45 7924 2435
www.bankdata.dk
Fra: Mark Taylor ***@***.***>
Sendt: 17. september 2021 09:35
Til: ibm-messaging/mq-metric-samples ***@***.***>
Cc: Charles Vindum ***@***.***>; Author ***@***.***>
Emne: Re: [ibm-messaging/mq-metric-samples] 2033 running against z/OS (#75)
I think I've got a fix for that too
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#75 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUXOPYGXXNTBIAX64ZDFXO3UCLVR3ANCNFSM472PYUKQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
* Add script to build images using buildah + Red Hat UBI base * Temporarily override vendored mq-golang/mqmetric code to deliver fixes * Deal with buffer expansion when there are lots of queues to query AND remote system is different CCSID (#75) * Ensure labels - in particular object DESCR values - are valid UTF8
hopefully fixed now |
Great, we’ll try it out
Venlig hilsen / Best regards
Charles Vindum
Lead Domain Architect - Serverplatforme
***@***.***
Udviklingscenter Fredericia
Erritsø Bygade 102
7000 Fredericia
Tlf.nr.: +45 7924 2435
www.bankdata.dk
Fra: Mark Taylor ***@***.***>
Sendt: 21. september 2021 12:52
Til: ibm-messaging/mq-metric-samples ***@***.***>
Cc: Charles Vindum ***@***.***>; Author ***@***.***>
Emne: Re: [ibm-messaging/mq-metric-samples] 2033 running against z/OS (#75)
hopefully fixed now
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#75 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUXOPYDZ5GEPZ3WXMJERNH3UDBPUNANCNFSM472PYUKQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
There is also this problem for me, and getting this TRACE & DEBUG levels massages: level=debug msg="VerifyConfig Config: {cf:{ConfigFile:/opt/config/mq_prometheus.yaml QMgrName:ACKQM ReplyQ:SYSTEM.DEFAULT.MODEL.QUEUE ReplyQ2: MetaPrefix: TZOffsetString:0h Locale: MonitoredQueues:APP.,!SYSTEM.,!AMQ.,QM MonitoredQueuesFile: MonitoredChannels:SYSTEM.,TO. MonitoredChannelsFile: MonitoredTopics: MonitoredTopicsFile: MonitoredSubscriptions: MonitoredSubscriptionsFile: QueueSubscriptionSelector:PUT,GET,GENERAL LogLevel:DEBUG pollInterval:120s PollIntervalDuration:0 rediscoverInterval:1h RediscoverDuration:0 CC:{ClientMode:false UserId:mqm Password:mqm TZOffsetSecs:0 SingleConnect:false UsePublications:true UseStatus:true UseResetQStats:false ShowInactiveChannels:false CcdtUrl: ConnName:10.15.15.10(1415) Channel:SYSTEM.ADMIN.SVRCONN}} httpListenPort: httpListenHost: httpMetricPath: namespace: httpsCertFile: httpsKeyFile: keepRunning:false reconnectIntervalDuration:0 reconnectInterval:5s}" level=debug msg="In main loop: qMgrConnected=false" ibm-mq-exporter | IBM MQ metrics exporter for Prometheus monitoring ADMIN.COMMAND.QUEUE} replyQObj:{hObj:103 qMgr:0xc0002c2300 Name:AMQ.62A80FD8261ADBE3} qMgrObject:{hObj:101 qMgr:0xc0002c2300 Name:} replyQBaseName:SYSTEM.DEFAULT.MODEL.QUEUE replyQ2BaseName: statusReplyQObj:{hObj:104 qMgr:0xc0002c2300 Name:AMQ.62A80FD8261ADBE4} statusReplyBuf:[] platform:3 commandLevel:800 maxHandles:256 resolvedQMgrName:ACKQM qmgrConnected:true queuesOpened:true subsOpened:false}" |
You're trying to monitor a very old and way-out-of-support V8 queue manager ( |
Hi
I'm trying to get the monitor running on Linux against z/OS MQ server, but getting this error:
oot@b0633s01:/home/bdujsk/mq-exporter/mq-metric-samples-master/scripts# ./runMonitor.sh mq_prometheus
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
/root/tmp/mq-metric-samples/bin
mq_prometheus
Local address is
IBM MQ metrics exporter for Prometheus monitoring
Build : 20210701-134444
Build Platform: Linux/x86_64
INFO[0000] Connected to queue manager MQT1
FATA[0030] MQGET: MQCC = MQCC_FAILED [2] MQRC = MQRC_NO_MSG_AVAILABLE [2033]
There are NO errors in the MQ log or in RACF, and no messages in the DLQ
I can see the connection is running, using MQ Explore, and the client is waiting on an temporary queue
her's my definitions:
global:
useObjectStatus: true
useResetQStats: false
logLevel: DEBUG
metaprefix: ""
pollInterval: 120s
rediscoverInterval: 1h
tzOffset: 0h
connection:
queueManager: MQT1
ccdtUrl:
connName:
channel:
clientConnection: false
replyQueue: SYSTEM.DEFAULT.MODEL.QUEUE
objects:
queues:
queueSubscriptionSelector:
channels:
topics:
subscriptions:
showInactiveChannels: false
prometheus:
port: 9157
metricsPath: "/metrics"
namespace: ibmmq
This is an example of running one of the containers containing
. ./common.sh
if [ -z "$1" ]
then
echo "Must provide a collector name such as 'mq_prometheus'"
exit 1
fi
mon=$1
monbase=
echo $mon | sed "s/mq_//g"
TAG=mq-metric-$monbase
echo $OUTDIR
echo $mon
echo "Local address is $addr"
port="1414"
addr="sysv.bankdata.lan"
docker run --rm -p 9290:9157
-e MQSERVER="GIJ_CLI/TCP/$addr($port)"
-v $OUTDIR/$mon.yaml:/opt/config/$mon.yaml
-it $TAG:$VER
/Charles Vindum, Bankdata
The text was updated successfully, but these errors were encountered: