Refine prometheus scrape in FAQ (#13803)

This commit is contained in:
Rei1010 2023-09-01 17:26:33 +08:00 committed by GitHub
parent 925fb97ccd
commit 076ed0bc59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 11 deletions

View File

@ -3,17 +3,11 @@ title: Can I use Prometheus to scrape application metrics with Istio?
weight: 90
---
Yes. Istio ships with [configuration for Prometheus]({{< github_file >}}/manifests/charts/istio-telemetry/prometheus/templates/configmap.yaml)
that enables collection of application metrics when mutual TLS is enabled or disabled.
The `kubernetes-pods` job collects application metrics from pods in environments without mutual TLS. The `kubernetes-pods-istio-secure` job collects metrics
from application pods when mutual TLS is enabled for Istio.
Both jobs require that the following annotations are added to any deployments from which application metric collection is desired:
- `prometheus.io/scrape: "true"`
- `prometheus.io/path: "<metrics path>"`
- `prometheus.io/port: "<metrics port>"`
Yes. [Prometheus](https://prometheus.io/) is an open source monitoring system and time series database.
You can use Prometheus with Istio to record metrics that track the health of Istio and of
applications within the service mesh. You can visualize metrics using tools like
[Grafana](/docs/ops/integrations/grafana/) and [Kiali](/docs/tasks/observability/kiali/).
See [Configuration for Prometheus](/docs/ops/integrations/prometheus/#Configuration) to understand how to enable collection of metrics.
A few notes: