Generate URL for Cloudwatch metrics from your code

daniel1302
Get direct URL for AWS Cloudwatch metrics Introduction to the problem Last time, when I developed some integration with AWS, I got in trouble when I wanted to generate a direct URL to the Cloudwatch metrics. I could not find any working solution, so I decided to write my implementation. I expect to get a URL to AWS Cloudwatch metrics for given metrics data. What data do I have? Statistic, Dimensions, MetricName, Namespace, Period You can find source code for the helper I implemented on my GitHub: AwsMetricUrlHelper.

Setup KVM on a physical server

daniel1302
Setup KVM on a physical server As part of my learning, I will try to explain to you how to install KVM on physical computer and server. That is the first stop on the road to install the OpenStack. Introduction Assumptions Do not use GUI* KVM cluster All VM stored on /mapper/red01(Raid5 matrix) Two networks: NAT and Bridge to physical interface As much automation as possible Note: * Usually, I work with servers I have no real access.

[PL] What are exceptions

daniel1302
Exceptions Wstęp Co, a w zasadzie kto skłonił mnie do napisania tego artykułu? Tak naprawdę to znajomi którzy kilkukrotnie pytali o wyjątki. Co to jest tak naprawdę ten wyjątek? Dokumentacja PHP mówi: An exception can be thrown, and caught (“catched”) within PHP. Code may be surrounded in a try block, to facilitate the catching of potential exceptions. pl: “W PHP wyjątek może zostać rzucony i złapany. Kod może być objęty w blok try by ułatwić wychwytywanie potencjalnych sytuacji wyjatkowych(czyt.

[PL] Monitoring PHP + NGINX

daniel1302
Wstęp Jeśli jeszcze nie wiesz co to jest php-fpm, jak działa to zapraszam do zapoznania się z innymi ciekawymi artykułami na ten temat, do których link znajdziesz na koncu Tematem tego artykułu jest poprawa wydajności i eleminacja problemów z którymi naktnąłem się podczas wdrażania rozwiązania opartego o PHP-FPM i Nginx. Jeśli przeanalizujesz swój serwer zgodnie z tym jak zrobiłem to ja to będziesz miał gwarancję, że lepiej zrozumiesz jak działają rozwiązania które używasz i będziesz miał nad nimi lepszą kontrolę.