WIP: Development changes moved from master
- Modified Grafana dashboards - Updated message sender and metrics collector - Added new rate limiting dashboard - Removed count_tests.py
This commit is contained in:
@@ -111,7 +111,7 @@ class TestPrometheusConfig:
|
||||
assert len(static_configs) > 0, "Should have at least one static config"
|
||||
|
||||
targets = static_configs[0].get('targets', [])
|
||||
assert 'host.docker.internal:9091' in targets, "Should scrape host.docker.internal:9091"
|
||||
assert 'bots_server_monitor:9091' in targets, "Should scrape bots_server_monitor:9091"
|
||||
|
||||
def test_telegram_bot_job(self, prometheus_config):
|
||||
"""Тест job для telegram-helper-bot"""
|
||||
@@ -145,7 +145,7 @@ class TestPrometheusConfig:
|
||||
|
||||
# Проверяем targets
|
||||
targets = static_configs[0].get('targets', [])
|
||||
assert 'host.docker.internal:8080' in targets, "Should scrape host.docker.internal:8080"
|
||||
assert 'bots_telegram_bot:8080' in targets, "Should scrape bots_telegram_bot:8080"
|
||||
|
||||
# Проверяем labels
|
||||
labels = static_configs[0].get('labels', {})
|
||||
|
||||
Reference in New Issue
Block a user