We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/ofesseler/gluster_exporter/blob/master/main.go#L210
Im seeing a behaviour where the exporter is returning a 500 from the metrics api with this error:
An error has occurred during metrics gathering: collected metric gluster_up gauge:<value:1 > was collected before with the same name and label values
My guess is that here
volumeInfo, err := ExecVolumeInfo() if err != nil { log.Errorf("couldn't parse xml volume info: %v", err) ch <- prometheus.MustNewConstMetric( up, prometheus.GaugeValue, 0.0, ) } // use OpErrno as indicator for up if volumeInfo.OpErrno != 0 { ch <- prometheus.MustNewConstMetric( up, prometheus.GaugeValue, 0.0, ) } else { ch <- prometheus.MustNewConstMetric( up, prometheus.GaugeValue, 1.0, ) }
ExecVolumeInfo is returning an error and we are also sending up status on whats in volumeInfo.OpErrno. We should be short circuiting there.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/ofesseler/gluster_exporter/blob/master/main.go#L210
Im seeing a behaviour where the exporter is returning a 500 from the metrics api with this error:
My guess is that here
ExecVolumeInfo is returning an error and we are also sending up status on whats in volumeInfo.OpErrno. We should be short circuiting there.
The text was updated successfully, but these errors were encountered: