ulranh / sapnwrfc_exporter

sapnwrfc_exporter - SAP NWRFC Exporter for Prometheus
Apache License 2.0
31 stars 6 forks source link

Field metrics error #7

Closed ChernykhAN closed 4 years ago

ChernykhAN commented 4 years ago

I'm getting error with field metric

time="28-10-2020 19:00:02" level=error msg="getRfcData: len(labels) != len(labelValues)" server=chq system=chq

configuration

[[FieldMetrics]]
  Name = "sap_kernel_info"
  Help = "SAP kernel and db client info"
  MetricType = "gauge"
  TagFilter = []
  AllServers = true
  FunctionModule = "TH_SAPREL2"
  fieldLabels = ["kern_rel", "kern_dblib", "kern_patchlevel"]
ulranh commented 4 years ago

I adapted the error message for that case. In my view one or more of the fieldLabels in ["kern_rel", "kern_dblib", "kern_patchlevel"] is no valid export parameter of your version of function module TH_SAPREL2 perhaps due to the logon language.