Suppose you're opening an issue and there's a lot noisey logs that may be useful.
Rather than wrecking readability, wrap it in a <details> tag!
<details>
<summary>Summary Goes Here</summary>| # my global config | |
| global: | |
| scrape_interval: 1m # Set the scrape interval | |
| evaluation_interval: 1m # Evaluate rules every N | |
| # scrape_timeout is set to the global default (10s). | |
| external_labels: | |
| monitoring_server: {{ host }} | |
| # Alertmanager configuration | |
| alerting: |
| #!/usr/bin/jq -Sf | |
| def chef_fields: | |
| # special field adjustments go here | |
| . | |
| ; | |
| .rows| | |
| map(select(.name)) | sort_by(.name) | | |
| [ | |
| { | |
| "labels": { | |
| "kernel_release": "3.4.5.x86_64", | |
| "os": "linux", | |
| "os_version": "3.4.5.x86_64", | |
| "platform": "centos", | |
| "platform_family": "rhel", | |
| "platform_version": "7.8.9" | |
| }, |
| (defun save-all-buffers () | |
| "Unconditionally save all modified buffers." | |
| (interactive) | |
| (save-some-buffers 1) | |
| (message "All buffers saved")) | |
| (add-hook 'focus-out-hook 'save-all-buffers) |
| body common control | |
| { | |
| bundlesequence => { "test" }; | |
| } | |
| bundle agent test | |
| { | |
| vars: | |
| "users" data => parsejson(' | |
| [ |
| bundle agent main | |
| { | |
| methods: | |
| "test"; | |
| vars: | |
| "test_state" data => bundlestate(test); | |
| "test_string" string => storejson(test_state); | |
| reports: |
| bundle agent main | |
| { | |
| methods: | |
| "" usebundle => basic_classes_vars; | |
| "" usebundle => basic_classes("ubuntu-server"); | |
| # "" usebundle => basic_classes("fellini"); | |
| reports: | |
| server:: | |
| "The server class is set"; |
| bundle agent main | |
| { | |
| methods: | |
| "" usebundle => servers; | |
| "" usebundle => serverp("ubuntu-server"); | |
| "" usebundle => serverp("fellini"); | |
| } | |
| bundle common servers | |
| { |
| body common control | |
| { | |
| bundlesequence => { holder, test_monit_mustache("ssh") }; | |
| } | |
| bundle common holder | |
| { | |
| classes: | |
| "holderclass" expression => "any"; # will be global |