cc-metric-collector/receivers
2022-02-28 17:26:28 +01:00
..
metricReceiver.go Additional comments 2022-02-28 12:16:48 +01:00
natsReceiver.go
natsReceiver.md Update README and receiver-specific pages 2022-02-28 17:26:28 +01:00
prometheusReceiver.go Add scraper for Prometheus clients (#47) 2022-02-25 14:46:29 +01:00
prometheusReceiver.md Update README and receiver-specific pages 2022-02-28 17:26:28 +01:00
README.md Update README and receiver-specific pages 2022-02-28 17:26:28 +01:00
receiveManager.go Fix: MetricReceiver uses uninitialized values, when initialization fails 2022-02-23 15:58:51 +01:00
sampleReceiver.go Additional comments 2022-02-28 12:16:48 +01:00

CCMetric receivers

This folder contains the ReceiveManager and receiver implementations for the cc-metric-collector.

Configuration

The configuration file for the receivers is a list of configurations. The type field in each specifies which receiver to initialize.

{
  "myreceivername" : {
    "type": "receiver-type",
    <receiver-specific configuration>
  }
}

This allows to specify

Available receivers

  • nats: Receive metrics from the NATS network
  • prometheus: Scrape data from a Prometheus client

Contributing own receivers

A receiver contains a few functions and is derived from the type Receiver (in metricReceiver.go):

For an example, check the sample receiver