From 3fa73d675882c8c06e5e2adc826ce9ba46df873f Mon Sep 17 00:00:00 2001 From: root Date: Mon, 9 Aug 2021 01:51:11 +0200 Subject: [PATCH] asdfsd --- collectd.env | 7 + collectd/Dockerfile | 9 + collectd/root/entrypoint.sh | 15 + .../collectd/templates/collectd.conf.template | 42 + docker-compose.yml | 155 + grafana.env | 151 + grafana/Dockerfile | 7 + grafana/entrypoint.sh | 56 + influxdb.env | 38 + influxdb/types.2.db | 482 +++ influxdb/types.db | 274 ++ prometheus.env | 2 + volumes/grafana/config/grafana.ini | 1006 +++++ volumes/grafana/data/grafana.db | Bin 0 -> 1191936 bytes volumes/grafana/logs/grafana.log | 261 ++ .../grafana/logs/grafana.log.2021-08-09.001 | 3384 ++++++++++++++++ .../provisioning/dashboards/dashboard.yml | 12 + .../dashboards/docker_containers.json | 1270 ++++++ .../provisioning/dashboards/docker_host.json | 1441 +++++++ .../dashboards/monitor_services.json | 3412 +++++++++++++++++ .../provisioning/datasources/prometheus.yml | 50 + volumes/grafana/public/home.json | 182 + volumes/influxdb/config/influx-configs | 20 + volumes/influxdb/data/influxd.bolt | Bin 0 -> 65536 bytes volumes/prometheus/config/prometheus.yml | 34 + 25 files changed, 12310 insertions(+) create mode 100644 collectd.env create mode 100644 collectd/Dockerfile create mode 100755 collectd/root/entrypoint.sh create mode 100644 collectd/root/srv/collectd/templates/collectd.conf.template create mode 100644 docker-compose.yml create mode 100644 grafana.env create mode 100644 grafana/Dockerfile create mode 100755 grafana/entrypoint.sh create mode 100644 influxdb.env create mode 100644 influxdb/types.2.db create mode 100644 influxdb/types.db create mode 100644 prometheus.env create mode 100644 volumes/grafana/config/grafana.ini create mode 100644 volumes/grafana/data/grafana.db create mode 100644 volumes/grafana/logs/grafana.log create mode 100644 volumes/grafana/logs/grafana.log.2021-08-09.001 create mode 100644 volumes/grafana/provisioning/dashboards/dashboard.yml create mode 100644 volumes/grafana/provisioning/dashboards/docker_containers.json create mode 100644 volumes/grafana/provisioning/dashboards/docker_host.json create mode 100644 volumes/grafana/provisioning/dashboards/monitor_services.json create mode 100644 volumes/grafana/provisioning/datasources/prometheus.yml create mode 100644 volumes/grafana/public/home.json create mode 100644 volumes/influxdb/config/influx-configs create mode 100644 volumes/influxdb/data/influxd.bolt create mode 100644 volumes/prometheus/config/prometheus.yml diff --git a/collectd.env b/collectd.env new file mode 100644 index 0000000..2c4b4e2 --- /dev/null +++ b/collectd.env @@ -0,0 +1,7 @@ +TZ=Europe/Berlin + +FRITZ_IP=192.168.1.1 +FRITZ_USER=collectd +FRITZ_PASSWORD=ec2ruRlOhFqpDPw0 +EP_HOST=influxdb +EP_PORT=25826 diff --git a/collectd/Dockerfile b/collectd/Dockerfile new file mode 100644 index 0000000..6e5dc7d --- /dev/null +++ b/collectd/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:latest + +RUN apk --no-cache add collectd collectd-python collectd-network gettext \ + py3-pip libxslt-dev gcc musl-dev python3-dev tzdata && \ + pip3 install --no-cache-dir fritzcollectd + +COPY ./root / + +ENTRYPOINT /entrypoint.sh diff --git a/collectd/root/entrypoint.sh b/collectd/root/entrypoint.sh new file mode 100755 index 0000000..de0b499 --- /dev/null +++ b/collectd/root/entrypoint.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# Exit at first error +set -e + +mkdir -p /srv/collectd/config + +# Fill the varibles in funkwhale.template and put the result in default.conf +echo "Generating '/srv/collectd/config/collectd.conf'..." +envsubst < \ + /srv/collectd/templates/collectd.conf.template > \ + /srv/collectd/config/collectd.conf + +echo "Starting collectd..." +collectd -C /srv/collectd/config/collectd.conf -f diff --git a/collectd/root/srv/collectd/templates/collectd.conf.template b/collectd/root/srv/collectd/templates/collectd.conf.template new file mode 100644 index 0000000..ede81bb --- /dev/null +++ b/collectd/root/srv/collectd/templates/collectd.conf.template @@ -0,0 +1,42 @@ +FQDNLookup true +Interval 10 +Timeout 2 +ReadThreads 5 + +LoadPlugin python +LoadPlugin network +LoadPlugin "write_graphite" + + + Server "${EP_HOST}" "${EP_PORT}" + + + + Import "fritzcollectd" + + + Address "${FRITZ_IP}" + Port 49000 + User "${FRITZ_USER}" + Password "${FRITZ_PASSWORD}" + Hostname "FritzBox" + Instance "1" + Verbose "False" + + + + + + Host "graphite" + Port "2003" + #Prefix "collectd." + #Postfix "" + #Protocol "udp" + #LogSendErrors false + EscapeCharacter "_" + SeparateInstances true + StoreRates false + AlwaysAppendDS false + #UseTags false + + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e9c1a95 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,155 @@ +version: '3' + +services: + grafana: + #image: grafana/grafana:master + build: + context: grafana/. + container_name: grafana + expose: + - 3000 + volumes: + - ./volumes/grafana:/srv/grafana + environment: + - TZ=Europe/Berlin + env_file: + - grafana.env + labels: + org.label-schema.group: "monitoring" + networks: + - default + - monitor-net + + prometheus: + image: prom/prometheus:latest + container_name: prometheus + expose: + - 9090 + volumes: + - ./volumes/prometheus:/srv/prometheus + env_file: + - prometheus.env + command: [ + "--config.file=/srv/prometheus/config/prometheus.yml", + "--log.level=debug", + #"--storage.tsdb.path=/srv/prometheus/data", + "--storage.tsdb.retention=1h", + "--web.console.libraries=/srv/prometheus/console_libraries", + "--web.console.templates=/srv/prometheus/consoles", + "--web.enable-admin-api", + "--web.enable-lifecycle" + ] + labels: + org.label-schema.group: "monitoring" + networks: + - default + - monitor-net + + cadvisor: + image: gcr.io/cadvisor/cadvisor:latest + container_name: cadvisor + volumes: + - /:/rootfs:ro + - /var/run:/var/run:ro + - /sys:/sys:ro + - /var/lib/docker:/var/lib/docker:ro + - /dev/disk/:/dev/disk:ro + - /cgroup:/cgroup:ro #doesn't work on MacOS only for Linux + restart: unless-stopped + command: ["-logtostderr", "-docker_only", "-v=4"] + networks: + - monitor-net + expose: + - 8080 + labels: + org.label-schema.group: "monitoring" + + nodeexporter: + image: prom/node-exporter:latest + container_name: nodeexporter + volumes: + - /proc:/host/proc:ro + - /sys:/host/sys:ro + - /:/rootfs:ro + command: + - '--path.procfs=/host/proc' + - '--path.rootfs=/rootfs' + - '--path.sysfs=/host/sys' + - '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)' + restart: unless-stopped + expose: + - 9100 + networks: + - monitor-net + labels: + org.label-schema.group: "monitoring" + + pushgateway: + image: prom/pushgateway:v1.4.1 + container_name: pushgateway + restart: unless-stopped + expose: + - 9091 + networks: + - default + - monitor-net + labels: + org.label-schema.group: "monitoring" + + influxdb: + image: influxdb:1.8 + #build: + # context: influxdb/. + container_name: influxdb + restart: unless-stopped + volumes: + - ./volumes/influxdb/data:/var/lib/influxdb2 + - ./volumes/influxdb/config:/etc/influxdb2 + - ./influxdb/types.2.db:/usr/share/collectd/types.db +# - ./volumes/influxdb:/srv/influxdb2 +# - ./influxdb/root/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d +# - ./volumes/influxdb/scripts:/docker-entrypoint-initdb.d + expose: + - 8086 + ports: + - 25826:25826/udp + networks: + - default + - monitor-net + labels: + org.label-schema.group: "monitoring" + env_file: + - influxdb.env + + collectd-fritzbox: + build: + context: collectd/. + container_name: collectd-fritzbox + env_file: + - collectd.env + labels: + org.label-schema.group: "monitoring" + + graphite: + image: graphiteapp/graphite-statsd:latest + container_name: graphite + expose: + - 80 + - 2003 + - 8125 + volumes: + - ./volumes/graphite/storage:/opt/graphite/storage + environment: + - COLLECTD=0 + - GRAPHITE_DEBUG=1 + - REDIS_TAGDB=1 + - BRUBECK=1 + - VIRTUAL_HOST=graphite.server.lan + - VIRTUAL_PORT=80 + +networks: + default: + external: + name: ${NETWORK:-webservices} + monitor-net: + internal: true diff --git a/grafana.env b/grafana.env new file mode 100644 index 0000000..cf07624 --- /dev/null +++ b/grafana.env @@ -0,0 +1,151 @@ + +# See: +# - https://grafana.com/docs/grafana/latest/administration/configure-docker +# - https://grafana.com/docs/grafana/latest/administration/configuration + +HOSTNAME=Eracolatore + +# Paths +GF_PATHS_CONFIG=/srv/grafana/config/grafana.ini +GF_PATHS_DATA=/srv/grafana/data +GF_PATHS_LOGS=/srv/grafana/logs +GF_PATHS_PLUGINS=/srv/grafana/plugins +GF_PATHS_PROVISIONING=/srv/grafana/provisioning + +# Server +#GF_SERVER_PROTOCOL= +#GF_SERVER_HTTP_ADDR= +#GF_SERVER_HTTP_PORT= +#GF_SERVER_DOMAIN= +#GF_SERVER_ENFORCE_DOMAIN= +#GF_SERVER_ROOT_URL= +#GF_SERVER_SERVE_FROM_SUB_PATH= +#GF_SERVER_ROUTER_LOGGING= +#GF_SERVER_STATIC_ROOT_PATH= +#GF_SERVER_ENABLE_GZIP= +#GF_SERVER_CERT_FILE= +#GF_SERVER_CERT_KEY= +#GF_SERVER_SOCKET= +#GF_SERVER_CDN_URL= +#GF_SERVER_READ_TIMEOUT= + + +#GF_DATABASE_TYPE= +#GF_DATABASE_HOST= +#GF_DATABASE_NAME= +#GF_DATABASE_USER= +#GF_DATABASE_PASSWORD= +#GF_DATABASE_URL= +#GF_DATABASE_MAX_IDLE_CONN= +#GF_DATABASE_MAX_OPEN_CONN= +#GF_DATABASE_CONN_MAX_LIFETIME= +#GF_DATABASE_LOG_QUERIES= +#GF_DATABASE_SSL_MODE= +#GF_DATABASE_ISOLATION_LEVEL= +#GF_DATABASE_CA_CERT_PATH= +#GF_DATABASE_CLIENT_KEY_PATH= +#GF_DATABASE_CLIENT_CERT_PATH= +#GF_DATABASE_SERVER_CERT_NAME= +#GF_DATABASE_PATH= +#GF_DATABASE_CACHE_MODE= + +#GF_REMOTE_CACHE_TYPE= +#GF_REMOTE_CACHE_CONNSTR= + +#GF_DATAPROXY_LOGGING= +#GF_DATAPROXY_TIMEOUT= +#GF_DATAPROXY_KEEP_ALIVE_SECONDS= +#GF_DATAPROXY_TLS_HANDSHAKE_TIMEOUT_SECONDS= +#GF_DATAPROXY_EXPECT_CONTINUE_TIMEOUT_SECONDS= +#GF_DATAPROXY_MAX_CONNS_PER_HOST= +#GF_DATAPROXY_MAX_IDLE_CONNECTIONS= +#GF_DATAPROXY_MAX_IDLE_CONNECTIONS_PER_HOST= +#GF_DATAPROXY_IDLE_CONN_TIMEOUT_SECONDS= +#GF_DATAPROXY_SEND_USER_HEADER= + +GF_ANALYTICS_REPORTING_ENABLED=false +GF_ANALYTICS_CHECK_FOR_UPDATES=false +#GF_ANALYTICS_GOOGLE_ANALYTICS_UA_ID= +#GF_ANALYTICS_GOOGLE_TAG_MANAGER_ID= + +GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION=false +GF_SECURITY_ADMIN_USER=admin +GF_SECURITY_ADMIN_PASSWORD=admin +GF_SECURITY_SECRET_KEY=change_me_please +GF_SECURITY_DISABLE_GRAVATAR=true +#GF_SECURITY_DATA_SOURCE_PROXY_WHITELIST= +GF_SECURITY_DISABLE_BRUTE_FORCE_LOGIN_PROTECTION=false +#GF_SECURITY_COOKIE_SECURE= +GF_SECURITY_COOKIE_SAMESITE=strict +GF_SECURITY_ALLOW_EMBEDDING=false +#GF_SECURITY_STRICT_TRANSPORT_SECURITY= +#GF_SECURITY_STRICT_TRANSPORT_SECURITY_MAX_AGE_SECONDS= +#GF_SECURITY_STRICT_TRANSPORT_SECURITY_PRELOAD= +#GF_SECURITY_STRICT_TRANSPORT_SECURITY_SUBDOMAINS= +#GF_SECURITY_X_CONTENT_TYPE_OPTIONS= +#GF_SECURITY_X_XSS_PROTECTION= +#GF_SECURITY_CONTENT_SECURITY_POLICY= +#GF_SECURITY_CONTENT_SECURITY_POLICY_TEMPLATE= + +#GF_SNAPSHOTS_EXTERNAL_ENABLED= +#GF_SNAPSHOTS_EXTERNAL_SNAPSHOT_URL= +#GF_SNAPSHOTS_EXTERNAL_SNAPSHOT_NAME= +#GF_SNAPSHOTS_PUBLIC_MODE= +#GF_SNAPSHOTS_SNAPSHOT_REMOVE_EXPIRED= + +#GF_DASHBOARDS_VERSIONS_TO_KEEP= +#GF_DASHBOARDS_MIN_REFRESH_INTERVAL= +GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/srv/grafana/public/home.json + +#GF_USERS_ALLOW_SIGN_UP= +#GF_USERS_ALLOW_ORG_CREATE= +#GF_USERS_AUTO_ASSIGN_ORG= +#GF_USERS_AUTO_ASSIGN_ORG_ID= +#GF_USERS_AUTO_ASSIGN_ORG_ROLE= +#GF_USERS_VERIFY_EMAIL_ENABLED= +#GF_USERS_LOGIN_HINT= +#GF_USERS_PASSWORD_HINT= +#GF_USERS_DEFAULT_THEME= +#GF_USERS_HOME_PAGE= +#GF_USERS_EXTERNAL USER MANAGEMENT= +#GF_USERS_VIEWERS_CAN_EDIT= +#GF_USERS_EDITORS_CAN_ADMIN= +#GF_USERS_USER_INVITE_MAX_LIFETIME_DURATION= +#GF_USERS_HIDDEN_USERS= + +#GF_AUTH_LOGIN_COOKIE_NAME= +#GF_AUTH_LOGIN_MAXIMUM_INACTIVE_LIFETIME_DURATION= +#GF_AUTH_LOGIN_MAXIMUM_LIFETIME_DURATION= +#GF_AUTH_TOKEN_ROTATION_INTERVAL_MINUTES= +#GF_AUTH_DISABLE_LOGIN_FORM= +#GF_AUTH_DISABLE_SIGNOUT_MENU= +#GF_AUTH_SIGNOUT_REDIRECT_URL= +#GF_AUTH_OAUTH_AUTO_LOGIN= +#GF_AUTH_OAUTH_STATE_COOKIE_MAX_AGE= +#GF_AUTH_API_KEY_MAX_SECONDS_TO_LIVE= +#GF_AUTH_SIGV4_AUTH_ENABLED= + +#GF_SMTP_ENABLED= +#GF_SMTP_HOST= +#GF_SMTP_USER= +#GF_SMTP_PASSWORD= +#GF_SMTP_CERT_FILE= +#GF_SMTP_KEY_FILE= +#GF_SMTP_SKIP_VERIFY= +#GF_SMTP_FROM_ADDRESS= +#GF_SMTP_FROM_NAME= +#GF_SMTP_EHLO_IDENTITY= +#GF_SMTP_STARTTLS_POLICY= + +#GF_EMAILS_WELCOME_EMAIL_ON_SIGN_UP= +#GF_EMAILS_TEMPLATES_PATTERN= +#GF_EMAILS_CONTENT_TYPES= + +# Run Grafana while logging to both standard out and ${GF_PATHS_LOGS}/grafana.log +GF_LOG_MODE=console file +GF_LOG_LEVEL=info +#GF_LOG_FILTERS= + + +VIRTUAL_HOST=grafana.server.lan +VIRTUAL_PORT=3000 diff --git a/grafana/Dockerfile b/grafana/Dockerfile new file mode 100644 index 0000000..3e42f50 --- /dev/null +++ b/grafana/Dockerfile @@ -0,0 +1,7 @@ +FROM grafana/grafana:latest + +COPY entrypoint.sh /entrypoint.sh + +USER root + +ENTRYPOINT ["/entrypoint.sh"] diff --git a/grafana/entrypoint.sh b/grafana/entrypoint.sh new file mode 100755 index 0000000..68d20cb --- /dev/null +++ b/grafana/entrypoint.sh @@ -0,0 +1,56 @@ +#!/bin/sh + +set -e + +CONFIG_DIR="$(dirname "${GF_PATHS_CONFIG}")" + +if [ ! -d "${CONFIG_DIR}" ]; then + echo "Directory '${CONFIG_DIR}' not found; creating it..." + mkdir -p "${CONFIG_DIR}" + chown -R "grafana:$GF_GID_NAME" "${CONFIG_DIR}" +fi + +if [ ! -f "${GF_PATHS_CONFIG}" ]; then + echo "File '${GF_PATHS_CONFIG}' not found; creating it..." + cp "/etc/grafana/grafana.ini" "${GF_PATHS_CONFIG}" + chown -R "grafana:$GF_GID_NAME" "${GF_PATHS_CONFIG}" +fi + +if [ ! -d "${GF_PATHS_DATA}" ]; then + echo "Directory '${GF_PATHS_DATA}' not found; creating it..." + mkdir -p "${GF_PATHS_DATA}" + chown -R "grafana:$GF_GID_NAME" "${GF_PATHS_DATA}" +fi + +if [ ! -d "${GF_PATHS_LOGS}" ]; then + echo "Directory '${GF_PATHS_LOGS}' not found; creating it..." + mkdir -p "${GF_PATHS_LOGS}" + chown -R "grafana:$GF_GID_NAME" "${GF_PATHS_LOGS}" +fi + +if [ ! -d "${GF_PATHS_PLUGINS}" ]; then + echo "Directory '${GF_PATHS_PLUGINS}' not found; creating it..." + mkdir -p "${GF_PATHS_PLUGINS}" + chown -R "grafana:$GF_GID_NAME" "${GF_PATHS_PLUGINS}" +fi + +if [ ! -d "${GF_PATHS_PROVISIONING}" ]; then + echo "Directory '${GF_PATHS_PROVISIONING}' not found; creating it..." + mkdir -p "${GF_PATHS_PROVISIONING}/datasources" \ + "${GF_PATHS_PROVISIONING}/dashboards" \ + "${GF_PATHS_PROVISIONING}/notifiers" \ + "${GF_PATHS_PROVISIONING}/plugins" \ + "${GF_PATHS_PROVISIONING}/access-control" + chown -R "grafana:$GF_GID_NAME" "${GF_PATHS_PROVISIONING}" +fi + +if [ -n "${GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH}" ]; then + CONFIG_DIR="$(dirname "${GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH}")" + if [ ! -d "${CONFIG_DIR}" ]; then + echo "Directory '${CONFIG_DIR}' not found; creating it..." + mkdir -p "${CONFIG_DIR}" + chown -R "grafana:$GF_GID_NAME" "${CONFIG_DIR}" + fi +fi + +su grafana -s /bin/sh -c "/run.sh" diff --git a/influxdb.env b/influxdb.env new file mode 100644 index 0000000..1e6c5f6 --- /dev/null +++ b/influxdb.env @@ -0,0 +1,38 @@ +TZ=Europe/Berlin + +#DOCKER_INFLUXDB_INIT_MODE=setup +#DOCKER_INFLUXDB_INIT_USERNAME=admin +#DOCKER_INFLUXDB_INIT_PASSWORD=changeMePlease +#DOCKER_INFLUXDB_INIT_ORG=chooseOrgName +#DOCKER_INFLUXDB_INIT_BUCKET=chooseBucketName + +DOCKER_INFLUXDB_INIT_RETENTION=1d +DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=randomTokenValue + +#INFLUXDB_CONFIG_PATH=/srv/influxdb2/config/influxdb.conf +#INFLUXDB_META_DIR=/srv/influxdb2/meta +#INFLUXDB_DATA_DIR=/srv/influxdb2/data +#INFLUXDB_DATA_WAL_DIR=/srv/influxdb2/wal + +INFLUXDB_REPORTING_DISABLED=true + +INFLUXDB_HTTP_ENABLED=true +INFLUXDB_HTTP_FLUX_ENABLED=true +INFLUXDB_HTTP_BIND_ADDRESS=0.0.0.0:8086 +INFLUXDB_HTTP_AUTH_ENABLED=false +INFLUXDB_HTTP_LOG_ENABLED=true + +INFLUXDB_COLLECTD_ENABLED=true +INFLUXDB_COLLECTD_BIND_ADDRESS=:25826 +INFLUXDB_COLLECTD_DATABASE=collectd +INFLUXDB_COLLECTD_RETENTION_POLICY="" +INFLUXDB_COLLECTD_TYPESDB=/usr/share/collectd/types.db +INFLUXDB_COLLECTD_BATCH_SIZE=5000 +INFLUXDB_COLLECTD_BATCH_PENDING=10 +INFLUXDB_COLLECTD_BATCH_TIMEOUT=10s +INFLUXDB_COLLECTD_READ_BUFFER=0 + +INFLUXDB_LOGGING_LEVEL=debug + +VIRTUAL_HOST=influxdb.server.lan +VIRTUAL_PORT=8086 diff --git a/influxdb/types.2.db b/influxdb/types.2.db new file mode 100644 index 0000000..59ca0b4 --- /dev/null +++ b/influxdb/types.2.db @@ -0,0 +1,482 @@ +absolute value:ABSOLUTE:0:U +apache_bytes value:DERIVE:0:U +apache_connections value:GAUGE:0:65535 +apache_idle_workers value:GAUGE:0:65535 +apache_requests value:DERIVE:0:U +apache_scoreboard value:GAUGE:0:65535 +ath_nodes value:GAUGE:0:65535 +ath_stat value:DERIVE:0:U +backends value:GAUGE:0:65535 +bitrate value:GAUGE:0:4294967295 +blocked_clients value:GAUGE:0:U +bytes value:GAUGE:0:U +cache_eviction value:DERIVE:0:U +cache_operation value:DERIVE:0:U +cache_ratio value:GAUGE:0:100 +cache_result value:DERIVE:0:U +cache_size value:GAUGE:0:U +ceph_bytes value:GAUGE:U:U +ceph_latency value:GAUGE:U:U +ceph_rate value:DERIVE:0:U +changes_since_last_save value:GAUGE:0:U +charge value:GAUGE:0:U +compression_ratio value:GAUGE:0:2 +compression uncompressed:DERIVE:0:U, compressed:DERIVE:0:U +connections value:DERIVE:0:U +conntrack value:GAUGE:0:4294967295 +contextswitch value:DERIVE:0:U +count value:GAUGE:0:U +counter value:COUNTER:U:U +cpufreq value:GAUGE:0:U +cpu value:DERIVE:0:U +current_connections value:GAUGE:0:U +current_sessions value:GAUGE:0:U +current value:GAUGE:U:U +delay value:GAUGE:-1000000:1000000 +derive value:DERIVE:0:U +df_complex value:GAUGE:0:U +df_inodes value:GAUGE:0:U +df used:GAUGE:0:1125899906842623, free:GAUGE:0:1125899906842623 +disk_latency read:GAUGE:0:U, write:GAUGE:0:U +disk_merged read:DERIVE:0:U, write:DERIVE:0:U +disk_octets read:DERIVE:0:U, write:DERIVE:0:U +disk_ops_complex value:DERIVE:0:U +disk_ops read:DERIVE:0:U, write:DERIVE:0:U +disk_time read:DERIVE:0:U, write:DERIVE:0:U +disk_io_time io_time:DERIVE:0:U, weighted_io_time:DERIVE:0:U +dns_answer value:DERIVE:0:U +dns_notify value:DERIVE:0:U +dns_octets queries:DERIVE:0:U, responses:DERIVE:0:U +dns_opcode value:DERIVE:0:U +dns_qtype_cached value:GAUGE:0:4294967295 +dns_qtype value:DERIVE:0:U +dns_query value:DERIVE:0:U +dns_question value:DERIVE:0:U +dns_rcode value:DERIVE:0:U +dns_reject value:DERIVE:0:U +dns_request value:DERIVE:0:U +dns_resolver value:DERIVE:0:U +dns_response value:DERIVE:0:U +dns_transfer value:DERIVE:0:U +dns_update value:DERIVE:0:U +dns_zops value:DERIVE:0:U +drbd_resource value:DERIVE:0:U +duration seconds:GAUGE:0:U +email_check value:GAUGE:0:U +email_count value:GAUGE:0:U +email_size value:GAUGE:0:U +entropy value:GAUGE:0:4294967295 +expired_keys value:GAUGE:0:U +fanspeed value:GAUGE:0:U +file_handles value:GAUGE:0:U +file_size value:GAUGE:0:U +files value:GAUGE:0:U +flow value:GAUGE:0:U +fork_rate value:DERIVE:0:U +frequency_offset value:GAUGE:-1000000:1000000 +frequency value:GAUGE:0:U +fscache_stat value:DERIVE:0:U +gauge value:GAUGE:U:U +hash_collisions value:DERIVE:0:U +http_request_methods value:DERIVE:0:U +http_requests value:DERIVE:0:U +http_response_codes value:DERIVE:0:U +humidity value:GAUGE:0:100 +if_collisions value:DERIVE:0:U +if_dropped rx:DERIVE:0:U, tx:DERIVE:0:U +if_errors rx:DERIVE:0:U, tx:DERIVE:0:U +if_multicast value:DERIVE:0:U +if_octets rx:DERIVE:0:U, tx:DERIVE:0:U +if_packets rx:DERIVE:0:U, tx:DERIVE:0:U +if_rx_errors value:DERIVE:0:U +if_rx_octets value:DERIVE:0:U +if_tx_errors value:DERIVE:0:U +if_tx_octets value:DERIVE:0:U +invocations value:DERIVE:0:U +io_octets rx:DERIVE:0:U, tx:DERIVE:0:U +io_packets rx:DERIVE:0:U, tx:DERIVE:0:U +ipt_bytes value:DERIVE:0:U +ipt_packets value:DERIVE:0:U +irq value:DERIVE:0:U +latency value:GAUGE:0:U +links value:GAUGE:0:U +load shortterm:GAUGE:0:5000, midterm:GAUGE:0:5000, longterm:GAUGE:0:5000 +md_disks value:GAUGE:0:U +memcached_command value:DERIVE:0:U +memcached_connections value:GAUGE:0:U +memcached_items value:GAUGE:0:U +memcached_octets rx:DERIVE:0:U, tx:DERIVE:0:U +memcached_ops value:DERIVE:0:U +memory value:GAUGE:0:281474976710656 +memory_lua value:GAUGE:0:281474976710656 +multimeter value:GAUGE:U:U +mutex_operations value:DERIVE:0:U +mysql_commands value:DERIVE:0:U +mysql_handler value:DERIVE:0:U +mysql_locks value:DERIVE:0:U +mysql_log_position value:DERIVE:0:U +mysql_octets rx:DERIVE:0:U, tx:DERIVE:0:U +mysql_bpool_pages value:GAUGE:0:U +mysql_bpool_bytes value:GAUGE:0:U +mysql_bpool_counters value:DERIVE:0:U +mysql_innodb_data value:DERIVE:0:U +mysql_innodb_dblwr value:DERIVE:0:U +mysql_innodb_log value:DERIVE:0:U +mysql_innodb_pages value:DERIVE:0:U +mysql_innodb_row_lock value:DERIVE:0:U +mysql_innodb_rows value:DERIVE:0:U +mysql_select value:DERIVE:0:U +mysql_sort value:DERIVE:0:U +nfs_procedure value:DERIVE:0:U +nginx_connections value:GAUGE:0:U +nginx_requests value:DERIVE:0:U +node_octets rx:DERIVE:0:U, tx:DERIVE:0:U +node_rssi value:GAUGE:0:255 +node_stat value:DERIVE:0:U +node_tx_rate value:GAUGE:0:127 +objects value:GAUGE:0:U +operations value:DERIVE:0:U +packets value:DERIVE:0:U +pending_operations value:GAUGE:0:U +percent value:GAUGE:0:100.1 +percent_bytes value:GAUGE:0:100.1 +percent_inodes value:GAUGE:0:100.1 +pf_counters value:DERIVE:0:U +pf_limits value:DERIVE:0:U +pf_source value:DERIVE:0:U +pf_states value:GAUGE:0:U +pf_state value:DERIVE:0:U +pg_blks value:DERIVE:0:U +pg_db_size value:GAUGE:0:U +pg_n_tup_c value:DERIVE:0:U +pg_n_tup_g value:GAUGE:0:U +pg_numbackends value:GAUGE:0:U +pg_scan value:DERIVE:0:U +pg_xact value:DERIVE:0:U +ping_droprate value:GAUGE:0:100 +ping_stddev value:GAUGE:0:65535 +ping value:GAUGE:0:65535 +players value:GAUGE:0:1000000 +power value:GAUGE:0:U +pressure value:GAUGE:0:U +protocol_counter value:DERIVE:0:U +ps_code value:GAUGE:0:9223372036854775807 +ps_count processes:GAUGE:0:1000000, threads:GAUGE:0:1000000 +ps_cputime user:DERIVE:0:U, syst:DERIVE:0:U +ps_data value:GAUGE:0:9223372036854775807 +ps_disk_octets read:DERIVE:0:U, write:DERIVE:0:U +ps_disk_ops read:DERIVE:0:U, write:DERIVE:0:U +ps_pagefaults minflt:DERIVE:0:U, majflt:DERIVE:0:U +ps_rss value:GAUGE:0:9223372036854775807 +ps_stacksize value:GAUGE:0:9223372036854775807 +ps_state value:GAUGE:0:65535 +ps_vm value:GAUGE:0:9223372036854775807 +pubsub value:GAUGE:0:U +queue_length value:GAUGE:0:U +records value:GAUGE:0:U +requests value:GAUGE:0:U +response_time value:GAUGE:0:U +response_code value:GAUGE:0:U +route_etx value:GAUGE:0:U +route_metric value:GAUGE:0:U +routes value:GAUGE:0:U +segments value:GAUGE:0:65535 +serial_octets rx:DERIVE:0:U, tx:DERIVE:0:U +signal_noise value:GAUGE:U:0 +signal_power value:GAUGE:U:0 +signal_quality value:GAUGE:0:U +smart_poweron value:GAUGE:0:U +smart_powercycles value:GAUGE:0:U +smart_badsectors value:GAUGE:0:U +smart_temperature value:GAUGE:-300:300 +smart_attribute current:GAUGE:0:255, worst:GAUGE:0:255, threshold:GAUGE:0:255, pretty:GAUGE:0:U +snr value:GAUGE:0:U +spam_check value:GAUGE:0:U +spam_score value:GAUGE:U:U +spl value:GAUGE:U:U +swap_io value:DERIVE:0:U +swap value:GAUGE:0:1099511627776 +tcp_connections value:GAUGE:0:4294967295 +temperature value:GAUGE:U:U +threads value:GAUGE:0:U +time_dispersion value:GAUGE:-1000000:1000000 +timeleft value:GAUGE:0:U +time_offset value:GAUGE:-1000000:1000000 +total_bytes value:DERIVE:0:U +total_connections value:DERIVE:0:U +total_objects value:DERIVE:0:U +total_operations value:DERIVE:0:U +total_requests value:DERIVE:0:U +total_sessions value:DERIVE:0:U +total_threads value:DERIVE:0:U +total_time_in_ms value:DERIVE:0:U +total_values value:DERIVE:0:U +uptime value:GAUGE:0:4294967295 +users value:GAUGE:0:65535 +vcl value:GAUGE:0:65535 +vcpu value:GAUGE:0:U +virt_cpu_total value:DERIVE:0:U +virt_vcpu value:DERIVE:0:U +vmpage_action value:DERIVE:0:U +vmpage_faults minflt:DERIVE:0:U, majflt:DERIVE:0:U +vmpage_io in:DERIVE:0:U, out:DERIVE:0:U +vmpage_number value:GAUGE:0:4294967295 +volatile_changes value:GAUGE:0:U +voltage_threshold value:GAUGE:U:U, threshold:GAUGE:U:U +voltage value:GAUGE:U:U +vs_memory value:GAUGE:0:9223372036854775807 +vs_processes value:GAUGE:0:65535 +vs_threads value:GAUGE:0:65535 + +# +# Legacy types +# (required for the v5 upgrade target) +# +arc_counts demand_data:COUNTER:0:U, demand_metadata:COUNTER:0:U, prefetch_data:COUNTER:0:U, prefetch_metadata:COUNTER:0:U +arc_l2_bytes read:COUNTER:0:U, write:COUNTER:0:U +arc_l2_size value:GAUGE:0:U +arc_ratio value:GAUGE:0:U +arc_size current:GAUGE:0:U, target:GAUGE:0:U, minlimit:GAUGE:0:U, maxlimit:GAUGE:0:U +mysql_qcache hits:COUNTER:0:U, inserts:COUNTER:0:U, not_cached:COUNTER:0:U, lowmem_prunes:COUNTER:0:U, queries_in_cache:GAUGE:0:U +mysql_threads running:GAUGE:0:U, connected:GAUGE:0:U, cached:GAUGE:0:U, created:COUNTER:0:U +absolute value:ABSOLUTE:0:U +apache_bytes value:DERIVE:0:U +apache_connections value:GAUGE:0:65535 +apache_idle_workers value:GAUGE:0:65535 +apache_requests value:DERIVE:0:U +apache_scoreboard value:GAUGE:0:65535 +ath_nodes value:GAUGE:0:65535 +ath_stat value:DERIVE:0:U +backends value:GAUGE:0:65535 +bitrate value:GAUGE:0:4294967295 +blocked_clients value:GAUGE:0:U +bytes value:GAUGE:0:U +cache_eviction value:DERIVE:0:U +cache_operation value:DERIVE:0:U +cache_ratio value:GAUGE:0:100 +cache_result value:DERIVE:0:U +cache_size value:GAUGE:0:U +ceph_bytes value:GAUGE:U:U +ceph_latency value:GAUGE:U:U +ceph_rate value:DERIVE:0:U +changes_since_last_save value:GAUGE:0:U +charge value:GAUGE:0:U +compression_ratio value:GAUGE:0:2 +compression uncompressed:DERIVE:0:U, compressed:DERIVE:0:U +connections value:DERIVE:0:U +conntrack value:GAUGE:0:4294967295 +contextswitch value:DERIVE:0:U +count value:GAUGE:0:U +counter value:COUNTER:U:U +cpufreq value:GAUGE:0:U +cpu value:DERIVE:0:U +current_connections value:GAUGE:0:U +current_sessions value:GAUGE:0:U +current value:GAUGE:U:U +delay value:GAUGE:-1000000:1000000 +derive value:DERIVE:0:U +df_complex value:GAUGE:0:U +df_inodes value:GAUGE:0:U +df used:GAUGE:0:1125899906842623, free:GAUGE:0:1125899906842623 +disk_latency read:GAUGE:0:U, write:GAUGE:0:U +disk_merged read:DERIVE:0:U, write:DERIVE:0:U +disk_octets read:DERIVE:0:U, write:DERIVE:0:U +disk_ops_complex value:DERIVE:0:U +disk_ops read:DERIVE:0:U, write:DERIVE:0:U +disk_time read:DERIVE:0:U, write:DERIVE:0:U +disk_io_time io_time:DERIVE:0:U, weighted_io_time:DERIVE:0:U +dns_answer value:DERIVE:0:U +dns_notify value:DERIVE:0:U +dns_octets queries:DERIVE:0:U, responses:DERIVE:0:U +dns_opcode value:DERIVE:0:U +dns_qtype_cached value:GAUGE:0:4294967295 +dns_qtype value:DERIVE:0:U +dns_query value:DERIVE:0:U +dns_question value:DERIVE:0:U +dns_rcode value:DERIVE:0:U +dns_reject value:DERIVE:0:U +dns_request value:DERIVE:0:U +dns_resolver value:DERIVE:0:U +dns_response value:DERIVE:0:U +dns_transfer value:DERIVE:0:U +dns_update value:DERIVE:0:U +dns_zops value:DERIVE:0:U +drbd_resource value:DERIVE:0:U +duration seconds:GAUGE:0:U +email_check value:GAUGE:0:U +email_count value:GAUGE:0:U +email_size value:GAUGE:0:U +entropy value:GAUGE:0:4294967295 +expired_keys value:GAUGE:0:U +fanspeed value:GAUGE:0:U +file_handles value:GAUGE:0:U +file_size value:GAUGE:0:U +files value:GAUGE:0:U +flow value:GAUGE:0:U +fork_rate value:DERIVE:0:U +frequency_offset value:GAUGE:-1000000:1000000 +frequency value:GAUGE:0:U +fscache_stat value:DERIVE:0:U +gauge value:GAUGE:U:U +hash_collisions value:DERIVE:0:U +http_request_methods value:DERIVE:0:U +http_requests value:DERIVE:0:U +http_response_codes value:DERIVE:0:U +humidity value:GAUGE:0:100 +if_collisions value:DERIVE:0:U +if_dropped rx:DERIVE:0:U, tx:DERIVE:0:U +if_errors rx:DERIVE:0:U, tx:DERIVE:0:U +if_multicast value:DERIVE:0:U +if_octets rx:DERIVE:0:U, tx:DERIVE:0:U +if_packets rx:DERIVE:0:U, tx:DERIVE:0:U +if_rx_errors value:DERIVE:0:U +if_rx_octets value:DERIVE:0:U +if_tx_errors value:DERIVE:0:U +if_tx_octets value:DERIVE:0:U +invocations value:DERIVE:0:U +io_octets rx:DERIVE:0:U, tx:DERIVE:0:U +io_packets rx:DERIVE:0:U, tx:DERIVE:0:U +ipt_bytes value:DERIVE:0:U +ipt_packets value:DERIVE:0:U +irq value:DERIVE:0:U +latency value:GAUGE:0:U +links value:GAUGE:0:U +load shortterm:GAUGE:0:5000, midterm:GAUGE:0:5000, longterm:GAUGE:0:5000 +md_disks value:GAUGE:0:U +memcached_command value:DERIVE:0:U +memcached_connections value:GAUGE:0:U +memcached_items value:GAUGE:0:U +memcached_octets rx:DERIVE:0:U, tx:DERIVE:0:U +memcached_ops value:DERIVE:0:U +memory value:GAUGE:0:281474976710656 +memory_lua value:GAUGE:0:281474976710656 +multimeter value:GAUGE:U:U +mutex_operations value:DERIVE:0:U +mysql_commands value:DERIVE:0:U +mysql_handler value:DERIVE:0:U +mysql_locks value:DERIVE:0:U +mysql_log_position value:DERIVE:0:U +mysql_octets rx:DERIVE:0:U, tx:DERIVE:0:U +mysql_bpool_pages value:GAUGE:0:U +mysql_bpool_bytes value:GAUGE:0:U +mysql_bpool_counters value:DERIVE:0:U +mysql_innodb_data value:DERIVE:0:U +mysql_innodb_dblwr value:DERIVE:0:U +mysql_innodb_log value:DERIVE:0:U +mysql_innodb_pages value:DERIVE:0:U +mysql_innodb_row_lock value:DERIVE:0:U +mysql_innodb_rows value:DERIVE:0:U +mysql_select value:DERIVE:0:U +mysql_sort value:DERIVE:0:U +nfs_procedure value:DERIVE:0:U +nginx_connections value:GAUGE:0:U +nginx_requests value:DERIVE:0:U +node_octets rx:DERIVE:0:U, tx:DERIVE:0:U +node_rssi value:GAUGE:0:255 +node_stat value:DERIVE:0:U +node_tx_rate value:GAUGE:0:127 +objects value:GAUGE:0:U +operations value:DERIVE:0:U +packets value:DERIVE:0:U +pending_operations value:GAUGE:0:U +percent value:GAUGE:0:100.1 +percent_bytes value:GAUGE:0:100.1 +percent_inodes value:GAUGE:0:100.1 +pf_counters value:DERIVE:0:U +pf_limits value:DERIVE:0:U +pf_source value:DERIVE:0:U +pf_states value:GAUGE:0:U +pf_state value:DERIVE:0:U +pg_blks value:DERIVE:0:U +pg_db_size value:GAUGE:0:U +pg_n_tup_c value:DERIVE:0:U +pg_n_tup_g value:GAUGE:0:U +pg_numbackends value:GAUGE:0:U +pg_scan value:DERIVE:0:U +pg_xact value:DERIVE:0:U +ping_droprate value:GAUGE:0:100 +ping_stddev value:GAUGE:0:65535 +ping value:GAUGE:0:65535 +players value:GAUGE:0:1000000 +power value:GAUGE:0:U +pressure value:GAUGE:0:U +protocol_counter value:DERIVE:0:U +ps_code value:GAUGE:0:9223372036854775807 +ps_count processes:GAUGE:0:1000000, threads:GAUGE:0:1000000 +ps_cputime user:DERIVE:0:U, syst:DERIVE:0:U +ps_data value:GAUGE:0:9223372036854775807 +ps_disk_octets read:DERIVE:0:U, write:DERIVE:0:U +ps_disk_ops read:DERIVE:0:U, write:DERIVE:0:U +ps_pagefaults minflt:DERIVE:0:U, majflt:DERIVE:0:U +ps_rss value:GAUGE:0:9223372036854775807 +ps_stacksize value:GAUGE:0:9223372036854775807 +ps_state value:GAUGE:0:65535 +ps_vm value:GAUGE:0:9223372036854775807 +pubsub value:GAUGE:0:U +queue_length value:GAUGE:0:U +records value:GAUGE:0:U +requests value:GAUGE:0:U +response_time value:GAUGE:0:U +response_code value:GAUGE:0:U +route_etx value:GAUGE:0:U +route_metric value:GAUGE:0:U +routes value:GAUGE:0:U +segments value:GAUGE:0:65535 +serial_octets rx:DERIVE:0:U, tx:DERIVE:0:U +signal_noise value:GAUGE:U:0 +signal_power value:GAUGE:U:0 +signal_quality value:GAUGE:0:U +smart_poweron value:GAUGE:0:U +smart_powercycles value:GAUGE:0:U +smart_badsectors value:GAUGE:0:U +smart_temperature value:GAUGE:-300:300 +smart_attribute current:GAUGE:0:255, worst:GAUGE:0:255, threshold:GAUGE:0:255, pretty:GAUGE:0:U +snr value:GAUGE:0:U +spam_check value:GAUGE:0:U +spam_score value:GAUGE:U:U +spl value:GAUGE:U:U +swap_io value:DERIVE:0:U +swap value:GAUGE:0:1099511627776 +tcp_connections value:GAUGE:0:4294967295 +temperature value:GAUGE:U:U +threads value:GAUGE:0:U +time_dispersion value:GAUGE:-1000000:1000000 +timeleft value:GAUGE:0:U +time_offset value:GAUGE:-1000000:1000000 +total_bytes value:DERIVE:0:U +total_connections value:DERIVE:0:U +total_objects value:DERIVE:0:U +total_operations value:DERIVE:0:U +total_requests value:DERIVE:0:U +total_sessions value:DERIVE:0:U +total_threads value:DERIVE:0:U +total_time_in_ms value:DERIVE:0:U +total_values value:DERIVE:0:U +uptime value:GAUGE:0:4294967295 +users value:GAUGE:0:65535 +vcl value:GAUGE:0:65535 +vcpu value:GAUGE:0:U +virt_cpu_total value:DERIVE:0:U +virt_vcpu value:DERIVE:0:U +vmpage_action value:DERIVE:0:U +vmpage_faults minflt:DERIVE:0:U, majflt:DERIVE:0:U +vmpage_io in:DERIVE:0:U, out:DERIVE:0:U +vmpage_number value:GAUGE:0:4294967295 +volatile_changes value:GAUGE:0:U +voltage_threshold value:GAUGE:U:U, threshold:GAUGE:U:U +voltage value:GAUGE:U:U +vs_memory value:GAUGE:0:9223372036854775807 +vs_processes value:GAUGE:0:65535 +vs_threads value:GAUGE:0:65535 + +# +# Legacy types +# (required for the v5 upgrade target) +# +arc_counts demand_data:COUNTER:0:U, demand_metadata:COUNTER:0:U, prefetch_data:COUNTER:0:U, prefetch_metadata:COUNTER:0:U +arc_l2_bytes read:COUNTER:0:U, write:COUNTER:0:U +arc_l2_size value:GAUGE:0:U +arc_ratio value:GAUGE:0:U +arc_size current:GAUGE:0:U, target:GAUGE:0:U, minlimit:GAUGE:0:U, maxlimit:GAUGE:0:U +mysql_qcache hits:COUNTER:0:U, inserts:COUNTER:0:U, not_cached:COUNTER:0:U, lowmem_prunes:COUNTER:0:U, queries_in_cache:GAUGE:0:U +mysql_threads running:GAUGE:0:U, connected:GAUGE:0:U, cached:GAUGE:0:U, created:COUNTER:0:U diff --git a/influxdb/types.db b/influxdb/types.db new file mode 100644 index 0000000..6855187 --- /dev/null +++ b/influxdb/types.db @@ -0,0 +1,274 @@ +absolute value:ABSOLUTE:0:U +apache_bytes value:DERIVE:0:U +apache_connections value:GAUGE:0:65535 +apache_idle_workers value:GAUGE:0:65535 +apache_requests value:DERIVE:0:U +apache_scoreboard value:GAUGE:0:65535 +ath_nodes value:GAUGE:0:65535 +ath_stat value:DERIVE:0:U +backends value:GAUGE:0:65535 +bitrate value:GAUGE:0:4294967295 +blocked_clients value:GAUGE:0:U +bucket value:GAUGE:0:U +bytes value:GAUGE:0:U +cache_eviction value:DERIVE:0:U +cache_operation value:DERIVE:0:U +cache_ratio value:GAUGE:0:100 +cache_result value:DERIVE:0:U +cache_size value:GAUGE:0:1125899906842623 +capacity value:GAUGE:0:U +ceph_bytes value:GAUGE:U:U +ceph_latency value:GAUGE:U:U +ceph_rate value:DERIVE:0:U +changes_since_last_save value:GAUGE:0:U +charge value:GAUGE:0:U +clock_last_meas value:GAUGE:0:U +clock_last_update value:GAUGE:U:U +clock_mode value:GAUGE:0:U +clock_reachability value:GAUGE:0:U +clock_skew_ppm value:GAUGE:-2:2 +clock_state value:GAUGE:0:U +clock_stratum value:GAUGE:0:U +compression uncompressed:DERIVE:0:U, compressed:DERIVE:0:U +compression_ratio value:GAUGE:0:2 +connections value:DERIVE:0:U +conntrack value:GAUGE:0:4294967295 +contextswitch value:DERIVE:0:U +count value:GAUGE:0:U +counter value:COUNTER:U:U +cpu value:DERIVE:0:U +cpufreq value:GAUGE:0:U +current value:GAUGE:U:U +current_connections value:GAUGE:0:U +current_sessions value:GAUGE:0:U +delay value:GAUGE:-1000000:1000000 +derive value:DERIVE:0:U +df used:GAUGE:0:1125899906842623, free:GAUGE:0:1125899906842623 +df_complex value:GAUGE:0:U +df_inodes value:GAUGE:0:U +dilution_of_precision value:GAUGE:0:U +disk_io_time io_time:DERIVE:0:U, weighted_io_time:DERIVE:0:U +disk_latency read:GAUGE:0:U, write:GAUGE:0:U +disk_merged read:DERIVE:0:U, write:DERIVE:0:U +disk_octets read:DERIVE:0:U, write:DERIVE:0:U +disk_ops read:DERIVE:0:U, write:DERIVE:0:U +disk_ops_complex value:DERIVE:0:U +disk_time read:DERIVE:0:U, write:DERIVE:0:U +dns_answer value:DERIVE:0:U +dns_notify value:DERIVE:0:U +dns_octets queries:DERIVE:0:U, responses:DERIVE:0:U +dns_opcode value:DERIVE:0:U +dns_qtype value:DERIVE:0:U +dns_qtype_cached value:GAUGE:0:4294967295 +dns_query value:DERIVE:0:U +dns_question value:DERIVE:0:U +dns_rcode value:DERIVE:0:U +dns_reject value:DERIVE:0:U +dns_request value:DERIVE:0:U +dns_resolver value:DERIVE:0:U +dns_response value:DERIVE:0:U +dns_transfer value:DERIVE:0:U +dns_update value:DERIVE:0:U +dns_zops value:DERIVE:0:U +drbd_resource value:DERIVE:0:U +duration seconds:GAUGE:0:U +email_check value:GAUGE:0:U +email_count value:GAUGE:0:U +email_size value:GAUGE:0:U +energy value:GAUGE:U:U +energy_wh value:GAUGE:U:U +entropy value:GAUGE:0:4294967295 +errors value:DERIVE:0:U +evicted_keys value:DERIVE:0:U +expired_keys value:DERIVE:0:U +fanspeed value:GAUGE:0:U +file_handles value:GAUGE:0:U +file_size value:GAUGE:0:U +files value:GAUGE:0:U +filter_result value:DERIVE:0:U +flow value:GAUGE:0:U +fork_rate value:DERIVE:0:U +frequency value:GAUGE:0:U +frequency_error value:GAUGE:-2:2 +frequency_offset value:GAUGE:-1000000:1000000 +fscache_stat value:DERIVE:0:U +gauge value:GAUGE:U:U +hash_collisions value:DERIVE:0:U +http_request_methods value:DERIVE:0:U +http_requests value:DERIVE:0:U +http_response_codes value:DERIVE:0:U +humidity value:GAUGE:0:100 +if_collisions value:DERIVE:0:U +if_dropped rx:DERIVE:0:U, tx:DERIVE:0:U +if_errors rx:DERIVE:0:U, tx:DERIVE:0:U +if_multicast value:DERIVE:0:U +if_octets rx:DERIVE:0:U, tx:DERIVE:0:U +if_packets rx:DERIVE:0:U, tx:DERIVE:0:U +if_rx_dropped value:DERIVE:0:U +if_rx_errors value:DERIVE:0:U +if_rx_octets value:DERIVE:0:U +if_rx_packets value:DERIVE:0:U +if_tx_dropped value:DERIVE:0:U +if_tx_errors value:DERIVE:0:U +if_tx_octets value:DERIVE:0:U +if_tx_packets value:DERIVE:0:U +invocations value:DERIVE:0:U +io_octets rx:DERIVE:0:U, tx:DERIVE:0:U +io_packets rx:DERIVE:0:U, tx:DERIVE:0:U +ipc value:GAUGE:0:U +ipt_bytes value:DERIVE:0:U +ipt_packets value:DERIVE:0:U +irq value:DERIVE:0:U +latency value:GAUGE:0:U +links value:GAUGE:0:U +load shortterm:GAUGE:0:5000, midterm:GAUGE:0:5000, longterm:GAUGE:0:5000 +memory_bandwidth value:DERIVE:0:U +md_disks value:GAUGE:0:U +memcached_command value:DERIVE:0:U +memcached_connections value:GAUGE:0:U +memcached_items value:GAUGE:0:U +memcached_octets rx:DERIVE:0:U, tx:DERIVE:0:U +memcached_ops value:DERIVE:0:U +memory value:GAUGE:0:281474976710656 +memory_lua value:GAUGE:0:281474976710656 +memory_throttle_count value:DERIVE:0:U +multimeter value:GAUGE:U:U +mutex_operations value:DERIVE:0:U +mysql_bpool_bytes value:GAUGE:0:U +mysql_bpool_counters value:DERIVE:0:U +mysql_bpool_pages value:GAUGE:0:U +mysql_commands value:DERIVE:0:U +mysql_handler value:DERIVE:0:U +mysql_innodb_data value:DERIVE:0:U +mysql_innodb_dblwr value:DERIVE:0:U +mysql_innodb_log value:DERIVE:0:U +mysql_innodb_pages value:DERIVE:0:U +mysql_innodb_row_lock value:DERIVE:0:U +mysql_innodb_rows value:DERIVE:0:U +mysql_locks value:DERIVE:0:U +mysql_log_position value:DERIVE:0:U +mysql_octets rx:DERIVE:0:U, tx:DERIVE:0:U +mysql_select value:DERIVE:0:U +mysql_sort value:DERIVE:0:U +mysql_sort_merge_passes value:DERIVE:0:U +mysql_sort_rows value:DERIVE:0:U +mysql_slow_queries value:DERIVE:0:U +nfs_procedure value:DERIVE:0:U +nginx_connections value:GAUGE:0:U +nginx_requests value:DERIVE:0:U +node_octets rx:DERIVE:0:U, tx:DERIVE:0:U +node_rssi value:GAUGE:0:255 +node_stat value:DERIVE:0:U +node_tx_rate value:GAUGE:0:127 +objects value:GAUGE:0:U +operations value:DERIVE:0:U +operations_per_second value:GAUGE:0:U +packets value:DERIVE:0:U +pending_operations value:GAUGE:0:U +percent value:GAUGE:0:100.1 +percent_bytes value:GAUGE:0:100.1 +percent_inodes value:GAUGE:0:100.1 +pf_counters value:DERIVE:0:U +pf_limits value:DERIVE:0:U +pf_source value:DERIVE:0:U +pf_state value:DERIVE:0:U +pf_states value:GAUGE:0:U +pg_blks value:DERIVE:0:U +pg_db_size value:GAUGE:0:U +pg_n_tup_c value:DERIVE:0:U +pg_n_tup_g value:GAUGE:0:U +pg_numbackends value:GAUGE:0:U +pg_scan value:DERIVE:0:U +pg_xact value:DERIVE:0:U +ping value:GAUGE:0:65535 +ping_droprate value:GAUGE:0:100 +ping_stddev value:GAUGE:0:65535 +players value:GAUGE:0:1000000 +power value:GAUGE:U:U +pressure value:GAUGE:0:U +protocol_counter value:DERIVE:0:U +ps_code value:GAUGE:0:9223372036854775807 +ps_count processes:GAUGE:0:1000000, threads:GAUGE:0:1000000 +ps_cputime user:DERIVE:0:U, syst:DERIVE:0:U +ps_data value:GAUGE:0:9223372036854775807 +ps_disk_octets read:DERIVE:0:U, write:DERIVE:0:U +ps_disk_ops read:DERIVE:0:U, write:DERIVE:0:U +ps_pagefaults minflt:DERIVE:0:U, majflt:DERIVE:0:U +ps_rss value:GAUGE:0:9223372036854775807 +ps_stacksize value:GAUGE:0:9223372036854775807 +ps_state value:GAUGE:0:65535 +ps_vm value:GAUGE:0:9223372036854775807 +pubsub value:GAUGE:0:U +queue_length value:GAUGE:0:U +records value:GAUGE:0:U +requests value:GAUGE:0:U +response_code value:GAUGE:0:U +response_time value:GAUGE:0:U +root_delay value:GAUGE:U:U +root_dispersion value:GAUGE:U:U +route_etx value:GAUGE:0:U +route_metric value:GAUGE:0:U +routes value:GAUGE:0:U +satellites value:GAUGE:0:U +segments value:GAUGE:0:65535 +serial_octets rx:DERIVE:0:U, tx:DERIVE:0:U +signal_noise value:GAUGE:U:0 +signal_power value:GAUGE:U:0 +signal_quality value:GAUGE:0:U +smart_attribute current:GAUGE:0:255, worst:GAUGE:0:255, threshold:GAUGE:0:255, pretty:GAUGE:0:U +smart_badsectors value:GAUGE:0:U +smart_powercycles value:GAUGE:0:U +smart_poweron value:GAUGE:0:U +smart_temperature value:GAUGE:-300:300 +snr value:GAUGE:0:U +spam_check value:GAUGE:0:U +spam_score value:GAUGE:U:U +spl value:GAUGE:U:U +swap value:GAUGE:0:1099511627776 +swap_io value:DERIVE:0:U +tcp_connections value:GAUGE:0:4294967295 +temperature value:GAUGE:U:U +threads value:GAUGE:0:U +time_dispersion value:GAUGE:-1000000:1000000 +time_offset value:GAUGE:-1000000:1000000 +time_offset_ntp value:GAUGE:-1000000:1000000 +time_offset_rms value:GAUGE:-1000000:1000000 +time_ref value:GAUGE:0:U +timeleft value:GAUGE:0:U +total_bytes value:DERIVE:0:U +total_connections value:DERIVE:0:U +total_objects value:DERIVE:0:U +total_operations value:DERIVE:0:U +total_requests value:DERIVE:0:U +total_sessions value:DERIVE:0:U +total_threads value:DERIVE:0:U +total_time_in_ms value:DERIVE:0:U +total_values value:DERIVE:0:U +uptime value:GAUGE:0:4294967295 +users value:GAUGE:0:65535 +vcl value:GAUGE:0:65535 +vcpu value:GAUGE:0:U +virt_cpu_total value:DERIVE:0:U +virt_vcpu value:DERIVE:0:U +vmpage_action value:DERIVE:0:U +vmpage_faults minflt:DERIVE:0:U, majflt:DERIVE:0:U +vmpage_io in:DERIVE:0:U, out:DERIVE:0:U +vmpage_number value:GAUGE:0:4294967295 +volatile_changes value:GAUGE:0:U +voltage value:GAUGE:U:U +voltage_threshold value:GAUGE:U:U, threshold:GAUGE:U:U +vs_memory value:GAUGE:0:9223372036854775807 +vs_processes value:GAUGE:0:65535 +vs_threads value:GAUGE:0:65535 + +# +# Legacy types +# (required for the v5 upgrade target) +# +arc_counts demand_data:COUNTER:0:U, demand_metadata:COUNTER:0:U, prefetch_data:COUNTER:0:U, prefetch_metadata:COUNTER:0:U +arc_l2_bytes read:COUNTER:0:U, write:COUNTER:0:U +arc_l2_size value:GAUGE:0:U +arc_ratio value:GAUGE:0:U +arc_size current:GAUGE:0:U, target:GAUGE:0:U, minlimit:GAUGE:0:U, maxlimit:GAUGE:0:U +mysql_qcache hits:COUNTER:0:U, inserts:COUNTER:0:U, not_cached:COUNTER:0:U, lowmem_prunes:COUNTER:0:U, queries_in_cache:GAUGE:0:U +mysql_threads running:GAUGE:0:U, connected:GAUGE:0:U, cached:GAUGE:0:U, created:COUNTER:0:U diff --git a/prometheus.env b/prometheus.env new file mode 100644 index 0000000..ccaad1e --- /dev/null +++ b/prometheus.env @@ -0,0 +1,2 @@ +VIRTUAL_HOST=prometheus.server.lan +VIRTUAL_PORT=9090 \ No newline at end of file diff --git a/volumes/grafana/config/grafana.ini b/volumes/grafana/config/grafana.ini new file mode 100644 index 0000000..241f85c --- /dev/null +++ b/volumes/grafana/config/grafana.ini @@ -0,0 +1,1006 @@ +##################### Grafana Configuration Example ##################### +# +# Everything has defaults so you only need to uncomment things you want to +# change + +# possible values : production, development +;app_mode = production + +# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty +;instance_name = ${HOSTNAME} + +#################################### Paths #################################### +[paths] +# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used) +;data = /var/lib/grafana + +# Temporary files in `data` directory older than given duration will be removed +;temp_data_lifetime = 24h + +# Directory where grafana can store logs +;logs = /var/log/grafana + +# Directory where grafana will automatically scan and look for plugins +;plugins = /var/lib/grafana/plugins + +# folder that contains provisioning config files that grafana will apply on startup and while running. +;provisioning = conf/provisioning + +#################################### Server #################################### +[server] +# Protocol (http, https, h2, socket) +;protocol = http + +# The ip address to bind to, empty will bind to all interfaces +;http_addr = + +# The http port to use +;http_port = 3000 + +# The public facing domain name used to access grafana from a browser +;domain = localhost + +# Redirect to correct domain if host header does not match domain +# Prevents DNS rebinding attacks +;enforce_domain = false + +# The full public facing url you use in browser, used for redirects and emails +# If you use reverse proxy and sub path specify full url (with sub path) +;root_url = %(protocol)s://%(domain)s:%(http_port)s/ + +# Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons. +;serve_from_sub_path = false + +# Log web requests +;router_logging = false + +# the path relative working path +;static_root_path = public + +# enable gzip +;enable_gzip = false + +# https certs & key file +;cert_file = +;cert_key = + +# Unix socket path +;socket = + +# CDN Url +;cdn_url = + +# Sets the maximum time using a duration format (5s/5m/5ms) before timing out read of an incoming request and closing idle connections. +# `0` means there is no timeout for reading the request. +;read_timeout = 0 + +#################################### Database #################################### +[database] +# You can configure the database connection by specifying type, host, name, user and password +# as separate properties or as on string using the url properties. + +# Either "mysql", "postgres" or "sqlite3", it's your choice +;type = sqlite3 +;host = 127.0.0.1:3306 +;name = grafana +;user = root +# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;""" +;password = + +# Use either URL or the previous fields to configure the database +# Example: mysql://user:secret@host:port/database +;url = + +# For "postgres" only, either "disable", "require" or "verify-full" +;ssl_mode = disable + +# Database drivers may support different transaction isolation levels. +# Currently, only "mysql" driver supports isolation levels. +# If the value is empty - driver's default isolation level is applied. +# For "mysql" use "READ-UNCOMMITTED", "READ-COMMITTED", "REPEATABLE-READ" or "SERIALIZABLE". +;isolation_level = + +;ca_cert_path = +;client_key_path = +;client_cert_path = +;server_cert_name = + +# For "sqlite3" only, path relative to data_path setting +;path = grafana.db + +# Max idle conn setting default is 2 +;max_idle_conn = 2 + +# Max conn setting default is 0 (mean not set) +;max_open_conn = + +# Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours) +;conn_max_lifetime = 14400 + +# Set to true to log the sql calls and execution times. +;log_queries = + +# For "sqlite3" only. cache mode setting used for connecting to the database. (private, shared) +;cache_mode = private + +################################### Data sources ######################### +[datasources] +# Upper limit of data sources that Grafana will return. This limit is a temporary configuration and it will be deprecated when pagination will be introduced on the list data sources API. +;datasource_limit = 5000 + +#################################### Cache server ############################# +[remote_cache] +# Either "redis", "memcached" or "database" default is "database" +;type = database + +# cache connectionstring options +# database: will use Grafana primary database. +# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=0,ssl=false`. Only addr is required. ssl may be 'true', 'false', or 'insecure'. +# memcache: 127.0.0.1:11211 +;connstr = + +#################################### Data proxy ########################### +[dataproxy] + +# This enables data proxy logging, default is false +;logging = false + +# How long the data proxy waits to read the headers of the response before timing out, default is 30 seconds. +# This setting also applies to core backend HTTP data sources where query requests use an HTTP client with timeout set. +;timeout = 30 + +# How long the data proxy waits to establish a TCP connection before timing out, default is 10 seconds. +;dialTimeout = 10 + +# How many seconds the data proxy waits before sending a keepalive probe request. +;keep_alive_seconds = 30 + +# How many seconds the data proxy waits for a successful TLS Handshake before timing out. +;tls_handshake_timeout_seconds = 10 + +# How many seconds the data proxy will wait for a server's first response headers after +# fully writing the request headers if the request has an "Expect: 100-continue" +# header. A value of 0 will result in the body being sent immediately, without +# waiting for the server to approve. +;expect_continue_timeout_seconds = 1 + +# Optionally limits the total number of connections per host, including connections in the dialing, +# active, and idle states. On limit violation, dials will block. +# A value of zero (0) means no limit. +;max_conns_per_host = 0 + +# The maximum number of idle connections that Grafana will keep alive. +;max_idle_connections = 100 + +# How many seconds the data proxy keeps an idle connection open before timing out. +;idle_conn_timeout_seconds = 90 + +# If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request, default is false. +;send_user_header = false + +#################################### Analytics #################################### +[analytics] +# Server reporting, sends usage counters to stats.grafana.org every 24 hours. +# No ip addresses are being tracked, only simple counters to track +# running instances, dashboard and error counts. It is very helpful to us. +# Change this option to false to disable reporting. +;reporting_enabled = true + +# The name of the distributor of the Grafana instance. Ex hosted-grafana, grafana-labs +;reporting_distributor = grafana-labs + +# Set to false to disable all checks to https://grafana.net +# for new versions (grafana itself and plugins), check is used +# in some UI views to notify that grafana or plugin update exists +# This option does not cause any auto updates, nor send any information +# only a GET request to http://grafana.com to get latest versions +;check_for_updates = true + +# Google Analytics universal tracking code, only enabled if you specify an id here +;google_analytics_ua_id = + +# Google Tag Manager ID, only enabled if you specify an id here +;google_tag_manager_id = + +#################################### Security #################################### +[security] +# disable creation of admin user on first start of grafana +;disable_initial_admin_creation = false + +# default admin user, created on startup +;admin_user = admin + +# default admin password, can be changed before first start of grafana, or in profile settings +;admin_password = admin + +# used for signing +;secret_key = SW2YcwTIb9zpOOhoPsMm + +# disable gravatar profile images +;disable_gravatar = false + +# data source proxy whitelist (ip_or_domain:port separated by spaces) +;data_source_proxy_whitelist = + +# disable protection against brute force login attempts +;disable_brute_force_login_protection = false + +# set to true if you host Grafana behind HTTPS. default is false. +;cookie_secure = false + +# set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled" +;cookie_samesite = lax + +# set to true if you want to allow browsers to render Grafana in a ,