Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update metrics documentation #4138

Merged
merged 10 commits into from
Oct 21, 2021
Merged

Update metrics documentation #4138

merged 10 commits into from
Oct 21, 2021

Conversation

upodroid
Copy link
Member

@upodroid upodroid commented Aug 19, 2021

Fixes: #2931

Proposed Changes

  • Improve general steps for install Prom Operator
  • Add links to Grafana Dashboards
  • Add steps for installing correct Monitors

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 19, 2021
@netlify
Copy link

netlify bot commented Aug 19, 2021

✔️ Deploy Preview for knative ready!

🔨 Explore the source changes: 89a9332

🔍 Inspect the deploy log: https://app.netlify.com/sites/knative/deploys/617154b40deec800070bfaba

😎 Browse the preview: https://deploy-preview-4138--knative.netlify.app/development/admin/observability/collecting-metrics/collecting-metrics

@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 19, 2021
@upodroid
Copy link
Member Author

/hold pending knative-extensions/monitoring#9

@knative-prow-robot knative-prow-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Aug 19, 2021
@abrennan89
Copy link
Contributor

@upodroid could you rebase this and fix the whitespace issues please?

/assign @skonto

@abrennan89 abrennan89 added kind/observability triage/needs-eng-input Engineering input is requested labels Oct 12, 2021
@abrennan89 abrennan89 added this to the Icebox milestone Oct 12, 2021
@@ -18,6 +59,9 @@ In the following example, you can configure a single collector instance using a

!!! tip
For more complex deployments, you can automate some of these steps by using the [OpenTelemetry Operator](https://github.com/open-telemetry/opentelemetry-operator).

!!! caution
The Grafana dashboards at https://github.com/knative-sandbox/monitoring/tree/main/grafana don't work with metrics scraped from OpenTelemetry Collector.
Copy link
Contributor

Choose a reason for hiding this comment

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

We should provide this at some point to complete the story.

Copy link
Member Author

Choose a reason for hiding this comment

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

There is an issue for this. knative/pkg#2174

Copy link
Member Author

Choose a reason for hiding this comment

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

Once the metrics are identical, this will be solved

```bash
kubectl apply -f https://raw.githubusercontent.com/knative-sandbox/monitoring/main/servicemonitor.yaml
```
1. Grafana dashboards can be imported from https://github.com/knative-sandbox/monitoring/tree/main/grafana.
Copy link
Contributor

@skonto skonto Oct 13, 2021

Choose a reason for hiding this comment

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

Could you elaborate more on this (a few screen shots could help I guess). User has to copy for example the content from https://raw.githubusercontent.com/knative-sandbox/monitoring/main/grafana/knative-control-plane-efficiency.json and import it. Do we plan to publish these at grafana.com so we can import them via a url?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have reworked this now.

https://github.com/knative-sandbox/monitoring/pull/9/files

I added grafana/dashboards.yaml file.

## About Prometheus

[Prometheus](https://prometheus.io/) is an open-source tool for collecting and
aggregating timeseries metrics. It can be used to scrape the OpenTelemetry collector that you created in the previous step.
Copy link
Contributor

Choose a reason for hiding this comment

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

... or its main usage is as a standalone monitoring and alerting system. Here Prometheus is described as a complement of OTEL which is not really the case.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@skonto
Copy link
Contributor

skonto commented Oct 13, 2021

@upodroid thanks for adding this part it is important for the getting started UX of Knative Observability. I tested it locally on Minikube. I left a few comments about UX mainly. Let's make it as smooth as possible.

@skonto
Copy link
Contributor

skonto commented Oct 15, 2021

@upodroid gentle ping.

@upodroid
Copy link
Member Author

I'll have this ready by the end of the day, i'm retesting the PR in the monitoring repo now.

@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 15, 2021
@skonto
Copy link
Contributor

skonto commented Oct 18, 2021

@upodroid just a few minor ones. Thanks for the updates!

@skonto
Copy link
Contributor

skonto commented Oct 21, 2021

@upodroid let's rebase.

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 21, 2021
@skonto
Copy link
Contributor

skonto commented Oct 21, 2021

@abrennan89 @upodroid let's get this merged once rebased. I run the PR locally renders fine. /lgtm.

@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 21, 2021
@upodroid
Copy link
Member Author

This is ready now

@abrennan89
Copy link
Contributor

/hold pending knative-extensions/monitoring#9

Does it matter that this isn't merged yet?

@upodroid
Copy link
Member Author

It shouldn't as long as we merge it before v1 is cut at the end of the month. @dprotaso should be back on Monday the 25th to merge it.

@abrennan89
Copy link
Contributor

/unhold
/lgtm
/approve

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 21, 2021
@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 21, 2021
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abrennan89, upodroid

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 21, 2021
@knative-prow-robot knative-prow-robot merged commit 4f857c1 into knative:main Oct 21, 2021
@upodroid
Copy link
Member Author

The monitoring PR is merged.

@skonto
Copy link
Contributor

skonto commented Oct 26, 2021

Thank you @upodroid! Great job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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. triage/needs-eng-input Engineering input is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document Observability support for Knative components and Knative services
4 participants