Skip to content

Instantly share code, notes, and snippets.

@jnahelou
Last active August 17, 2022 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnahelou/bd6959654f00b5054030c4efa5985f1b to your computer and use it in GitHub Desktop.
Save jnahelou/bd6959654f00b5054030c4efa5985f1b to your computer and use it in GitHub Desktop.
receivers: [0/45]
elasticsearch/elasticsearch_elasticsearch:
collection_interval: 30s
endpoint: https://my-deployment-<CHANGEME>.es.europe-west1.gcp.cloud.es.io
nodes: ["_local"]
password: <CHANGEME>
skip_cluster_metrics: false
tls:
insecure: false
username: elastic
processors:
resourcedetection/system:
detectors: ["system"]
system:
hostname_sources: ["os"]
resourcedetection/env:
detectors: [env]
#timeout: 2s
override: true
resource/id:
attributes:
- key: service.instance.id
from_attribute: host.name
action: update
metricstransform/elasticsearch_elasticsearch_1:
transforms:
- action: update
include: ^(.*)$$
match_type: regexp
new_name: workload.googleapis.com/$${1}
exporters: [36/45]
googlecloud:
metric:
instrumentation_library_labels: false
prefix: ""
resource_filters: []
service_resource_labels: true
skip_create_descriptor: true
retry_on_failure:
enabled: false
service:
pipelines:
metrics/elasticsearch_elasticsearch:
exporters:
- googlecloud
processors:
- resourcedetection/system
- resourcedetection/env
- resource/id
- metricstransform/elasticsearch_elasticsearch_1
receivers:
- elasticsearch/elasticsearch_elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment