File tree Expand file tree Collapse file tree 3 files changed +53
-0
lines changed
prometheus/prometheus.yml.d Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -372,3 +372,10 @@ enable_image_cleaner: no
372
372
373
373
# Manila
374
374
default_share_type : cephfsnfstype
375
+
376
+ # Central Logging Configuration
377
+ loki_url : " https://logs.chameleoncloud.org"
378
+ prometheus_remote_write_url : " https://metrics.chameleoncloud.org/api/v1/push"
379
+ prometheus_remote_write_username : " {{ keystone_idp_client_id }}"
380
+ upload_logs_chameleon : false
381
+ upload_metrics_chameleon : false
Original file line number Diff line number Diff line change
1
+ {% if upload_logs_chameleon | bool %}
2
+ <match **>
3
+ @type loki
4
+ url "{{ loki_url }}"
5
+ username "{{ prometheus_remote_write_username }}"
6
+ password "{{ prometheus_remote_write_password }}"
7
+ extra_labels {
8
+ "kolla_external_fqdn": "{{ kolla_external_fqdn }}",
9
+ "keystone_idp_client_id": "{{ keystone_idp_client_id }}",
10
+ "openstack_region_name": "{{ openstack_region_name }}",
11
+ "chameleon_site_name": "{{ chameleon_site_name }}"
12
+ }
13
+ <buffer>
14
+ flush_interval 10s
15
+ flush_at_shutdown true
16
+ </buffer>
17
+
18
+ <label>
19
+ Hostname
20
+ </label>
21
+ <label>
22
+ Logger
23
+ </label>
24
+ <label>
25
+ programname
26
+ </label>
27
+ <label>
28
+ level log_level
29
+ </label>
30
+ </match>
31
+ {% endif %}
Original file line number Diff line number Diff line change
1
+ ---
2
+ {% if upload_metrics_chameleon | bool %}
3
+ remote_write :
4
+ - url : " {{ prometheus_remote_write_url }}"
5
+ basic_auth :
6
+ username : " {{ prometheus_remote_write_username }}"
7
+ password : " {{ prometheus_remote_write_password }}"
8
+ {% endif %}
9
+
10
+ global :
11
+ external_labels :
12
+ kolla_external_fqdn : " {{ kolla_external_fqdn }}"
13
+ keystone_idp_client_id : " {{ keystone_idp_client_id }}"
14
+ openstack_region_name : " {{ openstack_region_name }}"
15
+ chameleon_site_name : " {{ chameleon_site_name }}"
You can’t perform that action at this time.
0 commit comments