ClusterLabs / ha_cluster_exporter

Prometheus exporter for Pacemaker based Linux HA clusters
Apache License 2.0
79 stars 35 forks source link

unmarshal errors when using sample ha_cluster_exporter/ha_cluster_exporter.yaml #253

Closed hunter86bg closed 4 months ago

hunter86bg commented 5 months ago

When copying ha_cluster_exporter/ha_cluster_exporter.yaml to '/etc/ha_cluster_exporter.web.yaml' I get the following errors:

  line 2: field web not found in type web.Config
  line 7: field log not found in type web.Config
  line 10: field crm-mon-path not found in type web.Config
  line 11: field cibadmin-path not found in type web.Config
  line 12: field corosync-cfgtoolpath-path not found in type web.Config
  line 13: field corosync-quorumtool-path not found in type web.Config
  line 14: field sbd-path not found in type web.Config
  line 15: field sbd-config-path not found in type web.Config
  line 16: field drbdsetup-path not found in type web.Config

Is this the correct yaml file to be used ?

stefanotorresi commented 4 months ago

No, the web configuration is a sub-section of the config, the main config template should be placed in '/etc/ha_cluster_exporter.yaml', as explained in https://github.com/ClusterLabs/ha_cluster_exporter?tab=readme-ov-file#configuration.