Last active
August 17, 2022 11:22
-
-
Save jnahelou/bd6959654f00b5054030c4efa5985f1b to your computer and use it in GitHub Desktop.
Medium article https://medium.com/@nahelou.j/ultimate-google-cloud-operations-configuration-for-external-services-b13fbe90509
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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