Skip to content

Commit

Permalink
Add Grafana Dashboard (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
peimanja authored Apr 22, 2020
1 parent 635311a commit b8032c7
Show file tree
Hide file tree
Showing 5 changed files with 1,413 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,12 @@ Some metrics are not available with Artifactory OSS license. The exporter return
| artifactory_system_healthy | Is Artifactory working properly (1 = healthy). | | ✅ |
| artifactory_system_license | License type and expiry as labels, seconds to expiration as value | `type`, `licensed_to`, `expires` | ✅ |
| artifactory_system_version | Version and revision of Artifactory as labels. | `version`, `revision` | ✅ |


### Grafana Dashboard

Dashboard can be found [here](https://grafana.com/grafana/dashboards/12113).


![Grafana dDashboard](/grafana/dashboard-screenshot-1.png)
![Grafana dDashboard](/grafana/dashboard-screenshot-2.png)
3 changes: 2 additions & 1 deletion collector/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ func (e *Exporter) removeCommas(str string) (float64, error) {
return 0, err
}
strArray := strings.Fields(str)
convertedStr, err := strconv.ParseFloat(reg.ReplaceAllString(strArray[0], ""), 64)
strTrimmed := reg.ReplaceAllString(strArray[0], "")
convertedStr, err := strconv.ParseFloat(strTrimmed, 64)
if err != nil {
return 0, err
}
Expand Down
Binary file added grafana/dashboard-screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added grafana/dashboard-screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b8032c7

Please sign in to comment.