harvest exporter Storagegrid exporting additional metrics #2540
Replies: 5 comments 6 replies
-
|
hi @santosh725 this is caused by the StorageGRID collector not supporting the template option {
"alarms": {
"critical": 0,
"major": 0,
"minor": 0,
"notice": 0
},
"alerts": {
"critical": 0,
"major": 0,
"minor": 0
},
"nodes": {
"connected": 2,
"administratively-down": 0,
"unknown": 3
}
}Nothing in there about node, cluster, etc. so Harvest was rejecting it. Once I added support for curl -s 'http://localhost:14002/metrics' | grep -Ev "#|metadata_" | sort
sg_health_alarms_critical{cluster="SG5712FP",datacenter="rtp"} 0
sg_health_alarms_major{cluster="SG5712FP",datacenter="rtp"} 0
sg_health_alarms_minor{cluster="SG5712FP",datacenter="rtp"} 0
sg_health_nodes_admin_down{cluster="SG5712FP",datacenter="rtp"} 0
sg_health_nodes_connected{cluster="SG5712FP",datacenter="rtp"} 2
sg_health_nodes_unknown{cluster="SG5712FP",datacenter="rtp"} 3Here's the template I used, name: Health
query: grid/health
object: sg_health
api: v3
schedule:
- data: 1m
counters:
- alarms.critical => alarms_critical
- alarms.major => alarms_major
- alarms.minor => alarms_minor
- nodes.connected => nodes_connected
- nodes.administratively-down => nodes_admin_down
- nodes.unknown => nodes_unknown
only_cluster_instance: true |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the response. Is there any service that I would need to restart inside my pod after updating my template ? |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the quick turnaround. Should I use the same tag 23.11.0-1 to pull the new image from your nightly run. here the end goal is to push these metrics to Datadog and then create alerting on it. Currently with the two objects that are provided I am seeing only 39 metrics. I plan to add additional useful templates( i was testing with the above template health.yaml to get alerts, alarms, node status) and create alerting on our system. Hopefully the fix you are talking about will let me add additional templates . |
Beta Was this translation helpful? Give feedback.
-
|
So I deployed my pod with the nightly tagged image. Then I logged into one of my pod and then updated the default.yaml (/opt/harvest/conf/storagegrid) with the new object. Then I added the corresponding template in this location /opt/harvest/conf/storagegrid/11.6.0 ( not sure if this matters but I am running 11.7 version on my Grid). `After updating it these are logs from my pod. All I see are the collectors from the previous objects in my default.yaml. As for the logs, is there an email I can send them over to ? |
Beta Was this translation helpful? Give feedback.
-
|
@santosh725 replied in email to say that #2542, plus the template shared above worked for him. Closing |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hello,
I run harvest exporter-Storagegrid on K8. Apart from the two default objects provided I am trying to extract additional metrics. but unable to do so. Any help would be greatly appreciated.
here is how I am setting up my configuration.
default.yaml
/opt/harvest/conf/storagegrid # more default.yaml
collector: StorageGrid
schedule:
objects:
Tenant: tenant.yaml
Prometheus: storagegrid_metrics.yaml
Health: health.yaml
health.yaml
/opt/harvest/conf/storagegrid/11.6.0 # more health.yaml
name: Health
query: api/v3/grid/health
object: storagegrid
schedule:
counters:
export_options:
include_all_labels: true
(hyphen are showing up as bullet points )
Beta Was this translation helpful? Give feedback.
All reactions