Categorygithub.com/ashokhin/s3_exporter
modulepackage
1.3.7
Repository: https://github.com/ashokhin/s3_exporter.git
Documentation: pkg.go.dev

# README

AWS S3 Exporter

Этот экспортер предоставляет метрики для AWS S3-совместимых объектов в определённых бакетах. Список баккетов передаётся через конигурационный YAML-файл. Пример конфигурации указан в файле config_example.yml.

Building

make

Running

./s3_exporter <flags>

AWS Credentials

Экспортер создаёт сессиюю с S3-хранилищем используя точку входа и access_key + secret_key из конфигурационного YAML-файла. Пример конфигурации указан в файле config_example.yml.

Flags

  -h, --help                     Show context-sensitive help (also try --help-long and --help-man).
      --web.listen-address=":9340"
                                 Address to listen on for web interface and telemetry.
      --web.metrics-path="/metrics"
                                 Path under which to expose metrics
      --exporter-config-file=""  Path to exporter config file
      --log.level=info           Only log messages with the given severity or above. One of: [debug, info, warn, error]
      --log.format=logfmt        Output format of log messages. One of: [logfmt, json]
      --version                  Show application version.

Metrics

MetricMeaningLabels
s3_biggest_object_size_bytesThe size of the largest object.bucket
s3_last_modified_object_dateThe modification date of the most recently modified object.bucket
s3_last_modified_object_size_bytesThe size of the object that was modified most recently.bucket
s3_list_duration_secondsThe duration of the ListObjects operationbucket
s3_list_successDid the ListObjects operation complete successfully?bucket
s3_objects_size_sum_bytesThe sum of the size of all the objects.bucket
s3_objectsThe total number of objects.bucket
s3_cds_objects_size_sum_bytesThe sum of the size of all the objects by sin and modification date.bucket, moddate, sin
s3_cds_objects_totalThe total number of objects by sin and modification date.bucket, moddate, sin
s3_trigger_objects_size_sum_bytesThe sum of the size of all the objects by sin, modification date and program.bucket, moddate, sin, program
s3_trigger_objects_totalThe total number of objectsby sin, modification date and program.bucket, moddate, sin, program

Prometheus

Example Queries

Возвраащает серию, где последняя дата модификации объекта больше 24 часов:

(time() - s3_last_modified_object_date) / 3600 > 24

# Structs

Exporter is our exporter type.
No description provided by the author