普罗米修斯AWS担保出口商

prometheus-aws-guardduty-exporter的Python项目详细描述


普罗米修斯AWS担保出口商

功能

  • 从AWS GuardDuty导出当前(未归档)结果的数量,按区域和严重性进行划分
  • 支持多个AWS区域

导出指标

导出器导出以下度量:

Metric nameTypeLabelsDescription
^{}gaugeNoneAlways ^{}: can be used to check if it's running
^{}gauge^{}, ^{}The current number of unarchived findings
^{}counter^{}, ^{}The total number of scrape errors

如何运行它

您有两个选项来运行它:

  1. 手动安装并运行^{} Python package

    pip3 install prometheus-aws-guardduty-exporter
    
    prometheus-aws-guardduty-exporter --region us-east-1
    
  2. 使用Docker image available on Docker hub

    docker run --env AWS_ACCESS_KEY_ID="id" --env AWS_SECRET_ACCESS_KEY="secret" spreaker/prometheus-aws-guardduty-exporter --region us-east-1
    

cli支持以下参数:

ArgumentRequiredDescription
^{}yesAWS GuardDuty region (can specify multiple space separated regions)
^{}The host at which the Prometheus exporter should listen to. Defaults to ^{}
^{}The port at which the Prometheus exporter should listen to. Defaults to ^{}
^{}Minimum log level. Accepted values are: ^{}, ^{}, ^{}, ^{}, ^{}. Defaults to ^{}

所需的IAM权限

为了成功运行,此应用程序需要以下IAM权限:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid":    "ListDetectorsAndGetFindingsStatisticsInAnyRegion",
      "Effect": "Allow",
      "Action": [
        "guardduty:ListDetectors",
        "guardduty:GetFindingsStatistics"
      ],
      "Resource": "*"
    }
  ]
}

开发

运行开发环境:

docker-compose build dev && docker-compose run --rm dev

在开发环境中运行测试:

python3 -m unittest

许可证

此软件在MIT license下发布。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
在扩展类中将Java重写为抽象的非抽象方法   java可滚动视图   java Android:隐藏操作栏,保持标签   java如何在Hibernate中使用@Qualifier   java如何在spring MVC中进行Http会话管理以获取数据库中的数据   java如何为TictaToe游戏创建HashMap   java在消息资源文件中查找未使用的值   从源代码构建Kafka时发生java错误   c中的java调用optaplanner DLL#   无法通过Java API访问orientdb函数   任务的java执行失败“:app:ProcessDebuggGoogleService”   java在整个模拟过程中保持代理之间的距离不变   如何在Java中使用BouncyCastle PGP实用程序实现增量加密?   java在安卓中计算画布点的距离   Java回文修订   java在Firebase数据库中存储变量的必要性   java如何使用gquery手势插件在页面上启用文本突出显示?   java如何在Apache camel中使用POST调用REST?