Thanks for your reply. 

Yes I was able to scrape the metrics using curl -v 
http://xx.xx.xx.xx:8080/s3 

Little back ground on this - I'm using cloudwatch exporter to pull metrics 
from Cloudwatch and send data to Prometheus through Prometheus Proxy and 
Agent (https://github.com/pambrose/prometheus-proxy)

Cloud Watch -> Cloud Watch Exporter - > Prometheus Proxy/Agent -> Prometheus

So I see S3 metrics when I curl Prometheus Proxy. I can Ec2 metrics in 
Prometheus and not S3 when I use same config in Prometheus.

- job_name: 'S3 Monitoring'
    metrics_path: /s3
    static_configs:
      - targets: ['xx.xx.xx.xx:8080']

# 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

On Saturday, September 26, 2020 at 3:17:15 AM UTC-7 [email protected] wrote:

> Can you scrape the exporter with 'curl'? What's the exact curl command 
> line you use?
>

-- 
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/8ae785ec-aef1-4eb0-a2f9-827d613eb206n%40googlegroups.com.

Reply via email to