Skip to content

Update prometheus config to include the new metrics endpoint #37

@josecelano

Description

@josecelano

Relates to: #36

global:
  scrape_interval: 15s # How often to scrape metrics

scrape_configs:
  - job_name: "tracker_stats"
    metrics_path: "/api/v1/stats"
    params:
      token: ["MyAccessToken"]
      format: ["prometheus"]
    static_configs:
      - targets: ["tracker:1212"]

  - job_name: "tracker_metrics"
    metrics_path: "/api/v1/metrics"
    params:
      token: ["MyAccessToken"]
      format: ["prometheus"]
    static_configs:
      - targets: ["tracker:1212"]

NOTICE: No metrics with the same names exist, so we do not need to relabel configs (relabel_configs section).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions