The new project collector items to increase their monitoring required
Start node-exporter is defined parameters passed
where ( phpEndPoint = kingpin.Flag("collector.phpfpm.endpoint", "phpfpm endPonit address.").Default("tcp://localhost:9000/status").String() )
Custom boot node-exporter is whether to automatically start this exporter
func init() { registerCollector("phpfpm", defaultDisabled, NewPHPFPMCollector) }
This method is a must
func NewPHPFPMCollector() (Collector, error) { return &phpFpmCollector{ }, nil }
This method is also necessary, when required by this method to update the custom data
func (c *phpFpmCollector) Update(ch chan<- prometheus.Metric) (err error) { return nil }