You've already forked wp-prometheus
feat: Add runtime metrics for HTTP requests and database queries (v0.1.0)
All checks were successful
Create Release Package / build-release (push) Successful in 59s
All checks were successful
Create Release Package / build-release (push) Successful in 59s
- Add RuntimeCollector class for tracking request lifecycle metrics - Add wordpress_http_requests_total counter (method, status, endpoint) - Add wordpress_http_request_duration_seconds histogram - Add wordpress_db_queries_total counter (endpoint) - Add wordpress_db_query_duration_seconds histogram (requires SAVEQUERIES) - Update Collector to expose stored runtime metrics - Add new settings options for enabling/disabling runtime metrics - Create translation files (.pot, .po, .mo) for internationalization - Update documentation and changelog Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
BIN
languages/wp-prometheus-de_CH.mo
Normal file
BIN
languages/wp-prometheus-de_CH.mo
Normal file
Binary file not shown.
198
languages/wp-prometheus-de_CH.po
Normal file
198
languages/wp-prometheus-de_CH.po
Normal file
@@ -0,0 +1,198 @@
|
||||
# German (Switzerland, formal) translation for WP Prometheus.
|
||||
# Copyright (C) 2026 Marco Graetsch
|
||||
# This file is distributed under the GPL v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WP Prometheus 0.1.0\n"
|
||||
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/magdev/wp-prometheus/issues\n"
|
||||
"POT-Creation-Date: 2026-02-02T00:00:00+00:00\n"
|
||||
"PO-Revision-Date: 2026-02-02T00:00:00+00:00\n"
|
||||
"Last-Translator: Marco Graetsch <magdev3.0@gmail.com>\n"
|
||||
"Language-Team: German (Switzerland) <de_CH@li.org>\n"
|
||||
"Language: de_CH\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: src/Admin/Settings.php:40
|
||||
msgid "Metrics Settings"
|
||||
msgstr "Metriken-Einstellungen"
|
||||
|
||||
#: src/Admin/Settings.php:41
|
||||
msgid "Metrics"
|
||||
msgstr "Metriken"
|
||||
|
||||
#: src/Admin/Settings.php:58
|
||||
msgid "License Settings"
|
||||
msgstr "Lizenz-Einstellungen"
|
||||
|
||||
#: src/Admin/Settings.php:65
|
||||
msgid "Authentication"
|
||||
msgstr "Authentifizierung"
|
||||
|
||||
#: src/Admin/Settings.php:73
|
||||
msgid "Default Metrics"
|
||||
msgstr "Standard-Metriken"
|
||||
|
||||
#: src/Admin/Settings.php:150
|
||||
msgid "License settings saved."
|
||||
msgstr "Lizenz-Einstellungen gespeichert."
|
||||
|
||||
#: src/Admin/Settings.php:195
|
||||
msgid "License is active and valid."
|
||||
msgstr "Lizenz ist aktiv und gueltig."
|
||||
|
||||
#: src/Admin/Settings.php:196
|
||||
msgid "License is invalid."
|
||||
msgstr "Lizenz ist ungueltig."
|
||||
|
||||
#: src/Admin/Settings.php:197
|
||||
msgid "License has expired."
|
||||
msgstr "Lizenz ist abgelaufen."
|
||||
|
||||
#: src/Admin/Settings.php:198
|
||||
msgid "License has been revoked."
|
||||
msgstr "Lizenz wurde widerrufen."
|
||||
|
||||
#: src/Admin/Settings.php:199
|
||||
msgid "License is inactive."
|
||||
msgstr "Lizenz ist inaktiv."
|
||||
|
||||
#: src/Admin/Settings.php:200
|
||||
msgid "License has not been validated yet."
|
||||
msgstr "Lizenz wurde noch nicht validiert."
|
||||
|
||||
#: src/Admin/Settings.php:201
|
||||
msgid "License server is not configured."
|
||||
msgstr "Lizenz-Server ist nicht konfiguriert."
|
||||
|
||||
#. translators: %s: Expiration date
|
||||
#: src/Admin/Settings.php:214
|
||||
msgid "Expires: %s"
|
||||
msgstr "Laeuft ab: %s"
|
||||
|
||||
#. translators: %s: Time ago
|
||||
#: src/Admin/Settings.php:225
|
||||
msgid "Last checked: %s ago"
|
||||
msgstr "Zuletzt geprueft: vor %s"
|
||||
|
||||
#: src/Admin/Settings.php:239
|
||||
msgid "License Server URL"
|
||||
msgstr "Lizenz-Server URL"
|
||||
|
||||
#: src/Admin/Settings.php:249
|
||||
msgid "License Key"
|
||||
msgstr "Lizenzschluessel"
|
||||
|
||||
#: src/Admin/Settings.php:259
|
||||
msgid "Server Secret"
|
||||
msgstr "Server-Geheimnis"
|
||||
|
||||
#: src/Admin/Settings.php:264
|
||||
msgid "Leave empty to keep existing."
|
||||
msgstr "Leer lassen, um bestehenden Wert zu behalten."
|
||||
|
||||
#: src/Admin/Settings.php:270
|
||||
msgid "Save License Settings"
|
||||
msgstr "Lizenz-Einstellungen speichern"
|
||||
|
||||
#: src/Admin/Settings.php:272
|
||||
msgid "Validate License"
|
||||
msgstr "Lizenz validieren"
|
||||
|
||||
#: src/Admin/Settings.php:275
|
||||
msgid "Activate License"
|
||||
msgstr "Lizenz aktivieren"
|
||||
|
||||
#: src/Admin/Settings.php:301
|
||||
msgid "Configure authentication for the /metrics endpoint."
|
||||
msgstr "Authentifizierung fuer den /metrics-Endpunkt konfigurieren."
|
||||
|
||||
#: src/Admin/Settings.php:310
|
||||
msgid "Select which default metrics to expose."
|
||||
msgstr "Waehlen Sie, welche Standard-Metriken bereitgestellt werden sollen."
|
||||
|
||||
#: src/Admin/Settings.php:324
|
||||
msgid "Regenerate"
|
||||
msgstr "Neu generieren"
|
||||
|
||||
#: src/Admin/Settings.php:327
|
||||
msgid "Use this token to authenticate Prometheus scrape requests."
|
||||
msgstr "Verwenden Sie diesen Token zur Authentifizierung von Prometheus-Abfragen."
|
||||
|
||||
#: src/Admin/Settings.php:340
|
||||
msgid "WordPress Info (version, PHP version, multisite)"
|
||||
msgstr "WordPress-Info (Version, PHP-Version, Multisite)"
|
||||
|
||||
#: src/Admin/Settings.php:341
|
||||
msgid "Total Users by Role"
|
||||
msgstr "Benutzer nach Rolle"
|
||||
|
||||
#: src/Admin/Settings.php:342
|
||||
msgid "Total Posts by Type and Status"
|
||||
msgstr "Beitraege nach Typ und Status"
|
||||
|
||||
#: src/Admin/Settings.php:343
|
||||
msgid "Total Comments by Status"
|
||||
msgstr "Kommentare nach Status"
|
||||
|
||||
#: src/Admin/Settings.php:344
|
||||
msgid "Total Plugins (active/inactive)"
|
||||
msgstr "Plugins (aktiv/inaktiv)"
|
||||
|
||||
#: src/Admin/Settings.php:345
|
||||
msgid "HTTP Requests Total (by method, status, endpoint)"
|
||||
msgstr "HTTP-Anfragen gesamt (nach Methode, Status, Endpunkt)"
|
||||
|
||||
#: src/Admin/Settings.php:346
|
||||
msgid "HTTP Request Duration (histogram)"
|
||||
msgstr "HTTP-Anfragedauer (Histogramm)"
|
||||
|
||||
#: src/Admin/Settings.php:347
|
||||
msgid "Database Queries Total (by endpoint)"
|
||||
msgstr "Datenbank-Abfragen gesamt (nach Endpunkt)"
|
||||
|
||||
#: src/Admin/Settings.php:369
|
||||
msgid "Prometheus Configuration"
|
||||
msgstr "Prometheus-Konfiguration"
|
||||
|
||||
#: src/Admin/Settings.php:370
|
||||
msgid "Add the following to your prometheus.yml:"
|
||||
msgstr "Fuegen Sie Folgendes zu Ihrer prometheus.yml hinzu:"
|
||||
|
||||
#. translators: %s: Endpoint URL
|
||||
#: src/Admin/Settings.php:385
|
||||
msgid "Metrics endpoint: %s"
|
||||
msgstr "Metriken-Endpunkt: %s"
|
||||
|
||||
#: src/Admin/Settings.php:93
|
||||
msgid "Auth Token"
|
||||
msgstr "Auth-Token"
|
||||
|
||||
#: src/Admin/Settings.php:101
|
||||
msgid "Enabled Metrics"
|
||||
msgstr "Aktivierte Metriken"
|
||||
|
||||
#: src/Plugin.php:120
|
||||
msgid "Settings"
|
||||
msgstr "Einstellungen"
|
||||
|
||||
#. translators: 1: Required PHP version, 2: Current PHP version
|
||||
#: wp-prometheus.php:112
|
||||
msgid "WP Prometheus requires PHP version %1$s or higher. You are running PHP %2$s."
|
||||
msgstr "WP Prometheus erfordert PHP-Version %1$s oder hoeher. Sie verwenden PHP %2$s."
|
||||
|
||||
#. translators: 1: Required WordPress version, 2: Current WordPress version
|
||||
#: wp-prometheus.php:127
|
||||
msgid "WP Prometheus requires WordPress version %1$s or higher. You are running WordPress %2$s."
|
||||
msgstr "WP Prometheus erfordert WordPress-Version %1$s oder hoeher. Sie verwenden WordPress %2$s."
|
||||
|
||||
#: wp-prometheus.php:140
|
||||
msgid "WP Prometheus requires Composer dependencies to be installed. Please run \"composer install\" in the plugin directory."
|
||||
msgstr "WP Prometheus erfordert installierte Composer-Abhaengigkeiten. Bitte fuehren Sie \"composer install\" im Plugin-Verzeichnis aus."
|
||||
|
||||
#. translators: %s: Required PHP version
|
||||
#: wp-prometheus.php:156
|
||||
msgid "WP Prometheus requires PHP version %s or higher."
|
||||
msgstr "WP Prometheus erfordert PHP-Version %s oder hoeher."
|
||||
195
languages/wp-prometheus.pot
Normal file
195
languages/wp-prometheus.pot
Normal file
@@ -0,0 +1,195 @@
|
||||
# Copyright (C) 2026 Marco Graetsch
|
||||
# This file is distributed under the GPL v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WP Prometheus 0.1.0\n"
|
||||
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/magdev/wp-prometheus/issues\n"
|
||||
"POT-Creation-Date: 2026-02-02T00:00:00+00:00\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"PO-Revision-Date: 2026-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
||||
#: src/Admin/Settings.php:40
|
||||
msgid "Metrics Settings"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:41
|
||||
msgid "Metrics"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:58
|
||||
msgid "License Settings"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:65
|
||||
msgid "Authentication"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:73
|
||||
msgid "Default Metrics"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:150
|
||||
msgid "License settings saved."
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:195
|
||||
msgid "License is active and valid."
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:196
|
||||
msgid "License is invalid."
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:197
|
||||
msgid "License has expired."
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:198
|
||||
msgid "License has been revoked."
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:199
|
||||
msgid "License is inactive."
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:200
|
||||
msgid "License has not been validated yet."
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:201
|
||||
msgid "License server is not configured."
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s: Expiration date
|
||||
#: src/Admin/Settings.php:214
|
||||
msgid "Expires: %s"
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s: Time ago
|
||||
#: src/Admin/Settings.php:225
|
||||
msgid "Last checked: %s ago"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:239
|
||||
msgid "License Server URL"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:249
|
||||
msgid "License Key"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:259
|
||||
msgid "Server Secret"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:264
|
||||
msgid "Leave empty to keep existing."
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:270
|
||||
msgid "Save License Settings"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:272
|
||||
msgid "Validate License"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:275
|
||||
msgid "Activate License"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:301
|
||||
msgid "Configure authentication for the /metrics endpoint."
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:310
|
||||
msgid "Select which default metrics to expose."
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:324
|
||||
msgid "Regenerate"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:327
|
||||
msgid "Use this token to authenticate Prometheus scrape requests."
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:340
|
||||
msgid "WordPress Info (version, PHP version, multisite)"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:341
|
||||
msgid "Total Users by Role"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:342
|
||||
msgid "Total Posts by Type and Status"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:343
|
||||
msgid "Total Comments by Status"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:344
|
||||
msgid "Total Plugins (active/inactive)"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:345
|
||||
msgid "HTTP Requests Total (by method, status, endpoint)"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:346
|
||||
msgid "HTTP Request Duration (histogram)"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:347
|
||||
msgid "Database Queries Total (by endpoint)"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:369
|
||||
msgid "Prometheus Configuration"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:370
|
||||
msgid "Add the following to your prometheus.yml:"
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s: Endpoint URL
|
||||
#: src/Admin/Settings.php:385
|
||||
msgid "Metrics endpoint: %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:93
|
||||
msgid "Auth Token"
|
||||
msgstr ""
|
||||
|
||||
#: src/Admin/Settings.php:101
|
||||
msgid "Enabled Metrics"
|
||||
msgstr ""
|
||||
|
||||
#: src/Plugin.php:120
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#. translators: 1: Required PHP version, 2: Current PHP version
|
||||
#: wp-prometheus.php:112
|
||||
msgid "WP Prometheus requires PHP version %1$s or higher. You are running PHP %2$s."
|
||||
msgstr ""
|
||||
|
||||
#. translators: 1: Required WordPress version, 2: Current WordPress version
|
||||
#: wp-prometheus.php:127
|
||||
msgid "WP Prometheus requires WordPress version %1$s or higher. You are running WordPress %2$s."
|
||||
msgstr ""
|
||||
|
||||
#: wp-prometheus.php:140
|
||||
msgid "WP Prometheus requires Composer dependencies to be installed. Please run \"composer install\" in the plugin directory."
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s: Required PHP version
|
||||
#: wp-prometheus.php:156
|
||||
msgid "WP Prometheus requires PHP version %s or higher."
|
||||
msgstr ""
|
||||
Reference in New Issue
Block a user