mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 10:12:26 -05:00 
			
		
		
		
	[chore]: Bump github.com/prometheus/client_golang from 1.19.1 to 1.20.0 (#3210)
This commit is contained in:
		
					parent
					
						
							
								ae14aa004d
							
						
					
				
			
			
				commit
				
					
						6ff8376d96
					
				
			
		
					 197 changed files with 28294 additions and 563 deletions
				
			
		
							
								
								
									
										11
									
								
								vendor/github.com/prometheus/procfs/mountstats.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								vendor/github.com/prometheus/procfs/mountstats.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -88,7 +88,7 @@ type MountStatsNFS struct { | |||
| 	// Statistics broken down by filesystem operation. | ||||
| 	Operations []NFSOperationStats | ||||
| 	// Statistics about the NFS RPC transport. | ||||
| 	Transport NFSTransportStats | ||||
| 	Transport []NFSTransportStats | ||||
| } | ||||
| 
 | ||||
| // mountStats implements MountStats. | ||||
|  | @ -194,8 +194,6 @@ type NFSOperationStats struct { | |||
| 	CumulativeTotalResponseMilliseconds uint64 | ||||
| 	// Duration from when a request was enqueued to when it was completely handled. | ||||
| 	CumulativeTotalRequestMilliseconds uint64 | ||||
| 	// The average time from the point the client sends RPC requests until it receives the response. | ||||
| 	AverageRTTMilliseconds float64 | ||||
| 	// The count of operations that complete with tk_status < 0.  These statuses usually indicate error conditions. | ||||
| 	Errors uint64 | ||||
| } | ||||
|  | @ -434,7 +432,7 @@ func parseMountStatsNFS(s *bufio.Scanner, statVersion string) (*MountStatsNFS, e | |||
| 				return nil, err | ||||
| 			} | ||||
| 
 | ||||
| 			stats.Transport = *tstats | ||||
| 			stats.Transport = append(stats.Transport, *tstats) | ||||
| 		} | ||||
| 
 | ||||
| 		// When encountering "per-operation statistics", we must break this | ||||
|  | @ -582,9 +580,6 @@ func parseNFSOperationStats(s *bufio.Scanner) ([]NFSOperationStats, error) { | |||
| 			CumulativeTotalResponseMilliseconds: ns[6], | ||||
| 			CumulativeTotalRequestMilliseconds:  ns[7], | ||||
| 		} | ||||
| 		if ns[0] != 0 { | ||||
| 			opStats.AverageRTTMilliseconds = float64(ns[6]) / float64(ns[0]) | ||||
| 		} | ||||
| 
 | ||||
| 		if len(ns) > 8 { | ||||
| 			opStats.Errors = ns[8] | ||||
|  | @ -632,7 +627,7 @@ func parseNFSTransportStats(ss []string, statVersion string) (*NFSTransportStats | |||
| 			return nil, fmt.Errorf("%w: invalid NFS transport stats 1.1 statement: %v, protocol: %v", ErrFileParse, ss, protocol) | ||||
| 		} | ||||
| 	default: | ||||
| 		return nil, fmt.Errorf("%s: Unrecognized NFS transport stats version: %q, protocol: %v", ErrFileParse, statVersion, protocol) | ||||
| 		return nil, fmt.Errorf("%w: Unrecognized NFS transport stats version: %q, protocol: %v", ErrFileParse, statVersion, protocol) | ||||
| 	} | ||||
| 
 | ||||
| 	// Allocate enough for v1.1 stats since zero value for v1.1 stats will be okay | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue