define scraping

This commit is contained in:
Michael Jerger 2025-03-10 16:53:50 +01:00
parent f99a0dd747
commit 28e9609b9a
2 changed files with 6 additions and 1 deletions

View file

@ -62,3 +62,8 @@ scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: pushgateway
honor_labels: true
static_configs:
- targets: ['prometheus-pushgateway:9091']

View file

@ -3,6 +3,6 @@ kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/name: prometheus-pushgateway
name: x-prometheus-pushgateway
name: prometheus-pushgateway
namespace: monitoring
automountServiceAccountToken: true