Skip to content

Commit

Permalink
Merge pull request #51 from protofy/feat/report_probe_status
Browse files Browse the repository at this point in the history
feat: Add reporting of probe status
  • Loading branch information
eviscares authored Jan 6, 2025
2 parents 178c86f + b83e9e5 commit f5cb611
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.2
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/prometheus-agent/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# prometheus-agent

![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.31.3](https://img.shields.io/badge/AppVersion-v0.31.3-informational?style=flat-square)
![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.31.3](https://img.shields.io/badge/AppVersion-v0.31.3-informational?style=flat-square)

Helm chart to deploy a version of the grafana agent geared towards scraping prometheus metrics and sending them to a Prometheus/Mimir instance via remote write

Expand Down
16 changes: 16 additions & 0 deletions charts/prometheus-agent/templates/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,22 @@ data:
source_labels:
- __meta_kubernetes_pod_node_name
target_label: node
- job_name: 'kubelet-probes'
kubernetes_sd_configs:
- role: node
scheme: https
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
relabel_configs:
- action: labelmap
regex: __meta_kubernetes_node_label_(.+)
- target_label: __address__
replacement: kubernetes.default.svc:443
- source_labels: [__meta_kubernetes_node_name]
regex: (.+)
target_label: __metrics_path__
replacement: /api/v1/nodes/${1}/proxy/metrics/probes
{{- end }}
{{- if .Values.monitor_pods }}
- job_name: "kubernetes-pods"
Expand Down

0 comments on commit f5cb611

Please sign in to comment.