Application Performance Monitoring or Management (APM) means nearly completely different things depending if you’re on the development (R&D) or operations (database/server administration) side of information technology (IT). It’s a different scale, different focus, and different vendors. To get a flavor of this, ask around for APM licensing models.
As a Web application with external APIs, extension points, OS-level events, and plenty of logs, SDL Tridion can be monitored however you see fit, with your vendor of choice. If you’re an avid Tridion World or documentation reader, you already know how to monitor publishing as far back as Tridion 5.3 per Julian Wraith’s article (I’m teasing, I missed this one until I recently searched for Tridion’s monitoring capabilities).Â
Alternatively, if you’ve looked in %TRIDION_HOME%\config\ you may have come across a configuration file called cd_monitor_conf.xml. In it you’ll find two nodes:
- HeartbeatMonitoring
- ServiceHealthMonitorBindings
In Visual Studio 2010, right click on the references folder in the Solution Explorer and select “Add Service Reference…” Then select Advanced > Add Web Reference. Paste in the URL to your monitoring agent (e.g. http://{your CMS site}/Monitoring/TridionMonitoringAgent.asmx). Name it “Monitoring” and click on Add Reference.
You’ve now added a Web Reference instead of a regular Service Reference to the project. Â
using System; using System.Net; using GetStatus.Monitoring; namespace GetStatus{ class Program { static void Main(string[] args) { var agent = new TridionMonitoringAgent { Url = "http://localhost/Monitoring/TridionMonitoringAgent.asmx", Credentials = CredentialCache.DefaultCredentials }; foreach (var s in agent.GetStatus()) { Console.WriteLine("Service {0} : {1}", s.ServiceType, s.Status); } Console.Read(); } } }
The same can be done with a regular service; we saw Mihai whip up an alternative during the same session but using System.ServiceModel, BasicHttpBinding, and an TridionMonitoringAgentSoapClient. Don’t ask me to explain; I was glad to just be able to compile at the end.
To impress the Tridion technical community, build monitoring extension(s) and/or plugins to popular APM software. The catch of course is it probably doesn’t make sense to monitor the CM itself with a GUI in the CME.
*Yes, (me) working for SDL has its privileges. Also, to be clear, TridionDeveloper.com isn’t sponsored by SDL and see my standard I-don’t-represent-my-employer disclaimer back on my blog.Â