OpenTelemetry Bot d680729c09 [chore] Prepare release 0.90.0 (#29543) hai 1 ano
..
examples d74ca67d07 fix(deps): update opentelemetry-go monorepo (#29334) hai 1 ano
internal 7b7bf438a0 [chore][receiver/simpleprometheus] create metadata (#21714) hai 1 ano
testdata dcce576d3b [chore] Change receiver config tests to unmarshal config only for that component. (part4) (#14562) %!s(int64=2) %!d(string=hai) anos
Makefile a3ddce6bec Fix lint and run for all projects (#217) %!s(int64=4) %!d(string=hai) anos
README.md 562dc48d10 Link component issue badges to the respective issue page (#24642) hai 1 ano
config.go 5133f4ccd6 [chore] use license shortform (#22052) hai 1 ano
config_test.go 5133f4ccd6 [chore] use license shortform (#22052) hai 1 ano
doc.go 5133f4ccd6 [chore] use license shortform (#22052) hai 1 ano
factory.go 62c39d6ba1 [chore] lint issues: redefined built-in funcs (#22915) hai 1 ano
factory_test.go 5133f4ccd6 [chore] use license shortform (#22052) hai 1 ano
go.mod d680729c09 [chore] Prepare release 0.90.0 (#29543) hai 1 ano
go.sum 40b485f08a Update core for v0.90.0 release (#29539) hai 1 ano
metadata.yaml 8a4348cb00 [chore] add codeowners to metadata (#24404) hai 1 ano
receiver.go 62c39d6ba1 [chore] lint issues: redefined built-in funcs (#22915) hai 1 ano
receiver_test.go 5133f4ccd6 [chore] use license shortform (#22052) hai 1 ano

README.md

Simple Prometheus Receiver

Status
Stability beta: metrics
Distributions contrib, observiq, splunk, sumo
Issues Open issues Closed issues
Code Owners @fatsheep9146

The prometheus_simple receiver is a wrapper around the prometheus receiver. This receiver provides a simple configuration interface to configure the prometheus receiver to scrape metrics from a single target.

Configuration

The following settings are required:

  • endpoint (default = localhost:9090): The endpoint from which prometheus metrics should be scraped.

The following settings are optional:

  • collection_interval (default = 10s): The internal at which metrics should be emitted by this receiver.
  • metrics_path (default = /metrics): The path to the metrics endpoint.
  • params (default = {}): The query parameters to pass to the metrics endpoint. If specified, params are appended to metrics_path to form the URL with which the target is scraped.
  • use_service_account (default = false): Whether or not to use the Kubernetes Pod service account for authentication.
  • tls_enabled (default = false): Whether or not to use TLS. Only if tls_enabled is set to true, the values under tls_config are accounted for. This setting will be deprecated. Please use tls instead.

The tls_config section supports the following options. This setting will be deprecated. Please use tls instead:

  • ca_file (no default): Path to the CA cert that has signed the TLS certificate.
  • cert_file (no default): Path to the client TLS certificate to use for TLS required connections.
  • key_file (no default): Path to the client TLS key to use for TLS required connections.
  • insecure_skip_verify (default = false): Whether or not to skip certificate verification.

  • tls: see TLS Configuration Settings for the full set of available options.

Example:

    receivers:
      prometheus_simple:
        collection_interval: 10s
        use_service_account: true
        endpoint: "172.17.0.5:9153"
        tls:
          ca_file: "/path/to/ca"
          cert_file: "/path/to/cert"
          key_file: "/path/to/key"
          insecure_skip_verify: true
    exporters:
      signalfx:
        access_token: <SIGNALFX_ACCESS_TOKEN>
        url: <SIGNALFX_INGEST_URL>

    service:
      pipelines:
        metrics:
          receivers: [prometheus_simple]
          exporters: [signalfx]

The full list of settings exposed for this receiver are documented here with detailed sample configurations here.