Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readd apache_metrics source examples #4634

Closed
binarylogic opened this issue Oct 19, 2020 · 1 comment
Closed

Readd apache_metrics source examples #4634

binarylogic opened this issue Oct 19, 2020 · 1 comment
Labels
domain: external docs Anything related to Vector's external, public documentation source: apache_metrics Anything `apache_metrics` source related type: task Generic non-code related tasks

Comments

@binarylogic
Copy link
Contributor

I had to temporarily remove these since I don't have time to convert the output of these by hand, but I will shortly.

	examples: [
		{
			title: "Extended"
			configuration: {
				address: "0.0.0.0:443"
			}
			input: """
				```text title="Example mod_status payload"
				localhost
				ServerVersion: Apache/2.4.46 (Unix)
				ServerMPM: event
				Server Built: Aug  5 2020 23:20:17
				CurrentTime: Thursday, 03-Sep-2020 20:48:54 UTC
				RestartTime: Thursday, 03-Sep-2020 20:48:41 UTC
				ParentServerConfigGeneration: 1
				ParentServerMPMGeneration: 0
				ServerUptimeSeconds: 12
				ServerUptime: 12 seconds
				Load1: 0.75
				Load5: 0.59
				Load15: 0.76
				BusyWorkers: 1
				IdleWorkers: 74
				Processes: 3
				Stopping: 0
				BusyWorkers: 1
				IdleWorkers: 74
				ConnsTotal: 1
				ConnsAsyncWriting: 0
				ConnsAsyncKeepAlive: 0
				ConnsAsyncClosing: 0
				Scoreboard: ____S_____I______R____I_______KK___D__C__G_L____________W__________________.....................................................................................................................................................................................................................................................................................................................................
				```
				"""
			output: """
				```text title="Example metrics"
				2020-09-09T19:26:05.473213405Z apache_access_total{endpoint="http://localhost:8080/server-status?auto",host="localhost"} = 30
				2020-09-09T19:26:05.473213405Z apache_connections{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="closing"} = 0
				2020-09-09T19:26:05.473213405Z apache_connections{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="keepalive"} = 0
				2020-09-09T19:26:05.473213405Z apache_connections{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="total"} = 1
				2020-09-09T19:26:05.473213405Z apache_connections{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="writing"} = 0
				2020-09-09T19:26:05.473213405Z apache_cpu_load{endpoint="http://localhost:8080/server-status?auto",host="localhost"} = 0.846154
				2020-09-09T19:26:05.473213405Z apache_cpu_seconds_total{endpoint="http://localhost:8080/server-status?auto",host="localhost",type="children_system"} = 0
				2020-09-09T19:26:05.473213405Z apache_cpu_seconds_total{endpoint="http://localhost:8080/server-status?auto",host="localhost",type="children_user"} = 0
				2020-09-09T19:26:05.473213405Z apache_cpu_seconds_total{endpoint="http://localhost:8080/server-status?auto",host="localhost",type="system"} = 0.02
				2020-09-09T19:26:05.473213405Z apache_cpu_seconds_total{endpoint="http://localhost:8080/server-status?auto",host="localhost",type="user"} = 0.2
				2020-09-09T19:26:05.473213405Z apache_duration_seconds_total{endpoint="http://localhost:8080/server-status?auto",host="localhost"} = 11
				2020-09-09T19:26:05.473213405Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="closing"} = 1
				2020-09-09T19:26:05.473213405Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="dnslookup"} = 1
				2020-09-09T19:26:05.473213405Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="finishing"} = 1
				2020-09-09T19:26:05.473213405Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="idle_cleanup"} = 2
				2020-09-09T19:26:05.473213405Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="keepalive"} = 2
				2020-09-09T19:26:05.473213405Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="logging"} = 1
				2020-09-09T19:26:05.473213405Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="open"} = 325
				2020-09-09T19:26:05.473213405Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="reading"} = 1
				2020-09-09T19:26:05.473213405Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="sending"} = 1
				2020-09-09T19:26:05.473213405Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="starting"} = 1
				2020-09-09T19:26:05.473213405Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="waiting"} = 64
				2020-09-09T19:26:05.473213405Z apache_sent_bytes_total{endpoint="http://localhost:8080/server-status?auto",host="localhost"} = 222208
				2020-09-09T19:26:05.473213405Z apache_uptime_seconds_total{endpoint="http://localhost:8080/server-status?auto",host="localhost"} = 26
				2020-09-09T19:26:05.473213405Z apache_workers{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="busy"} = 1
				2020-09-09T19:26:05.473213405Z apache_workers{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="idle"} = 74
				2020-09-09T19:26:05.474493420Z apache_up{endpoint="http://localhost:8080/server-status?auto",host="localhost"} = 0
				```
				"""
		},
		{
			title: "Non-Extended"
			configuration: {
				address: "0.0.0.0:443"
			}
			input: """
				```text title="Example mod_status payload"
				```
				"""
			output: """
				```text title="Example metrics"
				2020-09-09T19:24:20.475444391Z apache_connections{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="closing"} = 0
				2020-09-09T19:24:20.475444391Z apache_connections{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="keepalive"} = 0
				2020-09-09T19:24:20.475444391Z apache_connections{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="total"} = 1
				2020-09-09T19:24:20.475444391Z apache_connections{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="writing"} = 0
				2020-09-09T19:24:20.475444391Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="closing"} = 1
				2020-09-09T19:24:20.475444391Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="dnslookup"} = 1
				2020-09-09T19:24:20.475444391Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="finishing"} = 1
				2020-09-09T19:24:20.475444391Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="idle_cleanup"} = 2
				2020-09-09T19:24:20.475444391Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="keepalive"} = 2
				2020-09-09T19:24:20.475444391Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="logging"} = 1
				2020-09-09T19:24:20.475444391Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="open"} = 325
				2020-09-09T19:24:20.475444391Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="reading"} = 1
				2020-09-09T19:24:20.475444391Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="sending"} = 1
				2020-09-09T19:24:20.475444391Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="starting"} = 1
				2020-09-09T19:24:20.475444391Z apache_scoreboard{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="waiting"} = 64
				2020-09-09T19:24:20.475444391Z apache_uptime_seconds_total{endpoint="http://localhost:8080/server-status?auto",host="localhost"} = 12
				2020-09-09T19:24:20.475444391Z apache_workers{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="busy"} = 1
				2020-09-09T19:24:20.475444391Z apache_workers{endpoint="http://localhost:8080/server-status?auto",host="localhost",state="idle"} = 74
				2020-09-09T19:24:20.476079976Z apache_up{endpoint="http://localhost:8080/server-status?auto",host="localhost"} = 0
				```
				"""
		},
	]
@binarylogic binarylogic added type: task Generic non-code related tasks domain: external docs Anything related to Vector's external, public documentation source: apache_metrics Anything `apache_metrics` source related labels Oct 19, 2020
@binarylogic binarylogic added this to the 2020-10-12: Son of Flynn milestone Oct 19, 2020
@binarylogic binarylogic self-assigned this Oct 19, 2020
@jamtur01 jamtur01 removed this from the 2020-10-26: Recognizer milestone Nov 5, 2020
@jszwedko
Copy link
Member

Closing as apparently unneeded.

@jszwedko jszwedko closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: external docs Anything related to Vector's external, public documentation source: apache_metrics Anything `apache_metrics` source related type: task Generic non-code related tasks
Projects
None yet
Development

No branches or pull requests

3 participants