Skip to content

Commit

Permalink
Add new docker scrape sources
Browse files Browse the repository at this point in the history
  • Loading branch information
ehcaning committed Jul 20, 2024
1 parent 37e108a commit b0706ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: |
docker --context ${{ env.DOCKER_CONTEXT_NAME }} compose pull
docker --context ${{ env.DOCKER_CONTEXT_NAME }} compose \
--project-name ${{ env.DOCKER_PROJECT_NAME }} up -d --remove-orphans
--project-name ${{ env.DOCKER_PROJECT_NAME }} up -d --remove-orphans --force-recreate
- name: Cleanup Docker context
if: always()
Expand Down
12 changes: 10 additions & 2 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@ global:
scrape_interval: 1m

scrape_configs:
- job_name: 'prometheus'
- job_name: 'Prometheus'
static_configs:
- targets: ['localhost:9090']

- job_name: "Docker Job (102)"
- job_name: "Docker Cadvisor (102)"
static_configs:
- targets: ["192.168.2.102:9323"]

- job_name: "Traefik Cadvisor (107)"
static_configs:
- targets: ["192.168.2.107:9323"]

- job_name: "Grafana Cadvisor (108)"
static_configs:
- targets: ["192.168.2.108:9323"]

0 comments on commit b0706ee

Please sign in to comment.