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

PodMonitors for Ping Source Controller result in TargetDown alerts from Prometheus #6509

Closed
chrismellard opened this issue Sep 6, 2022 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@chrismellard
Copy link

Describe the bug

Deploying Knative Eventing and Prometheus Operator with the PodMonitor examples from the sandbox repo results in TargetDown alerts when the metrics are unscrapeable by Prometheus. The pingsource-mt-adapter Deployment supposedly exposes metrics on port 9090 yet when I attempt to port-forward to this port the tunnel crashes when I attempt to retrieve anything over this port.

Expected behavior
I expect that the pingsource-mt-adapter Pods that define a metrics port would expose these when a http request is issued against this port

To Reproduce
Vanilla knative eventing install + Prometheus Operator + PodMonitor as per your docs

Knative release version
1.6.0

@chrismellard chrismellard added the kind/bug Categorizes issue or PR as related to a bug. label Sep 6, 2022
@DevSusu
Copy link

DevSusu commented Sep 14, 2022

Same here with knative-serving 1.7.1 knative/docs#5217

@DevSusu
Copy link

DevSusu commented Sep 14, 2022

@chrismellard I've got metrics working by editing config-observability as below.

https://github.com/knative/serving/blob/main/config/core/configmaps/observability.yaml#L94

    # metrics.backend-destination field specifies the system metrics destination.
    # It supports either prometheus (the default) or opencensus.
    metrics.backend-destination: prometheus
    # metrics.request-metrics-backend-destination specifies the request metrics
    # destination. It enables queue proxy to send request metrics.
    # Currently supported values: prometheus (the default), opencensus.
    metrics.request-metrics-backend-destination: prometheus
apiVersion: v1
kind: ConfigMap
metadata:
  name: config-observability
  namespace: knative-serving
  labels:
    app.kubernetes.io/name: knative-serving
    app.kubernetes.io/component: observability
    app.kubernetes.io/version: "1.7.1"
  annotations:
    knative.dev/example-checksum: "fed4756e"
data:
  metrics.backend-destination: prometheus
  metrics.request-metrics-backend-destination: prometheus

@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 14, 2022
@pierDipi
Copy link
Member

Fixed by #6615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

3 participants