-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add a monitoring collector #25
base: master
Are you sure you want to change the base?
Conversation
Arifin -- Have you tried to contact @metalmatze out-of-band for a review of this PR? |
Oh. This ping is already helpful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some metric names should be updated to follow Prometheus naming conventions. That'd be good. Otherwise it looks great!
timeout: timeout, | ||
|
||
CPUMetrics: prometheus.NewDesc( | ||
"digitalocean_monitoring_cpu", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going with the other Prometheus metrics in the process Exporter this should probably have a _seconds_total suffix.
append(labels, "mode"), nil, | ||
), | ||
MemoryTotalMetrics: prometheus.NewDesc( | ||
"digitalocean_monitoring_memory_total", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be bytes_total suffix
labels, nil, | ||
), | ||
MemoryFreeMetrics: prometheus.NewDesc( | ||
"digitalocean_monitoring_memory_free", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_bytes suffix would be great.
labels, nil, | ||
), | ||
MemoryAvailableMetrics: prometheus.NewDesc( | ||
"digitalocean_monitoring_memory_available", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_bytes suffix would be great.
Add support to retrieve metrics from DigitalOcean monitoring agent.