django 開発 adminlte-3
view
- django-adminlte-3
(venv) ~/G/g/c/TAM (main|●10✚21…) $ python -m pip install django-adminlte-3 ... Successfully installed django-adminlte-3-0.1.6
- settings.py
INSTALLED_APPS = [
...
'adminlte3',
'adminlte3_theme',
]
...
PROJECT_NAME = BASE_DIR.name
...
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
STATIC_ROOT_PATH = os.path.join(BASE_DIR, 'var/www/{}/static')
STATIC_ROOT = STATIC_ROOT_PATH.format(PROJECT_NAME)
- mkdir
(venv) ~/G/g/c/TAM (main|●10✚21…) $ mkdir -p static/tam (venv) ~/G/g/c/TAM (main|●10✚21…) [1] $ mkdir -p var/www
- collectstatic
(venv) ~/G/g/c/TAM (main|●10✚21…) [1] $ sudo python manage.py collectstatic ... 2202 static files copied to 'XXXX/TAM/var/www/TAM/static'.
- base.html
django 開発 ~ モデル
モデル
- csm
(venv) ~/G/g/c/TAM (main|✚3…) $ python manage.py startapp cms
- TAM/settings.py
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'cms.apps.CmsConfig',
]
- makemigrations
(venv) ~/G/g/c/TAM (main|●1✚4…) $ python manage.py makemigrations cms Migrations for 'cms': cms/migrations/0001_initial.py ...
- sqlmigrate
(venv) ~/G/g/c/TAM (main|●1✚4…) $ python manage.py sqlmigrate cms 0001
BEGIN;
--
-- Create model CryptoCurrency
--
CREATE TABLE "cms_cryptocurrency" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "symbol" varchar(255) NOT NULL, "brand" varchar(255) NOT NULL, "shares" integer NOT NULL, "average_cost" integer NOT NULL, "market_value" integer NOT NULL, "gain_or_loss" integer NOT NULL, "comment" text NOT NULL);
--
...
- migrate
(venv) ~/G/g/c/TAM (main|●1✚4…) $ python manage.py migrate cms Operations to perform: Apply all migrations: cms Running migrations: Applying cms.0001_initial... OK
- cms/admin.py
from django.contrib import admin from cms.models import TotalAsset, Stock, CryptoCurrency admin.site.register(TotalAsset) admin.site.register(Stock) admin.site.register(CryptoCurrency)
django 開発 ~ セットアップ
setup
- python install
~/G/g/c/TAM (main|✔) $ git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow ~/G/g/c/TAM (main|✔) $ git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow ~/G/g/c/TAM (main|✔) $ brew update && brew upgrade pyenv ~/G/g/c/TAM (main|✔) $ pyenv install 3.9.6 ~/G/g/c/TAM (main|✔) $ pyenv local 3.9.6 ~/G/g/c/TAM (main|…) $ pyenv versions system 3.7.4 * 3.9.6 (set by XXX) ~/G/g/c/TAM (main|…) $ python3 -V Python 3.9.6
- venv
~/G/g/c/TAM (main|…) $ python3 -m venv venv ~/G/g/c/TAM (main|…) $ . venv/bin/activate.fish (venv) ~/G/g/c/TAM (main|…) $
(venv) ~/G/g/c/TAM (main|…) $ pip install django ... Successfully installed asgiref-3.4.1 django-3.2.5 pytz-2021.1 sqlparse-0.4.1 (venv) ~/G/g/c/TAM (main|…) $ pip freeze -l asgiref==3.4.1 Django==3.2.5 pytz==2021.1 sqlparse==0.4.1
- create project
(venv) ~/G/g/c/TAM (main|…) $ django-admin startproject TAM (venv) ~/G/g/c/TAM (main|…) $ ls README.md TAM manage.py venv (venv) ~/G/g/c/TAM (main|…) $ ls TAM/ __init__.py asgi.py settings.py urls.py wsgi.py
- init
(venv) ~/G/g/c/TAM (main|✚1) $ python manage.py migrate (venv) ~/G/g/c/TAM (main|✚3) $ python manage.py createsuperuser ユーザー名 (leave blank to use 'XXXX'): admin メールアドレス: XXXX@gmail.com Password: Password (again): Superuser created successfully. (venv) ~/G/g/c/TAM (main|…) $ python manage.py runserver ... Django version 3.2.5, using settings 'TAM.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C.
ansible bind
bind
- ansible
~/G/g/c/ansible (master|…) $ ansible-playbook -i environments/home playbooks/bind.yml --list-tasks
playbook: playbooks/bind.yml
play #1 (bind): bind TAGS: []
tasks:
bind : Load role constants TAGS: [prometheus_core:main]
bind : Check bind exists TAGS: [bind:install]
bind : Install bind package TAGS: [bind:install]
bind : Put named.conf.options file TAGS: [bind:setup]
bind : Put named.conf.local file TAGS: [bind:setup]
bind : Put zone file TAGS: [bind:setup]
bind : Put rev file TAGS: [bind:setup]
- named.conf.local
root@rasp-pi01:~# cat /etc/bind/named.conf.local
...
zone "home" {
type master;
file "home.zone";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "home.rev";
};
- named.conf.options
root@rasp-pi01:~# cat /etc/bind/named.conf.options
options {
directory "/etc/bind";
forwarders {
8.8.8.8; 8.8.4.4;
};
allow-recursion {
127.0.0.1; 192.168.1.0/24;
};
listen-on-v6 { any; };
};
- dig
~/G/g/c/ansible (master|…) $ dig dns.home @192.168.1.11 +short 192.168.1.11 ~/G/g/c/ansible (master|…) $ dig -x 192.168.1.11 @192.168.1.11 +short home. ~/G/g/c/ansible (master|…) $ dig google.com @192.168.1.11 +short 172.217.161.46
smokeping
smokeping
- ansile
~/G/g/c/ansible (master↑1|…) $ ansible-playbook -i environments/home playbooks/smokeping.yml --list-tasks
playbook: playbooks/smokeping.yml
play #1 (smokeping): smokeping TAGS: []
tasks:
smokeping : Load role constants TAGS: [smokeping:main]
smokeping : Check smokeping exists TAGS: [smokeping:install]
smokeping : Install smokeping package TAGS: [smokeping:install]
smokeping : Put unit file for smokeping TAGS: [smokeping:install]
smokeping : Check fcgiwrap exists TAGS: [smokeping:install]
smokeping : Install fcgiwrap package TAGS: [smokeping:install]
...
nginx : Put host-unique virtual hosts file for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
nginx : Enable host-unique virtual hosts for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
nginx : Disable host-unique virtual hosts for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
- config
root@rasp-pi01:~# cat /etc/smokeping/config.d/Targets
*** Targets ***
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of xxx Company. \
Here you will learn all about the latency of our network.
+ Internet
menu = Internet
title = Internet
++ Nuro_Router
menu = Nuro_Router_XX.XX.XX.XX
title = Nuro_Router_XX.XX.XX.XX
host = XX.XX.XX.XX
#alerts = someloss
++ Nuro_Gateway
menu = Nuro_Gateway_XX.XX.XX.1
title = Nuro_Gateway_XX.XX.XX.1
host = XX.XX.XX.1
#alerts = someloss
++ Google
menu = Google_8.8.8.8
title = Google_8.8.8.8
host = 8.8.8.8
#alerts = someloss
+ Intranet
menu = Intranet
title = Intranet
++ localhost
menu = localhost_127.0.0.1
title = localhost_127.0.0.1
host = localhost
#alerts = someloss
++ Nuro_Router
menu = Nuro_Router_192.168.1.1
title = Nuro_Router_192.168.1.1
host = 192.168.1.1
#alerts = someloss
root@rasp-pi01:~# smokeping --check --config=/etc/smokeping/config Configuration file '/etc/smokeping/config' syntax OK.
prometheus ~ grafana
prometheus
- prometheus.yml
root@rasp-pi01:~# cat /etc/prometheus/prometheus.yml
global:
scrape_interval: 15s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
rule_files:
scrape_configs:
- job_name: 'rasp-pi'
metrics_path: /node/metrics
static_configs:
- targets: ['rasp-pi01.home:8080', 'rasp-pi02.home:8080', 'rasp-pi03.home:8080']
- job_name: 'windows'
metrics_path: /metrics
static_configs:
- targets: ['windows01.home:9182']

grafana
- dashboard
- なぜか default の admin:admin でログインできなかった
- 試したこと
- なぜか default の admin:admin でログインできなかった
root@rasp-pi01:~# grafana-cli admin reset-admin-password admin INFO[07-03|06:42:02] Connecting to DB logger=sqlstore dbtype=sqlite3 INFO[07-03|06:42:02] Starting DB migrations logger=migrator Admin password changed successfully ✔ root@rasp-pi01:~# cd /var/lib/grafana/ root@rasp-pi01:/var/lib/grafana# sqlite3 grafana.db sqlite> update user set password = '59acf18b94d7eb0694c61e60ce44c110c7a683ac6a8f09580d626f90f4a242000746579358d77dd9e570e83fa24faa88a8a6', salt = 'F3FAxVm33R' where login = 'admin'; sqlite> .exit
- しかたなく anonumous を admin にした
root@rasp-pi01:~# cat /etc/grafana/grafana.ini ... [auth.anonymous] enabled = true org_name = Main Org. org_role = Admin ...
data source

dashboard grafana labs からダウンロード数の多いものをダウンロード

Dashboards >> Manage >> Import

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": 1860,
"graphTooltip": 0,
"id": 10,
"links": [
{
"icon": "external link",
"tags": [],
"title": "Github",
"type": "link",
"url": "https://github.com/rfrail3/grafana-dashboards"
},
{
"icon": "external link",
"tags": [],
"title": "Grafana",
"type": "link",
"url": "https://grafana.com/grafana/dashboards/1860"
}
],
"panels": [
{
"collapsed": false,
"datasource": "Prometheus",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 261,
"panels": [],
"repeat": null,
"title": "Quick CPU / Mem / Disk",
"type": "row"
},
{
"cacheTimeout": null,
"datasource": "Prometheus",
"description": "Busy state of all CPU cores together",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {},
"mappings": [
{
"id": 0,
"op": "=",
"text": "N/A",
"type": 1,
"value": "null"
}
],
"max": 100,
"min": 0,
"nullValueMode": "null",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgba(50, 172, 45, 0.97)",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 85
},
{
"color": "rgba(245, 54, 54, 0.9)",
"value": 95
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 0,
"y": 1
},
"id": 20,
"links": [],
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "7.3.5",
"targets": [
{
"expr": "(((count(count(node_cpu_seconds_total{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}) by (cpu))) - avg(sum by (mode)(rate(node_cpu_seconds_total{mode='idle',instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}[$__rate_interval])))) * 100) / count(count(node_cpu_seconds_total{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}) by (cpu))",
"hide": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A",
"step": 240
}
],
"title": "CPU Busy",
"type": "gauge"
},
{
"cacheTimeout": null,
"datasource": "Prometheus",
"description": "Busy state of all CPU cores together (5 min average)",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {},
"mappings": [
{
"id": 0,
"op": "=",
"text": "N/A",
"type": 1,
"value": "null"
}
],
"max": 100,
"min": 0,
"nullValueMode": "null",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgba(50, 172, 45, 0.97)",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 85
},
{
"color": "rgba(245, 54, 54, 0.9)",
"value": 95
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 3,
"y": 1
},
"id": 155,
"links": [],
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "7.3.5",
"targets": [
{
"expr": "avg(node_load5{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}) / count(count(node_cpu_seconds_total{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}) by (cpu)) * 100",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"refId": "A",
"step": 240
}
],
"title": "Sys Load (5m avg)",
"type": "gauge"
},
{
"cacheTimeout": null,
"datasource": "Prometheus",
"description": "Busy state of all CPU cores together (15 min average)",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {},
"mappings": [
{
"id": 0,
"op": "=",
"text": "N/A",
"type": 1,
"value": "null"
}
],
"max": 100,
"min": 0,
"nullValueMode": "null",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgba(50, 172, 45, 0.97)",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 85
},
{
"color": "rgba(245, 54, 54, 0.9)",
"value": 95
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 6,
"y": 1
},
"id": 19,
"links": [],
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "7.3.5",
"targets": [
{
"expr": "avg(node_load15{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}) / count(count(node_cpu_seconds_total{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}) by (cpu)) * 100",
"hide": false,
"intervalFactor": 1,
"refId": "A",
"step": 240
}
],
"title": "Sys Load (15m avg)",
"type": "gauge"
},
{
"cacheTimeout": null,
"datasource": "Prometheus",
"description": "Non available RAM memory",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {},
"decimals": 0,
"mappings": [],
"max": 100,
"min": 0,
"nullValueMode": "null",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgba(50, 172, 45, 0.97)",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 80
},
{
"color": "rgba(245, 54, 54, 0.9)",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 9,
"y": 1
},
"hideTimeOverride": false,
"id": 16,
"links": [],
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "7.3.5",
"targets": [
{
"expr": "((node_memory_MemTotal_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"} - node_memory_MemFree_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}) / (node_memory_MemTotal_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"} )) * 100",
"format": "time_series",
"hide": true,
"intervalFactor": 1,
"refId": "A",
"step": 240
},
{
"expr": "100 - ((node_memory_MemAvailable_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"} * 100) / node_memory_MemTotal_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"})",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"refId": "B",
"step": 240
}
],
"title": "RAM Used",
"type": "gauge"
},
{
"cacheTimeout": null,
"datasource": "Prometheus",
"description": "Used Swap",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {},
"mappings": [
{
"id": 0,
"op": "=",
"text": "N/A",
"type": 1,
"value": "null"
}
],
"max": 100,
"min": 0,
"nullValueMode": "null",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgba(50, 172, 45, 0.97)",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 10
},
{
"color": "rgba(245, 54, 54, 0.9)",
"value": 25
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 12,
"y": 1
},
"id": 21,
"links": [],
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "7.3.5",
"targets": [
{
"expr": "((node_memory_SwapTotal_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"} - node_memory_SwapFree_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}) / (node_memory_SwapTotal_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"} )) * 100",
"intervalFactor": 1,
"refId": "A",
"step": 240
}
],
"title": "SWAP Used",
"type": "gauge"
},
{
"cacheTimeout": null,
"datasource": "Prometheus",
"description": "Used Root FS",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {},
"mappings": [
{
"id": 0,
"op": "=",
"text": "N/A",
"type": 1,
"value": "null"
}
],
"max": 100,
"min": 0,
"nullValueMode": "null",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgba(50, 172, 45, 0.97)",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 80
},
{
"color": "rgba(245, 54, 54, 0.9)",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 15,
"y": 1
},
"id": 154,
"links": [],
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "7.3.5",
"targets": [
{
"expr": "100 - ((node_filesystem_avail_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\",mountpoint=\"/\",fstype!=\"rootfs\"} * 100) / node_filesystem_size_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\",mountpoint=\"/\",fstype!=\"rootfs\"})",
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
"step": 240
}
],
"title": "Root FS Used",
"type": "gauge"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "Prometheus",
"description": "Total number of CPU cores",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "short",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 18,
"y": 1
},
"id": 14,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"maxPerRow": 6,
"nullPointMode": "null",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "count(count(node_cpu_seconds_total{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}) by (cpu))",
"interval": "",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A",
"step": 240
}
],
"thresholds": "",
"title": "CPU Cores",
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "Prometheus",
"decimals": 1,
"description": "System uptime",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "s",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 4,
"x": 20,
"y": 1
},
"hideTimeOverride": true,
"id": 15,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "null",
"nullText": null,
"postfix": "s",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "node_time_seconds{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"} - node_boot_time_seconds{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}",
"intervalFactor": 2,
"refId": "A",
"step": 240
}
],
"thresholds": "",
"title": "Uptime",
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"datasource": "Prometheus",
"decimals": 0,
"description": "Total RootFS",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "bytes",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 18,
"y": 3
},
"id": 23,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"maxPerRow": 6,
"nullPointMode": "null",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "node_filesystem_size_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\",mountpoint=\"/\",fstype!=\"rootfs\"}",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"refId": "A",
"step": 240
}
],
"thresholds": "70,90",
"title": "RootFS Total",
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "Prometheus",
"decimals": 0,
"description": "Total RAM",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "bytes",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 20,
"y": 3
},
"id": 75,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"maxPerRow": 6,
"nullPointMode": "null",
"nullText": null,
"postfix": "",
"postfixFontSize": "70%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "node_memory_MemTotal_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}",
"intervalFactor": 1,
"refId": "A",
"step": 240
}
],
"thresholds": "",
"title": "RAM Total",
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "Prometheus",
"decimals": 0,
"description": "Total SWAP",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "bytes",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 2,
"x": 22,
"y": 3
},
"id": 18,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"maxPerRow": 6,
"nullPointMode": "null",
"nullText": null,
"postfix": "",
"postfixFontSize": "70%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "node_memory_SwapTotal_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}",
"intervalFactor": 1,
"refId": "A",
"step": 240
}
],
"thresholds": "",
"title": "SWAP Total",
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"collapsed": false,
"datasource": "Prometheus",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 5
},
"id": 263,
"panels": [],
"repeat": null,
"title": "Basic CPU / Mem / Net / Disk",
"type": "row"
},
{
"aliasColors": {
"Busy": "#EAB839",
"Busy Iowait": "#890F02",
"Busy other": "#1F78C1",
"Idle": "#052B51",
"Idle - Waiting for something to happen": "#052B51",
"guest": "#9AC48A",
"idle": "#052B51",
"iowait": "#EAB839",
"irq": "#BF1B00",
"nice": "#C15C17",
"softirq": "#E24D42",
"steal": "#FCE2DE",
"system": "#508642",
"user": "#5195CE"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"decimals": 2,
"description": "Basic CPU info",
"fieldConfig": {
"defaults": {
"custom": {},
"links": []
},
"overrides": []
},
"fill": 4,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 6
},
"hiddenSeries": false,
"id": 77,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sideWidth": 250,
"sort": null,
"sortDesc": null,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"maxPerRow": 6,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": true,
"pluginVersion": "7.3.5",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "Busy Iowait",
"color": "#890F02"
},
{
"alias": "Idle",
"color": "#7EB26D"
},
{
"alias": "Busy System",
"color": "#EAB839"
},
{
"alias": "Busy User",
"color": "#0A437C"
},
{
"alias": "Busy Other",
"color": "#6D1F62"
}
],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "sum by (instance)(rate(node_cpu_seconds_total{mode=\"system\",instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}[$__rate_interval])) * 100",
"format": "time_series",
"hide": false,
"intervalFactor": 2,
"legendFormat": "Busy System",
"refId": "A",
"step": 240
},
{
"expr": "sum by (instance)(rate(node_cpu_seconds_total{mode='user',instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}[$__rate_interval])) * 100",
"format": "time_series",
"hide": false,
"intervalFactor": 2,
"legendFormat": "Busy User",
"refId": "B",
"step": 240
},
{
"expr": "sum by (instance)(rate(node_cpu_seconds_total{mode='iowait',instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}[$__rate_interval])) * 100",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Busy Iowait",
"refId": "C",
"step": 240
},
{
"expr": "sum by (instance)(rate(node_cpu_seconds_total{mode=~\".*irq\",instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}[$__rate_interval])) * 100",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Busy IRQs",
"refId": "D",
"step": 240
},
{
"expr": "sum (rate(node_cpu_seconds_total{mode!='idle',mode!='user',mode!='system',mode!='iowait',mode!='irq',mode!='softirq',instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}[$__rate_interval])) * 100",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Busy Other",
"refId": "E",
"step": 240
},
{
"expr": "sum by (mode)(rate(node_cpu_seconds_total{mode='idle',instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}[$__rate_interval])) * 100",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Idle",
"refId": "F",
"step": 240
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "CPU Basic",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": "",
"logBase": 1,
"max": "100",
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"Apps": "#629E51",
"Buffers": "#614D93",
"Cache": "#6D1F62",
"Cached": "#511749",
"Committed": "#508642",
"Free": "#0A437C",
"Hardware Corrupted - Amount of RAM that the kernel identified as corrupted / not working": "#CFFAFF",
"Inactive": "#584477",
"PageTables": "#0A50A1",
"Page_Tables": "#0A50A1",
"RAM_Free": "#E0F9D7",
"SWAP Used": "#BF1B00",
"Slab": "#806EB7",
"Slab_Cache": "#E0752D",
"Swap": "#BF1B00",
"Swap Used": "#BF1B00",
"Swap_Cache": "#C15C17",
"Swap_Free": "#2F575E",
"Unused": "#EAB839"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"decimals": 2,
"description": "Basic memory usage",
"fieldConfig": {
"defaults": {
"custom": {},
"links": []
},
"overrides": []
},
"fill": 4,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 6
},
"hiddenSeries": false,
"id": 78,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sideWidth": 350,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"maxPerRow": 6,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.5",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "RAM Total",
"color": "#E0F9D7",
"fill": 0,
"stack": false
},
{
"alias": "RAM Cache + Buffer",
"color": "#052B51"
},
{
"alias": "RAM Free",
"color": "#7EB26D"
},
{
"alias": "Avaliable",
"color": "#DEDAF7",
"fill": 0,
"stack": false
}
],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "node_memory_MemTotal_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}",
"format": "time_series",
"hide": false,
"intervalFactor": 2,
"legendFormat": "RAM Total",
"refId": "A",
"step": 240
},
{
"expr": "node_memory_MemTotal_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"} - node_memory_MemFree_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"} - (node_memory_Cached_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"} + node_memory_Buffers_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"})",
"format": "time_series",
"hide": false,
"intervalFactor": 2,
"legendFormat": "RAM Used",
"refId": "B",
"step": 240
},
{
"expr": "node_memory_Cached_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"} + node_memory_Buffers_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "RAM Cache + Buffer",
"refId": "C",
"step": 240
},
{
"expr": "node_memory_MemFree_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "RAM Free",
"refId": "D",
"step": 240
},
{
"expr": "(node_memory_SwapTotal_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"} - node_memory_SwapFree_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "SWAP Used",
"refId": "E",
"step": 240
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Memory Basic",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": "",
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"Recv_bytes_eth2": "#7EB26D",
"Recv_bytes_lo": "#0A50A1",
"Recv_drop_eth2": "#6ED0E0",
"Recv_drop_lo": "#E0F9D7",
"Recv_errs_eth2": "#BF1B00",
"Recv_errs_lo": "#CCA300",
"Trans_bytes_eth2": "#7EB26D",
"Trans_bytes_lo": "#0A50A1",
"Trans_drop_eth2": "#6ED0E0",
"Trans_drop_lo": "#E0F9D7",
"Trans_errs_eth2": "#BF1B00",
"Trans_errs_lo": "#CCA300",
"recv_bytes_lo": "#0A50A1",
"recv_drop_eth0": "#99440A",
"recv_drop_lo": "#967302",
"recv_errs_eth0": "#BF1B00",
"recv_errs_lo": "#890F02",
"trans_bytes_eth0": "#7EB26D",
"trans_bytes_lo": "#0A50A1",
"trans_drop_eth0": "#99440A",
"trans_drop_lo": "#967302",
"trans_errs_eth0": "#BF1B00",
"trans_errs_lo": "#890F02"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"description": "Basic network info per interface",
"fieldConfig": {
"defaults": {
"custom": {},
"links": []
},
"overrides": []
},
"fill": 4,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 13
},
"hiddenSeries": false,
"id": 74,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"hideEmpty": false,
"hideZero": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.5",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/.*trans.*/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(node_network_receive_bytes_total{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}[$__rate_interval])*8",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "recv {{device}}",
"refId": "A",
"step": 240
},
{
"expr": "rate(node_network_transmit_bytes_total{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\"}[$__rate_interval])*8",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "trans {{device}} ",
"refId": "B",
"step": 240
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Network Traffic Basic",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "pps",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"decimals": 3,
"description": "Disk space used of all filesystems mounted",
"fieldConfig": {
"defaults": {
"custom": {},
"links": []
},
"overrides": []
},
"fill": 4,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 13
},
"height": "",
"hiddenSeries": false,
"id": 152,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"maxPerRow": 6,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.5",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "100 - ((node_filesystem_avail_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\",device!~'rootfs'} * 100) / node_filesystem_size_bytes{instance=\"rasp-pi01.home:8080\",job=\"rasp-pi\",device!~'rootfs'})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{mountpoint}}",
"refId": "A",
"step": 240
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Disk Space Used Basic",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "percent",
"label": null,
"logBase": 1,
"max": "100",
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"schemaVersion": 26,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-24h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "browser",
"title": "rasp-pi01.home",
"uid": "rYdddlPWk",
"version": 1
}
ansible base ~ prometheus ~ grafana
- base
~/G/g/c/ansible (master|…) $ ansible-playbook -i environments/home playbooks/base.yml --list-tasks
playbook: playbooks/base.yml
play #1 (base): base TAGS: []
tasks:
ephemeral_swap : Load role constants TAGS: [ephemeral_swap:main]
ephemeral_swap : Gathering /tmp freespace TAGS: [ephemeral_swap:on]
ephemeral_swap : Check /tmp freespace TAGS: [ephemeral_swap:on]
ephemeral_swap : Check ephemeral-swap.lock exists TAGS: [ephemeral_swap:on]
ephemeral_swap : Create /tmp/swapfile TAGS: [ephemeral_swap:on]
ephemeral_swap : Set /tmp/swapfile to swap TAGS: [ephemeral_swap:on]
ephemeral_swap : Activate swap TAGS: [ephemeral_swap:on]
ephemeral_swap : Create lockfile TAGS: [ephemeral_swap:on]
ephemeral_swap : Check lockfile exists TAGS: [ephemeral_swap:off]
ephemeral_swap : Schedule lockfile removal TAGS: [ephemeral_swap:off]
base : Load role constants TAGS: [base:main]
base : Update password for root TAGS: [base:general]
base : Set hostname TAGS: [base:general]
base : Set timezone TAGS: [base:general]
base : Update repositories TAGS: [base:apt]
base : Upgrade packages TAGS: [base:apt]
base : Install packages TAGS: [base:apt]
base : Uninstall packages TAGS: [base:apt]
base : Create groups TAGS: [base:accounts]
base : Create users TAGS: [base:accounts]
base : Build allow_users string TAGS: [base:sshd]
base : Build allow_root_addresses string TAGS: [base:sshd]
base : Put sshd_config TAGS: [base:sshd]
base : Put system-wide .bashrc TAGS: [base:bash]
base : Put timesyncd.conf TAGS: [base:timesyncd]
base : Put .gitconfig TAGS: [base:git]
base : Create secrets directory TAGS: [base:secrets]
base : Put secrets TAGS: [base:secrets]
nginx : Load role constants TAGS: [nginx:main]
nginx : Create groups TAGS: [nginx:install]
nginx : Create users TAGS: [nginx:install]
nginx : Check nginx exists TAGS: [nginx:install]
nginx : Install packages TAGS: [nginx:install]
nginx : Gathering nginx buitin files TAGS: [nginx:install]
nginx : Gathering nginx buitin directories TAGS: [nginx:install]
nginx : Remove builtin files TAGS: [nginx:install]
nginx : Remove builtin directories TAGS: [nginx:install]
nginx : Create sites-available directory TAGS: [nginx:install]
nginx : Create sites-enable directory TAGS: [nginx:install]
nginx : Put logrotate file for nginx TAGS: [nginx:install]
nginx : Put nginx's environment file for systemd TAGS: [nginx:install]
nginx : Put unit file for systemd TAGS: [nginx:install]
nginx : Put mime.types TAGS: [nginx:setup_base]
nginx : Put config file for nginx TAGS: [nginx:setup_base]
nginx : Put default document root TAGS: [nginx:setup_base]
nginx : Put htpasswd for nginx TAGS: [nginx:setup_base]
nginx : Put env-wide virtual hosts file for nginx TAGS: [nginx:setup_env_wide_virtualhosts]
nginx : Enable env-wide virtual hosts for nginx TAGS: [nginx:setup_env_wide_virtualhosts]
nginx : Disable env-wide virtual hosts for nginx TAGS: [nginx:setup_env_wide_virtualhosts]
nginx : Put host-unique virtual hosts file for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
nginx : Enable host-unique virtual hosts for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
nginx : Disable host-unique virtual hosts for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
prometheus_node_exporter : Load role constants TAGS: [prometheus_node_exporter:main]
prometheus_node_exporter : Create prometheus binary directory TAGS: [prometheus_node_exporter:install]
prometheus_node_exporter : Check node_exporter for Prometheus exists TAGS: [prometheus_node_exporter:install]
prometheus_node_exporter : Download node_exporter for Prometheus binary for x86_64 TAGS: [prometheus_node_exporter:install]
prometheus_node_exporter : Put node_exporter into prometheus directory for x86_64 TAGS: [prometheus_node_exporter:install]
prometheus_node_exporter : Download node_exporter for Prometheus binary for armv7l TAGS: [prometheus_node_exporter:install]
prometheus_node_exporter : Put node_exporter into prometheus directory for armv7l TAGS: [prometheus_node_exporter:install]
prometheus_node_exporter : Download node_exporter for Prometheus binary for arm64 TAGS: [prometheus_node_exporter:install]
prometheus_node_exporter : Put node_exporter into prometheus directory for arm64 TAGS: [prometheus_node_exporter:install]
prometheus_node_exporter : Put unit file for systemd TAGS: [prometheus_node_exporter:install]
- prometheus
~/G/g/c/ansible (master|…) $ ansible-playbook -i environments/home playbooks/prometheus_core.yml --list-tasks
playbook: playbooks/prometheus_core.yml
play #1 (prometheus_core): prometheus_core TAGS: []
tasks:
prometheus_core : Load role constants TAGS: [prometheus_core:main]
prometheus_core : Check prometheus exists TAGS: [prometheus_core:install]
prometheus_core : Download prometheus binary TAGS: [prometheus_core:install]
prometheus_core : Put prometheus into prometheus binary directory TAGS: [prometheus_core:install]
prometheus_core : Put promtool into prometheus binary directory TAGS: [prometheus_core:install]
prometheus_core : Put unit file for systemd TAGS: [prometheus_core:install]
prometheus_core : Create prometheus config directory TAGS: [prometheus_core:setup]
prometheus_core : Create prometheus storage directory TAGS: [prometheus_core:setup]
prometheus_core : Create prometheus console templates directory TAGS: [prometheus_core:setup]
prometheus_core : Create prometheus console libraries directory TAGS: [prometheus_core:setup]
prometheus_core : Check prometheus.yml exists TAGS: [prometheus_core:setup]
prometheus_core : Put default config file into prometheus directory TAGS: [prometheus_core:setup]
nginx : Load role constants TAGS: [nginx:main]
nginx : Create groups TAGS: [nginx:install]
nginx : Create users TAGS: [nginx:install]
nginx : Check nginx exists TAGS: [nginx:install]
nginx : Install packages TAGS: [nginx:install]
nginx : Gathering nginx buitin files TAGS: [nginx:install]
nginx : Gathering nginx buitin directories TAGS: [nginx:install]
nginx : Remove builtin files TAGS: [nginx:install]
nginx : Remove builtin directories TAGS: [nginx:install]
nginx : Create sites-available directory TAGS: [nginx:install]
nginx : Create sites-enable directory TAGS: [nginx:install]
nginx : Put logrotate file for nginx TAGS: [nginx:install]
nginx : Put nginx's environment file for systemd TAGS: [nginx:install]
nginx : Put unit file for systemd TAGS: [nginx:install]
nginx : Put mime.types TAGS: [nginx:setup_base]
nginx : Put config file for nginx TAGS: [nginx:setup_base]
nginx : Put default document root TAGS: [nginx:setup_base]
nginx : Put htpasswd for nginx TAGS: [nginx:setup_base]
nginx : Put env-wide virtual hosts file for nginx TAGS: [nginx:setup_env_wide_virtualhosts]
nginx : Enable env-wide virtual hosts for nginx TAGS: [nginx:setup_env_wide_virtualhosts]
nginx : Disable env-wide virtual hosts for nginx TAGS: [nginx:setup_env_wide_virtualhosts]
nginx : Put host-unique virtual hosts file for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
nginx : Enable host-unique virtual hosts for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
nginx : Disable host-unique virtual hosts for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
- grafana
~/G/g/c/ansible (master|…) $ ansible-playbook -i environments/home playbooks/grafana_stack.yml --list-tasks
playbook: playbooks/grafana_stack.yml
play #1 (grafana_stack): grafana_stack TAGS: []
tasks:
influxdb : Load role constants TAGS: [influxdb:main]
influxdb : Check influxdb exists TAGS: [influxdb:install]
influxdb : Download influxdb package TAGS: [influxdb:install]
influxdb : Install influxdb TAGS: [influxdb:install]
influxdb : Put influxdb's environment file for systemd TAGS: [influxdb:install]
influxdb : Put unit file for systemd TAGS: [influxdb:install]
influxdb : Put config file for influxdb TAGS: [influxdb:setup]
grafana : Load role constants TAGS: [grafana:main]
grafana : Check grafana-server exists TAGS: [grafana:install]
grafana : Download grafana-server package TAGS: [grafana:install]
grafana : Install grafana-server TAGS: [grafana:install]
grafana : Put grafana-server's environment file for systemd TAGS: [grafana:install]
grafana : Put unit file for systemd TAGS: [grafana:install]
grafana : Put config file for grafana-server TAGS: [grafana:setup]
nginx : Load role constants TAGS: [nginx:main]
nginx : Create groups TAGS: [nginx:install]
nginx : Create users TAGS: [nginx:install]
nginx : Check nginx exists TAGS: [nginx:install]
nginx : Install packages TAGS: [nginx:install]
nginx : Gathering nginx buitin files TAGS: [nginx:install]
nginx : Gathering nginx buitin directories TAGS: [nginx:install]
nginx : Remove builtin files TAGS: [nginx:install]
nginx : Remove builtin directories TAGS: [nginx:install]
nginx : Create sites-available directory TAGS: [nginx:install]
nginx : Create sites-enable directory TAGS: [nginx:install]
nginx : Put logrotate file for nginx TAGS: [nginx:install]
nginx : Put nginx's environment file for systemd TAGS: [nginx:install]
nginx : Put unit file for systemd TAGS: [nginx:install]
nginx : Put mime.types TAGS: [nginx:setup_base]
nginx : Put config file for nginx TAGS: [nginx:setup_base]
nginx : Put default document root TAGS: [nginx:setup_base]
nginx : Put htpasswd for nginx TAGS: [nginx:setup_base]
nginx : Put env-wide virtual hosts file for nginx TAGS: [nginx:setup_env_wide_virtualhosts]
nginx : Enable env-wide virtual hosts for nginx TAGS: [nginx:setup_env_wide_virtualhosts]
nginx : Disable env-wide virtual hosts for nginx TAGS: [nginx:setup_env_wide_virtualhosts]
nginx : Put host-unique virtual hosts file for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
nginx : Enable host-unique virtual hosts for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
nginx : Disable host-unique virtual hosts for nginx TAGS: [nginx:setup_host_unique_virtualhosts]
