Skip to content

Instantly share code, notes, and snippets.

@ibmmqmet
ibmmqmet / README.md
Last active October 6, 2022 06:16
Basic MQ Queue Rate Monitoring - see https://marketaylor.synology.me/?p=1353

This gist shows how a few simple scripts can be chained together to create very basic MQ monitor that lists puts/sec in a table.

@ibmmqmet
ibmmqmet / JmsBrowser.java
Last active October 6, 2022 06:17
Building an MQ RFH2 structure - see https://marketaylor.synology.me/?p=1335
import java.util.Enumeration;
import javax.jms.Connection;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Queue;
import javax.jms.QueueBrowser;
import javax.jms.Session;
import javax.jms.TextMessage;
@ibmmqmet
ibmmqmet / README.md
Last active January 10, 2021 17:19
IBM MQ queue manager configuration as JSON

This program uses IBM MQ's REST interface to get a copy of all object definitions. It's similar to the dmpmqcfg program but uses JSON as the output format which might be more convenient for some uses.

See my blog post for more information.

@ibmmqmet
ibmmqmet / Configuration View-1569875137366.json
Last active November 28, 2019 20:51
Storing MQ configuration in MySQL
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@ibmmqmet
ibmmqmet / MQMonitor.java
Created November 20, 2017 09:21
Adding resource statistics to your applications.
/*
Copyright (c) IBM Corporation 2017
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software