Logo
TGCATALOG
Catalog Collections Blog
DevOps - interview questions

DevOps - interview questions

DevOps interviews.

No ratings
2,068
27.10.2026
2,068
27.10.2026
No ratings
2,068
27.10.2026
Safe redirect via bot
О канале

DevOps interviews.

Подписчиков 5,577
Тематика Technology
Язык English
Ссылка t.me/easy_devops

We also recommend

Kekaton AI | Voiceover and voice clone
Kekaton AI | Voiceover and voice clone
Bot

AI bot for text-to-speech and voice cloning in Telegram. Create audio using neural network quickly and easily.

Description

Interview questions on DevOps.

Latest posts

DevOps - interview questions
DevOps - interview questions
🔒Открыть пост
и посмотреть медиа
🤔 Как сделать так чтобы клиенты отдавали метрики в Prometheus? В Prometheus данные собираются по pull-модели – сервер сам запрашивает метрики у клиентов. Чтобы клиенты отдавали метрики, нужно: 1. Настроить приложение на экспонирование метрик в формате Prometheus. 2. Добавить Prometheus job для сбора этих метрик. 3. Опционально – использовать Pushgateway, если pull-модель не подходит. 🚩Экспонирование метрик в формате Prometheus Если приложение написано на Go, Python, Java или Node.js. Prometheus предлагает официальные клиентские библиотеки: Go: [prometheus/client_golang](Ссылка скрыта Python: [prometheus_client](Ссылка скрыта Java: [simpleclient](Ссылка скрыта Node.js: [prom-client](Ссылка скрыта Пример для Python 1⃣Установим библиотеку pip install prometheus_client 2⃣Добавим в код экспонирование метрик from prometheus_client import start_http_server, Counter import time # Создаем счетчик запросов REQUEST_COUNT = Counter('app_requests_total', 'Total requests') def process_request(): REQUEST_COUNT.inc() # Увеличиваем счетчик time.sleep(1) # Имитация обработки запроса if __name__ == '__main__': start_http_server(8000) # Открываем метрики на 8000 порту while True: process_request() 🚩Пример для Node.js 1⃣Установим библиотеку: npm install prom-client express 2⃣Код сервера: const express = require('express'); const client = require('prom-client'); const app = express(); const collectDefaultMetrics = client.collectDefaultMetrics; collectDefaultMetrics(); const requestCounter = new client.Counter({ name: 'http_requests_total', help: 'Total HTTP requests', }); app.get('/', (req, res) => { requestCounter.inc(); res.send('Hello, World!'); }); app.get('/metrics', (req, res) => { res.set('Content-Type', client.register.contentType); res.end(client.register.metrics()); }); app.listen(3000, () => { console.log('Server running on port 3000'); }); 🚩Настроить Prometheus для сбора метрик Добавляем job в prometheus.yml scrape_configs: - job_name: 'my_app' static_configs: - targets: ['app_host:8000'] 🚩Push-модель через Pushgateway (если нужно) Если клиент не может сам отдавать метрики (например, это краткоживущий job), можно использовать Pushgateway. Запускаем Pushgateway: docker run -d -p 9091:9091 prom/pushgateway Отправляем метрики через curl echo "job_execution_time 5.3" | curl --data-binary @- Ссылка скрыта Настраиваем Prometheus на сбор данных из Pushgateway scrape_configs: - job_name: 'pushgateway' static_configs: - targets: ['localhost:9091'] Ставь 👍 и забирай 📚 Базу знаний
DevOps - interview questions
FAQ

Open DevOps - interview questions in Telegram and press the Start button. No separate registration is required.

Yes. The service is designed to be straightforward: open the resource, follow the on-screen instructions and start using it.

No. You can use DevOps - interview questions directly in Telegram unless the resource description says otherwise.

Access depends on the resource. Check the current information in Telegram after opening DevOps - interview questions.

The exact features depend on the resource. Open DevOps - interview questions to see its current functions, content and access conditions.
Subscriber dynamics
+0.3% last 30 days
Current
5,577
Month ago
5,560
Average growth
+1 / day
Updated
3 days ago

Reviews for channel DevOps - interview questions

Log in to leave a review

Only registered users can share their opinion.

No reviews yet

Be the first to share your impression of this resource!

Similar resources

Loading
Switch to Light Theme
Home Catalog Collections Blog Login