This document provides an overview and introduction to Ansible. It discusses the motivation for IT automation and introduces some key Ansible concepts including Ansible Core, command line tools, playbooks, inventory, modules, and plugins. It also demonstrates how to get started with Ansible, use ad-hoc commands, and write playbooks. The presenter provides examples of installing packages and copying files using playbooks.
This document provides an overview and introduction to Ansible. It discusses the motivation for IT automation and introduces some key Ansible concepts including Ansible Core, command line tools, playbooks, inventory, modules, and plugins. It also demonstrates how to get started with Ansible, use ad-hoc commands, and write playbooks. The presenter provides examples of installing packages and copying files using playbooks.
July Tech Festa, August 2017
Alternate URL: https://speakerdeck.com/s1061123/kontenafalsenetutowakuintahuesu-sofalseshi-zhuang-shou-fa-tosofalseying-yong-nituite
58. PromQL
SQL:
SELECT city, AVG(value)
FROM temperature_Celsius
WHERE country=”germany” GROUP BY city
PromQL:
avg by(city) (temperature_celsius{country=”germany”})
59. PromQL
SQL:
SELECT errors.job, errors.instance, […more labels…],
errors.value / total.value
FROM errors, total
WHERE errors.job=”foo” AND total.job=”foo” JOIN
[…some more complicated stuff here…]
PromQL:
errors{job=”foo”} / total{job=”foo”}