-
Notifications
You must be signed in to change notification settings - Fork 8
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
smf service state gauges #9
Comments
That is a good idea. I wonder what is the best way to implement these metrics though. One way I can think of is to have a single metric with labels for each service. We can encode the service status in the metric value. For example:
To enhance the agent response time, we can query SMF directly instead of forking and execing
Another way to achieve this is to write a plugin to export all the necessary information, which might make more sense for on-prem customers. |
I'd imagine we'd only be interested in services that were set to "enabled". I don't believe we ever need to run anything inside the zone. Everything should be able to be gotten from the GZ. I believe the current cmon-agent is always ran in the GZ correct? Thanks for the link to the plugin documentation. |
@Smithx10 - That is correct, cmon-agent runs as a service in GZ. Currently, all NGZ stats exported by cmon-agent are collected from the global zone. In fact, most of NGZ stats come directly from kstat, which is available in GZ for all the zones. However, the case for I believe |
@Smithx10 This has been implemented in triton-cmon-plugins. It's currently undecided how much we should bring directly into cmon vs being in plugins. |
It would be helpful to expose gauges of smf service states from the GZ and Native SmartOS Zones. This would make it very simple to see over time in Grafana which services were down.
The text was updated successfully, but these errors were encountered: