# Monitoring i Prometheus (DevOps) > Zbieranie metryk, PromQL, exportery, Alertmanager, integracja z Grafaną, rozwiązywanie problemów z brakującymi metrykami - 22 pytań z rozmów - Mid-Level - [Pytania z rozmów: DevOps](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne.md) ## 1. Czym jest metryka typu Counter w Prometheus? **Odpowiedź** Counter to metryka, która może tylko rosnąć lub być resetowana do zera podczas restartu. Idealnie nadaje się do liczenia zdarzeń kumulacyjnych, takich jak żądania HTTP, błędy lub przetworzone wiadomości. Aby obliczyć tempo zmian, użyj funkcji PromQL rate() lub irate(), która automatycznie obsługuje resety. ## 2. Jaki jest domyślny model zbierania metryk używany przez Prometheus? **Odpowiedź** Prometheus używa modelu pull, w którym serwer aktywnie scrapuje metryki z targetów w zdefiniowanych regularnych odstępach. Ten model centralizuje konfigurację, łatwo wykrywa targety w stanie down i zapobiega przeciążaniu serwera przez aplikacje. Push gateway istnieje dla efemerycznych zadań, ale stanowi wyjątkowy wzorzec, a nie normę. ## 3. Czym jest exporter w ekosystemie Prometheus? **Odpowiedź** Exporter to komponent, który udostępnia metryki z systemów zewnętrznych w formacie Prometheus. Tłumaczy natywne metryki z aplikacji takich jak MySQL, Redis czy NGINX na zgodne metryki dostępne przez HTTP. Oficjalne exportery przestrzegają rygorystycznych konwencji nazewnictwa i są utrzymywane przez społeczność Prometheus. ## Jeszcze 19 dostępnych pytań - Jaka jest główna różnica między Gauge a Counter? - Do czego służy endpoint /metrics w instrumentowanej aplikacji? Zarejestruj się za darmo: https://sharpskill.dev/pl/login ## Inne tematy rekrutacyjne DevOps - [Kontrola wersji & Git](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/version-control-git.md): 20 pytań, Junior - [Podstawy Linux](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/linux-fundamentals.md): 22 pytań, Junior - [Shell Scripting & Bash](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/shell-scripting-bash.md): 20 pytań, Mid-Level - [Podstawy sieci](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/networking-basics.md): 22 pytań, Junior - [Podstawy Dockera](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/docker-fundamentals.md): 24 pytań, Junior - [Podstawy CI/CD](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/ci-cd-fundamentals.md): 18 pytań, Junior - [GitHub Actions](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/github-actions.md): 22 pytań, Mid-Level - [GitLab CI/CD](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/gitlab-ci.md): 22 pytań, Mid-Level - [Jenkins](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/jenkins.md): 22 pytań, Mid-Level - [Podstawy Kubernetes](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/kubernetes-basics.md): 26 pytań, Mid-Level - [Networking Kubernetes](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/kubernetes-networking.md): 24 pytań, Mid-Level - [Kubernetes Zaawansowany](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/kubernetes-advanced.md): 24 pytań, Mid-Level - [Ingress & API Gateway](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/ingress-api-gateway.md): 20 pytań, Mid-Level - [Podstawy Terraform](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/terraform-basics.md): 22 pytań, Mid-Level - [Terraform Zaawansowany](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/terraform-advanced.md): 22 pytań, Mid-Level - [Ansible & Configuration Management](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/ansible-configuration.md): 20 pytań, Mid-Level - [Podstawy AWS](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/aws-essentials.md): 26 pytań, Mid-Level - [Podstawy Azure](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/azure-fundamentals.md): 22 pytań, Mid-Level - [Podstawy GCP](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/gcp-fundamentals.md): 22 pytań, Mid-Level - [Logging & ELK Stack](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/logging-elk.md): 20 pytań, Mid-Level - [Alerting i Incident Response](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/alerting-incident-response.md): 20 pytań, Mid-Level - [Cloud Identity & Secrets](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/cloud-identity-secrets.md): 22 pytań, Mid-Level - [Bezpieczeństwo Pipeline'ów CI/CD](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/cicd-pipeline-security.md): 20 pytań, Mid-Level - [Helm & Kubernetes](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/helm-kubernetes.md): 20 pytań, Mid-Level - [Bezpieczeństwo Runtime i Cluster](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/runtime-cluster-security.md): 24 pytań, Senior - [Container Supply Chain Security](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/container-supply-chain.md): 22 pytań, Senior - [Service Mesh & Istio](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/service-mesh-istio.md): 24 pytań, Senior - [GitOps & ArgoCD](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/gitops-argocd.md): 22 pytań, Senior - [Progressive Delivery](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/progressive-delivery.md): 20 pytań, Senior - [Rozproszona obserwowalność](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/observability-distributed.md): 22 pytań, Senior - [Disaster Recovery & Backup](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/disaster-recovery.md): 20 pytań, Senior - [Optymalizacja wydajności](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/performance-optimization.md): 22 pytań, Senior - [Optymalizacja Kosztów Chmury](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/infrastructure-cost.md): 20 pytań, Senior - [Zasady SRE](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/sre-principles.md): 24 pytań, Senior - [Chaos Engineering](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/chaos-engineering.md): 20 pytań, Senior - [Platform Engineering](https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/platform-engineering.md): 22 pytań, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/pl/technologies/devops/pytania-rekrutacyjne/monitoring-prometheus