Created
July 28, 2020 16:53
-
-
Save 46bit/bbc7f267f6115fc008c9ddb43cd56745 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
global: | |
scrape_interval: 15s | |
scrape_timeout: 10s | |
evaluation_interval: 15s | |
alerting: | |
alertmanagers: | |
- static_configs: | |
- targets: [] | |
scheme: http | |
timeout: 10s | |
api_version: v1 | |
scrape_configs: | |
- job_name: prometheus | |
honor_timestamps: true | |
scrape_interval: 15s | |
scrape_timeout: 10s | |
metrics_path: /metrics | |
scheme: http | |
static_configs: | |
- targets: | |
- localhost:9090 | |
# This is the bit you need if configuring an existing Prometheus | |
- job_name: aiven_prometheus | |
scheme: https | |
basic_auth: | |
username: TO_BE_PROVIDED_BY_PAAS_SUPPORT | |
password: TO_BE_PROVIDED_BY_PAAS_SUPPORT | |
metrics_path: '/federate' | |
params: | |
"match[]": | |
- "{job='aiven'}" | |
static_configs: | |
- targets: | |
- TO_BE_PROVIDED_BY_PAAS_SUPPORT | |
metric_relabel_configs: | |
# Prepend `paas_es_` so the metrics are easier to find | |
- action: replace | |
source_labels: [__name__] | |
target_label: __name__ | |
regex: (.*) | |
replacement: paas_es_${1} | |
# Dummy entry to be used below | |
- &store_this_metric | |
action: replace | |
target_label: __store_this__ | |
replacement: store_this | |
source_labels: [__name__] | |
regex: __dummy_metric_name | |
# One entry for each metric you want to import into Prometheus. | |
# (Or remove this and the drop rules below it in order to import all | |
# nearly 1000 metrics.) | |
- <<: *store_this_metric | |
regex: paas_es_disk_free | |
- <<: *store_this_metric | |
regex: paas_es_disk_used_percent | |
- <<: *store_this_metric | |
regex: paas_es_diskio_io_time | |
- <<: *store_this_metric | |
regex: paas_es_diskio_iops_in_progress | |
- <<: *store_this_metric | |
regex: paas_es_diskio_read_time | |
- <<: *store_this_metric | |
regex: paas_es_diskio_write_time | |
- <<: *store_this_metric | |
regex: paas_es_swap_used_percent | |
- <<: *store_this_metric | |
regex: paas_es_system_load1 | |
- <<: *store_this_metric | |
regex: paas_es_system_load5 | |
- <<: *store_this_metric | |
regex: paas_es_system_load15 | |
- <<: *store_this_metric | |
regex: paas_es_net_bytes_recv | |
- <<: *store_this_metric | |
regex: paas_es_net_bytes_sent | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_os_mem_free_percent | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_os_mem_used_percent | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_process_cpu_percent | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_indices_count | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_indices_docs_count | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_indices_docs_deleted | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_indices_query_cache_miss_count | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_indices_store_size_in_bytes | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_count_master | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_count_total | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_fs_available_in_bytes | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_fs_free_in_bytes | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_fs_total_in_bytes | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_jvm_mem_heap_max_in_bytes | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_jvm_mem_heap_used_in_bytes | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_jvm_threads | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_process_open_file_descriptors_avg | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_process_open_file_descriptors_max | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_clusterstats_nodes_process_open_file_descriptors_min | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_cluster_health_active_primary_shards | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_cluster_health_active_shards | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_cluster_health_active_shards_percent_as_number | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_cluster_health_initializing_shards | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_cluster_health_number_of_data_nodes | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_cluster_health_number_of_nodes | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_cluster_health_number_of_pending_tasks | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_cluster_health_relocating_shards | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_cluster_health_status_code | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_cluster_health_task_max_waiting_in_queue_millis | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_cluster_health_unassigned_shards | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_indices_docs_count | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_indices_docs_deleted | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_indices_request_cache_hit_count | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_indices_request_cache_miss_count | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_os_cpu_load_average_15m | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_os_cpu_load_average_1m | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_os_cpu_load_average_5m | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_os_cpu_percent | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_os_mem_free_percent | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_os_mem_used_percent | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_os_swap_total_in_bytes | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_os_swap_used_in_bytes | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_process_max_file_descriptors | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_process_open_file_descriptors | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_jvm_gc_collectors_old_collection_count | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_jvm_gc_collectors_old_collection_time_in_millis | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_jvm_gc_collectors_young_collection_count | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_jvm_gc_collectors_young_collection_time_in_millis | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_jvm_mem_heap_used_percent | |
- <<: *store_this_metric | |
regex: paas_es_elasticsearch_jvm_uptime_in_millis | |
# Drop metrics we don't want to keep | |
- source_labels: [__store_this__] | |
regex: ^store_this$ | |
action: keep | |
# Drop the temporary label | |
- regex: ^__store_this__$ | |
action: labeldrop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment