Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

all: accept MetricsExporters by implementation #294

Merged
merged 1 commit into from
Jan 10, 2019

Conversation

odeke-em
Copy link
Member

@odeke-em odeke-em commented Jan 6, 2019

ExportersFromYAMLConfig now returns metricsExporters
if the underlying code implements exporter.MetricsExporter.

@odeke-em odeke-em requested review from pjanotti and songy23 January 6, 2019 15:32
@odeke-em odeke-em force-pushed the prepare-for-metrics-exporters branch 2 times, most recently from bd4d7d7 to 686d7af Compare January 6, 2019 19:07
odeke-em added a commit that referenced this pull request Jan 6, 2019
Added a Prometheus metrics exporter that allows
us to export metrics.
Its configuration is available under YAML field option
```yaml
exporters
    prometheus:
        <key>: <value>
```
where <key> could be any of

* address -- the address on which to run the Prometheus
scrape endpoint /metrics on

* const_labels -- labels that will be applied to each
metric that is exported

* namespace -- optionally if defined records metrics
under a specific namespace, leave it blank to preserve
the names of the proxied metrics (if that's the case)

This change uses the Prometheus metrics exporter
at github.com/orijtech/prometheus-go-metrics-exporter
which will be handed over to the OpenCensus community
whenever a repository is created under the
"census-ecosystem" organization.

Fixes #292
Depends on #294
@songy23
Copy link
Contributor

songy23 commented Jan 7, 2019

FAIL github.com/census-instrumentation/opencensus-service/exporter/exporterparser [build failed]

Please fix the build.

@odeke-em
Copy link
Member Author

odeke-em commented Jan 8, 2019

@songy23 please help me make a new release for OpenCensus-Proto as per census-instrumentation/opencensus-proto#161
otherwise trying finishing the build fix gives

$ GO111MODULE=on go get github.com/census-instrumentation/opencensus-proto@master contrib.go.opencensus.io/exporter/ocagent@master
go: finding github.com/census-instrumentation/opencensus-proto master
go: finding contrib.go.opencensus.io/exporter/ocagent master
go get: inconsistent versions:
	contrib.go.opencensus.io/exporter/[email protected] from contrib.go.opencensus.io/exporter/ocagent@master requires github.com/census-instrumentation/[email protected] (not github.com/census-instrumentation/[email protected] from github.com/census-instrumentation/opencensus-proto@master)

Copy link

@pjanotti pjanotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source changes LGTM and you guys are already on top of the build issue. Nice to see metrics coming.

@odeke-em odeke-em force-pushed the prepare-for-metrics-exporters branch from 686d7af to d2f0713 Compare January 10, 2019 07:53
odeke-em added a commit that referenced this pull request Jan 10, 2019
Added a Prometheus metrics exporter that allows
us to export metrics.
Its configuration is available under YAML field option
```yaml
exporters
    prometheus:
        <key>: <value>
```
where <key> could be any of

* address -- the address on which to run the Prometheus
scrape endpoint /metrics on

* const_labels -- labels that will be applied to each
metric that is exported

* namespace -- optionally if defined records metrics
under a specific namespace, leave it blank to preserve
the names of the proxied metrics (if that's the case)

This change uses the Prometheus metrics exporter
at github.com/orijtech/prometheus-go-metrics-exporter
which will be handed over to the OpenCensus community
whenever a repository is created under the
"census-ecosystem" organization.

Fixes #292
Depends on #294
ExportersFromYAMLConfig now returns metricsExporters too.
@odeke-em odeke-em force-pushed the prepare-for-metrics-exporters branch from d2f0713 to e741b37 Compare January 10, 2019 14:31
@odeke-em
Copy link
Member Author

Thank you for the review @pjanotti!

@odeke-em odeke-em merged commit e741b37 into master Jan 10, 2019
@odeke-em odeke-em deleted the prepare-for-metrics-exporters branch January 10, 2019 14:50
odeke-em added a commit that referenced this pull request Jan 10, 2019
Added a Prometheus metrics exporter that allows
us to export metrics.
Its configuration is available under YAML field option
```yaml
exporters
    prometheus:
        <key>: <value>
```
where <key> could be any of

* address -- the address on which to run the Prometheus
scrape endpoint /metrics on

* const_labels -- labels that will be applied to each
metric that is exported

* namespace -- optionally if defined records metrics
under a specific namespace, leave it blank to preserve
the names of the proxied metrics (if that's the case)

This change uses the Prometheus metrics exporter
at github.com/orijtech/prometheus-go-metrics-exporter
which will be handed over to the OpenCensus community
whenever a repository is created under the
"census-ecosystem" organization.

Fixes #292
Depends on #294
odeke-em added a commit that referenced this pull request Jan 10, 2019
Added a Prometheus metrics exporter that allows
us to export metrics.
Its configuration is available under YAML field option
```yaml
exporters
    prometheus:
        <key>: <value>
```
where <key> could be any of

* address -- the address on which to run the Prometheus
scrape endpoint /metrics on

* const_labels -- labels that will be applied to each
metric that is exported

* namespace -- optionally if defined records metrics
under a specific namespace, leave it blank to preserve
the names of the proxied metrics (if that's the case)

This change uses the Prometheus metrics exporter
at github.com/orijtech/prometheus-go-metrics-exporter
which will be handed over to the OpenCensus community
whenever a repository is created under the
"census-ecosystem" organization.

Fixes #292
Depends on #294
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants