Clean up metrics
This commit is contained in:
		
							
								
								
									
										20
									
								
								lease.py
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								lease.py
									
									
									
									
									
								
							| @@ -13,10 +13,22 @@ from sanic_wtf import SanicForm | |||||||
| from wtforms import IntegerField, StringField | from wtforms import IntegerField, StringField | ||||||
| from wtforms.validators import DataRequired, IPAddress, NumberRange | from wtforms.validators import DataRequired, IPAddress, NumberRange | ||||||
|  |  | ||||||
| submit_count = Counter("pinecrypt_lease_submit", "IP updates", ["service"]) | submit_count = Counter( | ||||||
| flush_count = Counter("pinecrypt_lease_flush", "IP assignment flushes", ["service"]) |     "pinecrypt_gateway_lease_updates", | ||||||
| migration_count = Counter("pinecrypt_migration", "Client has migrated to this replica", ["replica"]) |     "Client IP address updates.", | ||||||
| not_found_count = Counter("pinecrypt_lease_not_found", "Certificate not found", ["service"]) |     ["service"]) | ||||||
|  | flush_count = Counter( | ||||||
|  |     "pinecrypt_gateway_lease_flushes", | ||||||
|  |     "Client IP address flushes.", | ||||||
|  |     ["service"]) | ||||||
|  | migration_count = Counter( | ||||||
|  |     "pinecrypt_gateway_lease_migrations", | ||||||
|  |     "Client migrations to this replica.", | ||||||
|  |     ["replica"]) | ||||||
|  | not_found_count = Counter( | ||||||
|  |     "pinecrypt_gateway_lease_not_found", | ||||||
|  |     "Invalid connection attempts.", | ||||||
|  |     ["service"]) | ||||||
|  |  | ||||||
| class LeaseUpdateForm(SanicForm): | class LeaseUpdateForm(SanicForm): | ||||||
|     service = StringField("Service name") |     service = StringField("Service name") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user