Google stack driver support for gce-windows instance

232 views
Skip to first unread message

harithjvt

unread,
Aug 1, 2018, 12:46:43 AM8/1/18
to google-stackdr...@googlegroups.com
Hi,

Below mentioned is my requirement. Please let me know whether this can be doable or not?

Exact requirement:
1. Create compute engine windows instance
2. Download and install tomcat.
3. Deploy Java web application in the tomcat.
4. Install stack driver logging and monitoring agent.
5. My application logs should be shown in the logs viewer.

Thanks in advance.

Igor Peshansky

unread,
Aug 1, 2018, 9:14:30 AM8/1/18
to harithjvt, Google Stackdriver Discussion Forum
Hi,

The Windows logging agent won't collect Tomcat logs by default, but it's certainly possible to configure it to do that. You can add a custom config file for Tomcat by following https://cloud.google.com/logging/docs/agent/configuration.
        Igor
-- sent from a mobile device, please excuse tyops and omissns

--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Stackdriver Discussion Google Group (google-stackdr...@googlegroups.com) to participate in discussions with other members of the GoogleStackdriver community.
---
You received this message because you are subscribed to the Google Groups "Google Stackdriver Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-stackdriver-d...@googlegroups.com.
To post to this group, send email to google-stackdr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/CAD8%2B37hPnYp9oR1SsAG8v%3DJYUrSiwA%3DhfppWdhz2gJUM7Kik8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Igor Peshansky

unread,
Aug 1, 2018, 9:17:41 AM8/1/18
to harithjvt, Google Stackdriver Discussion Forum
And, just for completeness (since you also mentioned the monitoring agent in #4, though #5 only said "logs") it's not possible to monitor Tomcat via the Windows monitoring agent today.

        Igor
-- sent from a mobile device, please excuse tyops and omissns

harithjvt

unread,
Aug 1, 2018, 9:50:58 PM8/1/18
to Igor Peshansky, Google Stackdriver Discussion Forum
Thanks loads for your confirmation. Can we expect this in the near future releases?

harithjvt

unread,
Aug 1, 2018, 10:07:21 PM8/1/18
to Igor Peshansky, Google Stackdriver Discussion Forum
Hi,

Do we have any sample/reference windows specific .Conf file to configure agent to collect logs?

Your help is immense. I appreciate it.

Igor Peshansky

unread,
Aug 2, 2018, 12:10:04 AM8/2/18
to harithjvt, Google Stackdriver Discussion Forum
Sorry, we don't currently have a set timeline for application monitoring on Windows besides the ones already implemented (MS SQL and IIS).

        Igor
-- sent from a mobile device, please excuse tyops and omissns

Igor Peshansky

unread,
Aug 2, 2018, 12:15:40 AM8/2/18
to harithjvt, Google Stackdriver Discussion Forum
The configuration won't be Windows-specific. You would literally add an in_tail input and point it to the Tomcat logs. The log directory is very likely specific to your installation, so you'd have to find that.

        Igor
-- sent from a mobile device, please excuse tyops and omissns

Igor Peshansky

unread,
Aug 2, 2018, 8:08:32 AM8/2/18
to harithjvt, Google Stackdriver Discussion Forum
You're welcome.

Let's keep these on the list, please.

        Igor
-- sent from a mobile device, please excuse tyops and omissns

On Thu, Aug 2, 2018, 2:03 AM harithjvt <hari...@gmail.com> wrote:
Thanks a lot for your prompt response .Helped me very much.

Cheers,
Harith
--
Cheers,
Harith

Igor Peshansky

unread,
Aug 2, 2018, 8:29:31 AM8/2/18
to harithjvt, Google Stackdriver Discussion Forum
Let's keep these on the list, please. That way others benefit from the answers and can chime in if needed.

I'm not sure I'm parsing all your questions correctly, but let me try.

Environments supported by the Stackdriver monitoring agent are listed on the overview page: https://cloud.google.com/monitoring/agent/.

The Windows agent only monitors a certain predefined set of applications (MS SQL and IIS) along with a fixed set of system metrics. I was pretty sure we had a documentation page stating that the Windows monitoring agent can't be configured, but apparently not. The closest I've found is the last paragraph of the intro on https://cloud.google.com/monitoring/agent/install-agent. Apologies for the confusion — we will make this clearer.

Any metric reported by the agent can be used for both charting and alerting.

Hope this helps.

        Igor
-- sent from a mobile device, please excuse tyops and omissns

On Thu, Aug 2, 2018, 5:26 AM harithjvt <hari...@gmail.com> wrote:
Hi Igor,

Need few more clarifications. Could you please provide that.

1. Is it that GCE does NOT support windows based instances of any type of (systems/network/application) monitoring/alerting on system/app/logs events 

    or 

does GCE does NOT support ONLY windows based instances applications monitoring/alerting?

 

2. How about GCE support for windows based instances and apps deployment on GCP?

 

3. Since GCP supports cross/hybrid cloud, can we monitor AWS instances that are windows based and raise alerts?

 

4. Can we have any reference official GCP DOC URLs where it says windows based instances monitoring whether on Google cloud or AWS is NOT  supported?


Thanks loads in advance.


Cheers,

Harith


--
Cheers,
Harith

Igor Peshansky

unread,
Aug 2, 2018, 11:38:51 AM8/2/18
to harithjvt, Google Stackdriver Discussion Forum
Again, let's keep these on the list, please. That way others benefit from the answers and can chime in if needed. You can use the "Reply-All" feature of your email client to make sure the list stays cc'd.

As I said earlier in the thread, you cannot currently monitor (as in ingest metrics for) Tomcat on Windows via the Windows monitoring agent. Since you can only set up alerts for metrics you ingest, you cannot get alerting for Tomcat metrics on Windows either. I'm referring specifically to the metrics you'd normally get when you set up Tomcat monitoring on Linux (https://cloud.google.com/monitoring/agent/plugins/tomcat).

You *can* configure the Windows logging agent to ingest Tomcat application *logs*. Once the logs are ingested, you can set up logs-based metrics (https://cloud.google.com/logging/docs/logs-based-metrics/), which will then let you set up alerts. Note that you will likely not get the same information from the logs as you would get from the Linux Tomcat monitoring setup.

        Igor
-- sent from a mobile device, please excuse tyops and omissns

On Thu, Aug 2, 2018, 8:26 AM harithjvt <hari...@gmail.com> wrote:
Thanks Igor. I think the documentation is bit abstract w.r.t windows as I've started my R&D with that only. Let me ask few more questions with clear cut scenarios.

1) I've created an EC2 instance with windows image. Installed tomcat and deployed one Web Application. Can I monitor ( create alerts) that application using stack driver?

2) Monitoring not supported for windows instance, Does it mean can't we create alerts out of whatever application logs generated on that windows instance.

Sorry if I am bothering you further. But this is great discussion and support you are providing. 
--
Cheers,
Harith

harithjvt

unread,
Aug 2, 2018, 12:19:57 PM8/2/18
to Igor Peshansky, Google Stackdriver Discussion Forum
Thanks for the information. 
Reply all
Reply to author
Forward
0 new messages