Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Fixes helm chart default scrape_configs (#590)
Browse files Browse the repository at this point in the history
* Fixes helm chart default scrape_configs

* lint

* lint

* Fixes tests

* Various fixes

* Fixes tests

* Fixes tests
  • Loading branch information
cyriltovena authored Mar 20, 2023
1 parent ff18c68 commit 51d4116
Show file tree
Hide file tree
Showing 14 changed files with 335 additions and 135 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ define deploy
kubectl get pods
$(BIN)/helm upgrade --install $(1) ./operations/phlare/helm/phlare $(2) \
--set phlare.image.tag=$(IMAGE_TAG) --set phlare.image.repository=$(IMAGE_PREFIX)phlare --set phlare.service.port_name=http-metrics \
--set phlare.podAnnotations."profiles\.grafana\.com\/memory\.port_name"=http-metrics \
--set phlare.podAnnotations."profiles\.grafana\.com\/cpu\.port_name"=http-metrics \
--set phlare.podAnnotations."profiles\.grafana\.com\/goroutine\.port_name"=http-metrics \
--set phlare.components.querier.resources=null --set phlare.components.distributor.resources=null --set phlare.components.ingester.resources=null
endef

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 @@ -171,9 +171,9 @@ Modify the Helm deployment by running:
## Optional: Scrape your own workload's profiles

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.
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) you might be familiar with the Prometheus or Grafana Agent config.

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

```yaml
metadata:
Expand Down
2 changes: 1 addition & 1 deletion operations/phlare/helm/phlare/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: phlare
description: 🔥 horizontally-scalable, highly-available, multi-tenant continuous profiling aggregation system
type: application
version: 0.5.2
version: 0.5.3
appVersion: 0.5.1
dependencies:
- name: minio
Expand Down
5 changes: 4 additions & 1 deletion operations/phlare/helm/phlare/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# phlare

![Version: 0.5.2](https://img.shields.io/badge/Version-0.5.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.1](https://img.shields.io/badge/AppVersion-0.5.1-informational?style=flat-square)
![Version: 0.5.3](https://img.shields.io/badge/Version-0.5.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.1](https://img.shields.io/badge/AppVersion-0.5.1-informational?style=flat-square)

🔥 horizontally-scalable, highly-available, multi-tenant continuous profiling aggregation system

Expand Down Expand Up @@ -38,8 +38,11 @@
| phlare.persistence.annotations | object | `{}` | |
| phlare.persistence.enabled | bool | `false` | |
| phlare.persistence.size | string | `"10Gi"` | |
| phlare.podAnnotations."profiles.grafana.com/cpu.port_name" | string | `"http2"` | |
| phlare.podAnnotations."profiles.grafana.com/cpu.scrape" | string | `"true"` | |
| phlare.podAnnotations."profiles.grafana.com/goroutine.port_name" | string | `"http2"` | |
| phlare.podAnnotations."profiles.grafana.com/goroutine.scrape" | string | `"true"` | |
| phlare.podAnnotations."profiles.grafana.com/memory.port_name" | string | `"http2"` | |
| phlare.podAnnotations."profiles.grafana.com/memory.scrape" | string | `"true"` | |
| phlare.podSecurityContext.fsGroup | int | `10001` | |
| phlare.podSecurityContext.runAsNonRoot | bool | `true` | |
Expand Down
Loading

0 comments on commit 51d4116

Please sign in to comment.