exporter/alibabacloudlogserviceexporter/example/config.yaml (22 lines of code) (raw):

receivers: prometheus: config: scrape_configs: - job_name: 'otel-collector' scrape_interval: 10s static_configs: - targets: ['localhost:8890'] - targets: ['localhost:8889'] - targets: ['localhost:8888'] exporters: alibabacloud_logservice: # LogService's Endpoint, https://www.alibabacloud.com/help/doc-detail/29008.htm # for AlibabaCloud Kubernetes(or ECS), set {region-id}-intranet.log.aliyuncs.com, eg cn-hangzhou-intranet.log.aliyuncs.com; # others set {region-id}.log.aliyuncs.com, eg cn-hangzhou.log.aliyuncs.com endpoint: "cn-hangzhou.log.aliyuncs.com" # LogService's Project Name project: "demo-project" # LogService's Logstore Name logstore: "demo-logstore" # AlibabaCloud access key id access_key_id: "access-key-id" # AlibabaCloud access key secret access_key_secret: "access-key-secret" service: pipelines: metrics: receivers: [prometheus] exporters: [alibabacloud_logservice]