Even tried with below -
- job_name: 'S3 Monitoring'
metrics_path: /s3
static_configs:
- targets: ['xx.xx.xx.xx:8080']
On Friday, September 25, 2020 at 5:04:45 PM UTC-7 Sanju k wrote:
> Hi Monitoring Gurus,
>
> I'm using Cloudwatch exporter to scape metrics from Cloudwatch and I see
> metrics being scrapped from Cloudwatch through Cloudwatch Exporter.
>
> # HELP aws_s3_bucket_size_bytes_average CloudWatch metric AWS/S3
> BucketSizeBytes Dimensions: [BucketName, StorageType] Statistic: Average
> Unit: Bytes
> # TYPE aws_s3_bucket_size_bytes_average gauge
> aws_s3_bucket_size_bytes_average{job="aws_s3",instance="",storage_type="StandardStorage",bucket_name="XXXXXXXXXXXXXX",}
>
> 4317749.0 160099116
> 0000
> aws_s3_bucket_size_bytes_average{job="aws_s3",instance="",storage_type="StandardStorage",bucket_name="XXXXXXXXXXXX",}
>
> 1.2971384E7 1600991160000
> # HELP aws_s3_number_of_objects_average CloudWatch metric AWS/S3
> NumberOfObjects Dimensions: [BucketName, StorageType] Statistic: Average
> Unit: Count
> # TYPE aws_s3_number_of_objects_average gauge
> aws_s3_number_of_objects_average{job="aws_s3",instance="",storage_type="AllStorageTypes",bucket_name="XXXXXXXXXX",}
>
> 3.0 1600991160000
> aws_s3_number_of_objects_average{job="aws_s3",instance="",storage_type="AllStorageTypes",bucket_name="XXXXXXXXXX",}
>
> 3596.0 1600991160000
>
> However when I try to view through Prometheus using below configurations,
> I could see Ec2 and Lambda metrics but not S3.
>
> - job_name: 'AWS Monitoring'
> metrics_path: /metrics
> static_configs:
> - targets:
> - AWS
> relabel_configs:
> - source_labels: [_address_]
> target_label: instance
> - target_label: _address_
> replacement: xx.xx.xx.xx:8080'
>
> Do I need to add any additional config to view S3 metrics ?
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/73d24e6f-6af6-478b-844b-1a71ea4b4fa5n%40googlegroups.com.