Skip to content

Commit

Permalink
fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: cui fliter <[email protected]>
  • Loading branch information
cuishuang committed Nov 3, 2022
1 parent b73b5c1 commit 57ed93d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pip3 install --no-index --find-links=/tmp/wheels -r requirements.txt
Now the initialization code of your application should be invoking the web server exposing the profiling data:

```python
# import continous profiling modules
# import continuous profiling modules
from pypprof.net_http import start_pprof_server
import mprofile

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ There is though the [pprof-rs] crate implementing CPU profiling using the [pprof
## Example application

The Rust [example application] has implemented an HTTP handler using the following code snippet. The hanlder creates a CPU profile for the given time in seconds and returns the [pprof] file with gzip compression.
The Rust [example application] has implemented an HTTP handler using the following code snippet. The handler creates a CPU profile for the given time in seconds and returns the [pprof] file with gzip compression.

```rust
fn pprof_handler(request: Request<Body>) -> Response<Body> {
Expand Down
4 changes: 2 additions & 2 deletions docs/sources/operators-guide/deploy-kubernetes/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ Modify the Helm deployment by running:

## Optional: Scrape your own workload's profiles

The Phare chart uses a default configuration that causes its agent to scrape Pods, provided they have the correct annotations.
This functionailty uses [relabel_config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config) and [kubernetes_sd_config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config) that might be familar from the Prometheus or Grafna Agent config.
The Phlare chart uses a default configuration that causes its agent to scrape Pods, provided they have the correct annotations.
This functionality uses [relabel_config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config) and [kubernetes_sd_config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config) that might be familar from the Prometheus or Grafna Agent config.

In order to get Phlare to scrape pods, you must add the following annotations to the the pods:

Expand Down

0 comments on commit 57ed93d

Please sign in to comment.