Top Level Namespace
Defined Under Namespace
Modules: Common, Fluent, FluentLogger, GRPC, Google, Monitoring, Statusz Classes: Strptime
Constant Summary collapse
- SERVER_START =
Time.now
- CONFIG_KEYS =
Does not include the following deprecated config params: auth_method, private_key_email, private_key_passphrase, private_key_path
%w[ adjust_invalid_timestamps autoformat_stackdriver_trace coerce_to_utf8 detect_json detect_subservice enable_monitoring http_request_key insert_id_key k8s_cluster_location k8s_cluster_name kubernetes_tag_regexp label_map labels_key labels logging_api_url monitoring_type non_utf8_replacement_string operation_key project_id require_valid_tags source_location_key span_id_key split_logs_by_tag statusz_port subservice_name trace_key trace_sampled_key use_aws_availability_zone use_grpc use_metadata_service vm_id vm_name zone ].freeze
- STATUSZ_TMPL =
%(\ <!DOCTYPE html> <html> <head> <title>Status for <%= File.basename($PROGRAM_NAME) %></title> <style> body { font-family: sans-serif; } h1 { clear: both; width: 100%; text-align: center; font-size: 120%; background: #eef; } .lefthand { float: left; width: 80%; } .righthand { text-align: right; } td, th { background-color: rgba(0, 0, 0, 0.05); } th { text-align: left; } </style> </head> <body> <h1>Status for <%= File.basename($PROGRAM_NAME) %></h1> <div> <div class="lefthand"> Started: <%= SERVER_START %><br> Up <%= uptime_str %><br> </div> </div> <h1>Parsed configuration</h1> <table> #{CONFIG_KEYS.map { |k| " <tr><th>#{k}</th><td><%= plugin.#{k} %></td></tr>" }.join("\n")} </table> </body> </html> ).freeze