Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Kafka metrics for the channel #617

Merged
merged 6 commits into from
Sep 23, 2019
Merged

Kafka metrics for the channel #617

merged 6 commits into from
Sep 23, 2019

Conversation

matzew
Copy link
Member

@matzew matzew commented Sep 23, 2019

Helps knative/eventing#1693.

Proposed Changes

  • adding metrics for the channel

/assign @nachocano

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Sep 23, 2019
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 23, 2019
matzew and others added 3 commits September 23, 2019 16:25
Co-Authored-By: mattmoor-sockpuppet <mattmoor+sockpuppet@google.com>
Co-Authored-By: mattmoor-sockpuppet <mattmoor+sockpuppet@google.com>
Co-Authored-By: mattmoor-sockpuppet <mattmoor+sockpuppet@google.com>
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matzew

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -18,6 +18,7 @@ package main
import (
"context"
"flag"
"knative.dev/pkg/metrics"
Copy link
Contributor

Choose a reason for hiding this comment

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

goimports?

// Watch the observability config map
configMapWatcher.Watch(metrics.ConfigMapName(), metrics.UpdateExporterFromConfigMap(component, logger))


Copy link
Contributor

Choose a reason for hiding this comment

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

remove a couple of these empty lines?

9090
```

Access Prometheus targets endpoint [http://localhost:9090/targets](http://localhost:9090/targets). Now, the **kafkachannel_controller**, **kafkachannel_dispatcher** and **kafkachannel_dispatcher** jobs should be up.
Copy link
Contributor

Choose a reason for hiding this comment

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

and kafkachannel_webhook ?

@nachocano
Copy link
Contributor

@matzew very trivial comments and good to go!
Thanks for adding this!!!

@matzew
Copy link
Member Author

matzew commented Sep 23, 2019

@nachocano thanks for the review!

I've patched the PR

@nachocano
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 23, 2019
@knative-prow-robot knative-prow-robot merged commit cd014ce into knative:master Sep 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants