Skip to content

Commit

Permalink
Added source and target to rpo
Browse files Browse the repository at this point in the history
  • Loading branch information
arogarth authored Dec 4, 2017
1 parent 96302a6 commit d9b0e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func NewExporter() *Exporter {
ZertoVpgActualRpo: prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: namespace, Name: "vpg_actual_rpo",
Help: "Actual RPO of the VPG.",
}, defaultLabels, ),
}, append(defaultLabels, "source", "target"), ),
ZertoVpgConfiguredRpoSeconds: prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: namespace, Name: "vpg_configured_rpo",
Help: "Configured RPO of the VPG.",
Expand Down Expand Up @@ -254,7 +254,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
g.Set(float64(vpgs[i].UsedStorageInMB))
g.Collect(ch)

g = e.ZertoVpgActualRpo.WithLabelValues(vpgs[i].VpgName, vpgs[i].OrganizationName)
g = e.ZertoVpgActualRpo.WithLabelValues(vpgs[i].VpgName, vpgs[i].OrganizationName, vpgs[i].SourceSite, vpgs[i].TargetSite)
g.Set(float64(vpgs[i].ActualRPO))
g.Collect(ch)

Expand Down

0 comments on commit d9b0e49

Please sign in to comment.