woblerr commented on code in PR #87:
URL: https://github.com/apache/cloudberry-backup/pull/87#discussion_r3140289549


##########
exporter/README.md:
##########
@@ -0,0 +1,122 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# gpbackup_exporter
+
+**gpbackup_exporter** is a Prometheus exporter for collecting metrics from 
gpbackup history database (`gpbackup_history.db`).
+
+## Metrics
+### Backup metrics
+| Metric | Description |  Labels | Additional Info |
+| ----------- | ------------------ | ------------- | --------------- |
+| `gpbackup_backup_status` | backup status | backup_type, database_name, 
object_filtering, plugin, timestamp | Values description:<br> `0` - 
success,<br> `1` - failure.|
+| `gpbackup_backup_deletion_status` | backup deletion status | backup_type, 
database_name, date_deleted, object_filtering, plugin, timestamp | Values 
description:<br> `0` - backup still exists,<br> `1` - backup was successfully 
deleted,<br> `2` - the deletion is in progress,<br> `3` - last delete attempt 
failed to delete backup from plugin storage,<br> `4` - last delete attempt 
failed to delete backup from local storage.|
+| `gpbackup_backup_info` | backup info | backup_dir, backup_ver, backup_type, 
compression_type, database_name, database_ver, object_filtering, plugin, 
plugin_ver, timestamp, with_statistic | Values description:<br> `1` - info 
about backup is exist.|
+| `gpbackup_backup_duration_seconds` | backup duration in seconds| 
backup_type, database_name, end_time, object_filtering, plugin, timestamp ||
+
+### Last backup metrics
+| Metric | Description |  Labels | Additional Info |
+| ----------- | ------------------ | ------------- | --------------- |
+| `gpbackup_backup_since_last_completion_seconds`| seconds since the last 
completed backup | backup_type, database_name ||
+
+### Exporter metrics
+
+| Metric | Description |  Labels | Additional Info |
+| ----------- | ------------------ | ------------- | --------------- |
+| `gpbackup_exporter_build_info` | information about gpbackup exporter | 
branch, goarch, goos, goversion, revision, tags, version | |
+| `gpbackup_exporter_status` | gpbackup exporter get data status | 
database_name | Values description:<br> `0` - errors occurred when fetching 
information from history database,<br> `1` - information successfully fetched 
from history database. |
+
+## Getting Started
+Available configuration flags:
+
+```bash
+./gpbackup_exporter --help
+usage: gpbackup_exporter [<flags>]
+
+
+Flags:
+  -h, --[no-]help                Show context-sensitive help (also try 
--help-long and --help-man).
+      --web.telemetry-path="/metrics"  
+                                 Path under which to expose metrics.
+      --web.listen-address=:19854 ...  

Review Comment:
   thanks, fixed in 
https://github.com/apache/cloudberry-backup/pull/87/commits/131dc823fd4c0e595a91cacddbf14f2cf05d7e29



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to