Skip to content

Commit

Permalink
refs groot-mg/identity-service#91: update realm name and scrape config
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciogeneroso committed Nov 4, 2023
1 parent cd2edfc commit 306440b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 26 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 shopping-api
Copyright (c) 2022 groot-mg

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion alertmanager/config/alertmanager-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ receivers:
- name: 'slack-notifications'
slack_configs:
- api_url: https://hooks.slack.com/services/changeme
channel: '#shopping-api-dev-alerts'
channel: '#groot-mg-dev-alerts'
send_resolved: true # this option makes the alert-manager send another message on slack channel once the alert is resolved
2 changes: 1 addition & 1 deletion grafana/provisioning/dashboards/keycloak_realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"id": 27,
"panels": [],
"title": "shopping-api",
"title": "groot-mg",
"type": "row"
},
{
Expand Down
35 changes: 15 additions & 20 deletions prometheus/config/prometheus-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ scrape_configs:
static_configs:
- targets:
- alertmanager:9093
- job_name: tempo
static_configs:
- targets:
- tempo:3100
- job_name: loki
static_configs:
- targets:
- loki:3100
# - job_name: postgres-exporter
# static_configs:
# - targets:
# - postgres-exporter:9187
# - job_name: tempo
# static_configs:
# - targets:
# - tempo:3100
# - job_name: loki
# static_configs:
# - targets:
# - loki:3100
- job_name: postgres-exporter
static_configs:
- targets:
- postgres-exporter:9187
- job_name: keycloak
static_configs:
- targets:
- keycloak:8080
- job_name: keycloak_shopping_api
metrics_path: /realms/shopping-api/metrics
- job_name: keycloak_groot_mg
metrics_path: /realms/groot-mg/metrics
static_configs:
- targets:
- keycloak:8080
Expand All @@ -55,9 +55,4 @@ scrape_configs:
metrics_path: /sales-catalog/private/metrics
static_configs:
- targets:
- sales-catalog:8082
- job_name: basket-service
metrics_path: /basket-service/private/metrics
static_configs:
- targets:
- basket-service:8083
- sales-catalog:8082
6 changes: 3 additions & 3 deletions prometheus/tests/common/general_alerts.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ evaluation_interval: 1m
tests:
- interval: 1m
input_series:
- series: up{job="shopping-api"}
- series: up{job="groot-mg"}
values: 0
alert_rule_test:
- alertname: Prometheus_Target_Scrape_Error
Expand All @@ -14,8 +14,8 @@ tests:
- exp_labels:
alertname: Prometheus_Target_Scrape_Error
severity: minor
job: shopping-api
job: groot-mg
exp_annotations:
summary: Prometheus targets that cannot be scraped
description: |-
Job: `shopping-api`
Job: `groot-mg`

0 comments on commit 306440b

Please sign in to comment.