├── LICENSE ├── README.md ├── go.mod ├── go.sum ├── pingo-dc-to-dc-dashboard.json └── pingo.go /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pingo 2 | 3 | ## Pingo is a network statistics generation engine writtin in Golang. 4 | 5 | Pingo generates a series of UDP "pings" to various destinations where a remote Pingo responder bounces them back. 6 | By including a timecode in each ping, several statistics can be built showing latency, loss, and even the effect of ECMP on the underlying network. 7 | 8 | Pingo has been designed to be as lightweight as possible and require the minimum possible setup. Pingo natively generates Prometheus statistics that can be scraped directly from the pingo daemon. 9 | 10 | Suggested analysis by using the Pingo Grafana dashboard. 11 | 12 | ## Usage: 13 | 14 | After building, pingo is configured by setting several environment variables and specifying a config file. The config file contains a list of ports on which to open a receieve listener, as well as a definition for each flow 15 | to be generated. This file is pipe deliminted and is easy to generate using some form of script. 16 | 17 | ## Environment Variables: 18 | 19 | **PINGODEBUG** _(int)_ (Optional) - If PINGODEBUG is set to any number above 0 it will cause Pingo to become very verbose 20 | 21 | **PINGOTRIGDUMP** _(int)_ (Optional) - If PINGOTRIGDUMP is set to any number above 0 it will shift how prometheus metrics are compiled. Normally every 15 seconds each flows prometheus metrics are compiled. A mutex lock prevents a prometheus scrape from finishing until all flows have finished their dump. Enabling triggered dump will cause the flows to only dump when prometheus actually scrapes the endpoint. This will drive up scrape time but may provide more real-time statistics. 22 | 23 | **PINGOCONFIG** _(string)_ (Required) - Location of the pingo config file that defines pingo flows. 24 | 25 | **PINGOBUFSIZE** _(int)_ (Optional) - Set the UDP socket recieve buffer. This may need to be increased to prevent drops on systems with high numbers of flows. Be careful! Too high will crash Linux. 26 | 27 | **PINGOPORT** _(int)_ (Required) - Set the port that Pingo will listen on for Prometheus scrape on the /metrics and /healthcheck endpoints. 28 | 29 | **PINGOMTR** _(int)_ (Optional) - If PINGOMTR is set to any number above 0 it will cause Pingo to issue a quick MTR periodically between configured hosts to record the ASPATH. Uses external MTR executable which must be in PATH. Generates Gauges for each hop under currentPath metric. 30 | 31 | 32 | 33 | ## The Pingo config file format: 34 | 35 | dstdc|localip|lport|target|rport|pbr|rpbr|interval 36 | 37 | Those are defined as: 38 | 39 | - **dstdc** - A tag for the remote host you're pinging. Should make sense to you. Generates the "dstdc" label in Prometheus. 40 | 41 | - **localip** - The local IP address from which pings should be generated, and responses listened on. Will need to be an IP on the system running pingo. Generates the "localip" label in Prometheus. 42 | 43 | - **lport** - The UDP source port from which these pings will be sent. Generates the "lport" label in Prometheus. 44 | 45 | - **target** - The IP of the remote host we're pinging. Generates the "target" label in Prometheus. 46 | 47 | - **rport** - The port on the remote host we're pinging. Generates the "rport" label in Prometheus. 48 | 49 | - **pbr** - A label for the local transit or link we're sending on. Could be ASN of transit provider or something else locally significant. Generates the "pbr" label in Prometheus. 50 | 51 | - **rpbr**- A label for the remote transit or link the responses will be sent on. Could be ASN of transit provider or something else locally significant. Generates the "rpbr" label in Prometheus. 52 | 53 | - **interval** - Interval between successive packets on this flow. 0.5 is a good number. 54 | 55 | 56 | Given the bidirecitonal nature of Pingo, only one side of a pair of hosts has to initiate pings in order to get useful information for both directions. Many remote hosts that don't initiate will only open a series of reciever 57 | ports that allow them to respond to pingo pings. This is configured in a very similar format as outbound pinging 58 | 59 | RECV|localip|lport|0|0|0|0|0|0 60 | 61 | Those are defined as: 62 | 63 | - **RECV** - Static string indicating this is a receive only socket. 64 | 65 | - **localip** - The local IP address that we will listen for pingo pings on. 66 | 67 | - **lport** - The local UDP port that we will listen ofr pingo pings on. 68 | 69 | * The rest of the fields are just 0'd out and ignored. 70 | 71 | ## System design: 72 | 73 | Since pingo is a simple engine that initiates/recieves pings and generates statistics, it has no method by which to dictate the path a given ping will take. This is typically done by building a PBR or policy based route that will ensure that packets sent by pingo are routed via a given transit provider or link. The PBR should be based on the UDP source port of the packet. For example: 74 | 75 | 76 | - Create a PBR that routes packets sent on ports 50000-50009 to transit provider 1 77 | 78 | - Create a PBR that routse packets sent on ports 50010-50019 to transit provider 2. 79 | 80 | 81 | Each port to provider map is locally significant, as most work will be done by referencing the "pbr" and "rpbr" labels in Prometheus which can be set arbitrarily. That said, it's helpful to make sure that each port range is globally unique to a given upstream provider. 82 | 83 | That is, if 50000-50009 is used for AS1234 in one place, then use that same range for that provider elsewhere, and do not reuse it for other providers. 84 | 85 | Each provider/upstream/link must have a unique port range. 86 | 87 | ## Presentations 88 | 89 | - NANOG 89 - The Internet X-Ray: Diagnosing ECMP failures from the edge, [Video](https://www.youtube.com/watch?v=O2ctX4BGR_k), [PDF](https://storage.googleapis.com/site-media-prod/meetings/NANOG89/4896/20231018_Leeds_The_Internet_X-Ray__v1.pdf). 90 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module pingo 2 | 3 | go 1.18 4 | 5 | require ( 6 | github.com/montanaflynn/stats v0.6.6 7 | github.com/prometheus/client_golang v1.13.0 8 | golang.org/x/sys v0.1.0 9 | ) 10 | 11 | require ( 12 | github.com/beorn7/perks v1.0.1 // indirect 13 | github.com/cespare/xxhash/v2 v2.1.2 // indirect 14 | github.com/golang/protobuf v1.5.2 // indirect 15 | github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect 16 | github.com/prometheus/client_model v0.2.0 // indirect 17 | github.com/prometheus/common v0.37.0 // indirect 18 | github.com/prometheus/procfs v0.8.0 // indirect 19 | google.golang.org/protobuf v1.28.1 // indirect 20 | ) 21 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 6 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 7 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 8 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= 9 | cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= 10 | cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= 11 | cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= 12 | cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= 13 | cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= 14 | cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= 15 | cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= 16 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 17 | cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= 18 | cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= 19 | cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= 20 | cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= 21 | cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= 22 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 23 | cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= 24 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 25 | cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= 26 | cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= 27 | cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= 28 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 29 | cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= 30 | cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= 31 | cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= 32 | cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= 33 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 34 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 35 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 36 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 37 | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 38 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 39 | github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 40 | github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= 41 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 42 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 43 | github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= 44 | github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= 45 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 46 | github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 47 | github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= 48 | github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 49 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 50 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 51 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 52 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 53 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= 54 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 55 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 56 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 57 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 58 | github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= 59 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 60 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 61 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 62 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 63 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 64 | github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 65 | github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= 66 | github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= 67 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 68 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= 69 | github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= 70 | github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= 71 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 72 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 73 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 74 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 75 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 76 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 77 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 78 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 79 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 80 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 81 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 82 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 83 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 84 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 85 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 86 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 87 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 88 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 89 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 90 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 91 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 92 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 93 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 94 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 95 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 96 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 97 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 98 | github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= 99 | github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= 100 | github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= 101 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 102 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 103 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 104 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 105 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 106 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 107 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 108 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 109 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 110 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 111 | github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 112 | github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= 113 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 114 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 115 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 116 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 117 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 118 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 119 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 120 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 121 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 122 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 123 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 124 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 125 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 126 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 127 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 128 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 129 | github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= 130 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 131 | github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 132 | github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 133 | github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= 134 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 135 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 136 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 137 | github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= 138 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 139 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 140 | github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 141 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 142 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 143 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 144 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 145 | github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= 146 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 147 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 148 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 149 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 150 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 151 | github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= 152 | github.com/montanaflynn/stats v0.6.6 h1:Duep6KMIDpY4Yo11iFsvyqJDyfzLF9+sndUKT+v64GQ= 153 | github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= 154 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 155 | github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 156 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 157 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 158 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 159 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 160 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 161 | github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= 162 | github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= 163 | github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= 164 | github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= 165 | github.com/prometheus/client_golang v1.13.0 h1:b71QUfeo5M8gq2+evJdTPfZhYMAU0uKPkyPJ7TPsloU= 166 | github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= 167 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 168 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 169 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 170 | github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= 171 | github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 172 | github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 173 | github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= 174 | github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= 175 | github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= 176 | github.com/prometheus/common v0.37.0 h1:ccBbHCgIiT9uSoFY0vX8H3zsNR5eLt17/RQLUvn8pXE= 177 | github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= 178 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 179 | github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 180 | github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= 181 | github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= 182 | github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= 183 | github.com/prometheus/procfs v0.8.0 h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo= 184 | github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= 185 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 186 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 187 | github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= 188 | github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= 189 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 190 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 191 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 192 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 193 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 194 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 195 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 196 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 197 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 198 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 199 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 200 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 201 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 202 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 203 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 204 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 205 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 206 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 207 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 208 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 209 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 210 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 211 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 212 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 213 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 214 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 215 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 216 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 217 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 218 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 219 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 220 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 221 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 222 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 223 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 224 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 225 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 226 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 227 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 228 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 229 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 230 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 231 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 232 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 233 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 234 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 235 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 236 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 237 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 238 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 239 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 240 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 241 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 242 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 243 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 244 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 245 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 246 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 247 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 248 | golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 249 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 250 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 251 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 252 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 253 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 254 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 255 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 256 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 257 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 258 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 259 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 260 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 261 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 262 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 263 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 264 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 265 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 266 | golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 267 | golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= 268 | golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= 269 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 270 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 271 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 272 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 273 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 274 | golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 275 | golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= 276 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 277 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 278 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 279 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 280 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 281 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 282 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 283 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 284 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 285 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 286 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 287 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 288 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 289 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 290 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 291 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 292 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 293 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 294 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 295 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 296 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 297 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 298 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 299 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 300 | golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 301 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 302 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 303 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 304 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 305 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 306 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 307 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 308 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 309 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 310 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 311 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 312 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 313 | golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 314 | golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 315 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 316 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 317 | golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 318 | golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 319 | golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 320 | golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 321 | golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 322 | golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 323 | golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U= 324 | golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 325 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 326 | golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= 327 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 328 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 329 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 330 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 331 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 332 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 333 | golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= 334 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 335 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 336 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 337 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 338 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 339 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 340 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 341 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 342 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 343 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 344 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 345 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 346 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 347 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 348 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 349 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 350 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 351 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 352 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 353 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 354 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 355 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 356 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 357 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 358 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 359 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 360 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 361 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 362 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 363 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 364 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 365 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 366 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 367 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 368 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 369 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= 370 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 371 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 372 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 373 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 374 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 375 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 376 | golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 377 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 378 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 379 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 380 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 381 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 382 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 383 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 384 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 385 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 386 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 387 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 388 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 389 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 390 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 391 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 392 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 393 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 394 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 395 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= 396 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= 397 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 398 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 399 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 400 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 401 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 402 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 403 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 404 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 405 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 406 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 407 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 408 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 409 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 410 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 411 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 412 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 413 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 414 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 415 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 416 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 417 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 418 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 419 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 420 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 421 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 422 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 423 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 424 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 425 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 426 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= 427 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 428 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= 429 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 430 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 431 | google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 432 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 433 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 434 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 435 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 436 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 437 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 438 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 439 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 440 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= 441 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= 442 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 443 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 444 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 445 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 446 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 447 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 448 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 449 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 450 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 451 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 452 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 453 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 454 | google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= 455 | google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 456 | google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= 457 | google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= 458 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 459 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 460 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 461 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 462 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 463 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 464 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 465 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 466 | gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 467 | gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 468 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 469 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 470 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 471 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 472 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 473 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 474 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 475 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 476 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 477 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 478 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 479 | -------------------------------------------------------------------------------- /pingo-dc-to-dc-dashboard.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [ 3 | { 4 | "name": "DS_PROMETHEUS", 5 | "label": "Prometheus", 6 | "description": "", 7 | "type": "datasource", 8 | "pluginId": "prometheus", 9 | "pluginName": "Prometheus" 10 | } 11 | ], 12 | "__elements": {}, 13 | "__requires": [ 14 | { 15 | "type": "grafana", 16 | "id": "grafana", 17 | "name": "Grafana", 18 | "version": "10.1.1" 19 | }, 20 | { 21 | "type": "datasource", 22 | "id": "prometheus", 23 | "name": "Prometheus", 24 | "version": "1.0.0" 25 | }, 26 | { 27 | "type": "panel", 28 | "id": "table", 29 | "name": "Table", 30 | "version": "" 31 | }, 32 | { 33 | "type": "panel", 34 | "id": "text", 35 | "name": "Text", 36 | "version": "" 37 | }, 38 | { 39 | "type": "panel", 40 | "id": "timeseries", 41 | "name": "Time series", 42 | "version": "" 43 | } 44 | ], 45 | "annotations": { 46 | "list": [ 47 | { 48 | "builtIn": 1, 49 | "datasource": { 50 | "type": "datasource", 51 | "uid": "grafana" 52 | }, 53 | "enable": false, 54 | "hide": true, 55 | "iconColor": "rgba(0, 211, 255, 1)", 56 | "name": "Annotations & Alerts", 57 | "target": { 58 | "limit": 100, 59 | "matchAny": false, 60 | "tags": [ 61 | "arbiter", 62 | "$DestinationDC", 63 | "$Source" 64 | ], 65 | "type": "dashboard" 66 | }, 67 | "type": "dashboard" 68 | } 69 | ] 70 | }, 71 | "editable": true, 72 | "fiscalYearStartMonth": 0, 73 | "graphTooltip": 1, 74 | "id": null, 75 | "links": [], 76 | "liveNow": false, 77 | "panels": [ 78 | { 79 | "collapsed": false, 80 | "gridPos": { 81 | "h": 1, 82 | "w": 24, 83 | "x": 0, 84 | "y": 0 85 | }, 86 | "id": 54, 87 | "panels": [], 88 | "title": "Current Path Info", 89 | "type": "row" 90 | }, 91 | { 92 | "datasource": { 93 | "type": "prometheus", 94 | "uid": "${DS_PROMETHEUS}" 95 | }, 96 | "description": "", 97 | "fieldConfig": { 98 | "defaults": { 99 | "color": { 100 | "mode": "palette-classic" 101 | }, 102 | "custom": { 103 | "axisCenteredZero": false, 104 | "axisColorMode": "text", 105 | "axisLabel": "Latency Percentiles", 106 | "axisPlacement": "auto", 107 | "barAlignment": 0, 108 | "drawStyle": "line", 109 | "fillOpacity": 0, 110 | "gradientMode": "none", 111 | "hideFrom": { 112 | "graph": false, 113 | "legend": false, 114 | "tooltip": false, 115 | "viz": false 116 | }, 117 | "insertNulls": false, 118 | "lineInterpolation": "stepBefore", 119 | "lineWidth": 1, 120 | "pointSize": 5, 121 | "scaleDistribution": { 122 | "type": "linear" 123 | }, 124 | "showPoints": "never", 125 | "spanNulls": false, 126 | "stacking": { 127 | "group": "A", 128 | "mode": "none" 129 | }, 130 | "thresholdsStyle": { 131 | "mode": "off" 132 | } 133 | }, 134 | "links": [], 135 | "mappings": [], 136 | "thresholds": { 137 | "mode": "absolute", 138 | "steps": [ 139 | { 140 | "color": "transparent", 141 | "value": null 142 | }, 143 | { 144 | "color": "#EAB839", 145 | "value": 0.001 146 | }, 147 | { 148 | "color": "semi-dark-yellow", 149 | "value": 0.05 150 | }, 151 | { 152 | "color": "semi-dark-orange", 153 | "value": 0.25 154 | }, 155 | { 156 | "color": "semi-dark-red", 157 | "value": 0.5 158 | } 159 | ] 160 | }, 161 | "unit": "ms" 162 | }, 163 | "overrides": [ 164 | { 165 | "matcher": { 166 | "id": "byName", 167 | "options": "95" 168 | }, 169 | "properties": [ 170 | { 171 | "id": "custom.fillBelowTo", 172 | "value": "75" 173 | }, 174 | { 175 | "id": "custom.lineWidth", 176 | "value": 0 177 | }, 178 | { 179 | "id": "color", 180 | "value": { 181 | "fixedColor": "rgb(128, 128, 128)", 182 | "mode": "fixed" 183 | } 184 | } 185 | ] 186 | }, 187 | { 188 | "matcher": { 189 | "id": "byName", 190 | "options": "75" 191 | }, 192 | "properties": [ 193 | { 194 | "id": "custom.fillBelowTo", 195 | "value": "25" 196 | }, 197 | { 198 | "id": "custom.lineWidth", 199 | "value": 0 200 | }, 201 | { 202 | "id": "color", 203 | "value": { 204 | "fixedColor": "rgb(221, 221, 221)", 205 | "mode": "fixed" 206 | } 207 | } 208 | ] 209 | }, 210 | { 211 | "matcher": { 212 | "id": "byName", 213 | "options": "25" 214 | }, 215 | "properties": [ 216 | { 217 | "id": "custom.fillBelowTo", 218 | "value": "0" 219 | }, 220 | { 221 | "id": "custom.lineWidth", 222 | "value": 0 223 | }, 224 | { 225 | "id": "color", 226 | "value": { 227 | "fixedColor": "rgb(128, 128, 128)", 228 | "mode": "fixed" 229 | } 230 | } 231 | ] 232 | }, 233 | { 234 | "matcher": { 235 | "id": "byName", 236 | "options": "0" 237 | }, 238 | "properties": [ 239 | { 240 | "id": "custom.lineWidth", 241 | "value": 0 242 | } 243 | ] 244 | }, 245 | { 246 | "matcher": { 247 | "id": "byName", 248 | "options": "50" 249 | }, 250 | "properties": [ 251 | { 252 | "id": "custom.lineWidth", 253 | "value": 0 254 | }, 255 | { 256 | "id": "custom.lineWidth", 257 | "value": 2 258 | }, 259 | { 260 | "id": "color", 261 | "value": { 262 | "fixedColor": "dark-green", 263 | "mode": "fixed" 264 | } 265 | }, 266 | { 267 | "id": "custom.fillOpacity", 268 | "value": 0 269 | } 270 | ] 271 | }, 272 | { 273 | "matcher": { 274 | "id": "byName", 275 | "options": "packetloss" 276 | }, 277 | "properties": [ 278 | { 279 | "id": "unit", 280 | "value": "percentunit" 281 | }, 282 | { 283 | "id": "min", 284 | "value": -0.001 285 | }, 286 | { 287 | "id": "custom.axisLabel", 288 | "value": "Packetloss %" 289 | }, 290 | { 291 | "id": "custom.axisSoftMax", 292 | "value": 0.1 293 | }, 294 | { 295 | "id": "color", 296 | "value": { 297 | "fixedColor": "dark-red", 298 | "mode": "thresholds", 299 | "seriesBy": "max" 300 | } 301 | }, 302 | { 303 | "id": "custom.gradientMode", 304 | "value": "scheme" 305 | }, 306 | { 307 | "id": "custom.fillOpacity", 308 | "value": 11 309 | } 310 | ] 311 | }, 312 | { 313 | "matcher": { 314 | "id": "byName", 315 | "options": "100" 316 | }, 317 | "properties": [ 318 | { 319 | "id": "custom.fillBelowTo", 320 | "value": "95" 321 | }, 322 | { 323 | "id": "custom.lineWidth", 324 | "value": 0 325 | }, 326 | { 327 | "id": "color", 328 | "value": { 329 | "fixedColor": "rgb(78, 78, 78)", 330 | "mode": "fixed" 331 | } 332 | } 333 | ] 334 | }, 335 | { 336 | "matcher": { 337 | "id": "byName", 338 | "options": "95" 339 | }, 340 | "properties": [ 341 | { 342 | "id": "custom.lineWidth", 343 | "value": 0 344 | } 345 | ] 346 | }, 347 | { 348 | "matcher": { 349 | "id": "byFrameRefID", 350 | "options": "B" 351 | }, 352 | "properties": [ 353 | { 354 | "id": "unit", 355 | "value": "none" 356 | }, 357 | { 358 | "id": "custom.drawStyle", 359 | "value": "line" 360 | }, 361 | { 362 | "id": "custom.axisSoftMax", 363 | "value": 25 364 | }, 365 | { 366 | "id": "displayName", 367 | "value": "Number of flows with loss" 368 | }, 369 | { 370 | "id": "custom.showPoints", 371 | "value": "always" 372 | }, 373 | { 374 | "id": "custom.fillOpacity", 375 | "value": 32 376 | }, 377 | { 378 | "id": "custom.lineInterpolation", 379 | "value": "stepAfter" 380 | }, 381 | { 382 | "id": "custom.pointSize", 383 | "value": 10 384 | }, 385 | { 386 | "id": "custom.barAlignment", 387 | "value": -1 388 | }, 389 | { 390 | "id": "custom.lineWidth", 391 | "value": 1 392 | }, 393 | { 394 | "id": "custom.pointSize", 395 | "value": 8 396 | }, 397 | { 398 | "id": "custom.axisPlacement", 399 | "value": "right" 400 | }, 401 | { 402 | "id": "custom.axisLabel", 403 | "value": "Lossy Flow Count" 404 | }, 405 | { 406 | "id": "custom.drawStyle", 407 | "value": "points" 408 | } 409 | ] 410 | }, 411 | { 412 | "matcher": { 413 | "id": "byFrameRefID", 414 | "options": "C" 415 | }, 416 | "properties": [ 417 | { 418 | "id": "custom.axisPlacement", 419 | "value": "hidden" 420 | }, 421 | { 422 | "id": "custom.lineWidth", 423 | "value": 1 424 | }, 425 | { 426 | "id": "unit", 427 | "value": "string" 428 | }, 429 | { 430 | "id": "color", 431 | "value": { 432 | "fixedColor": "#403e3e", 433 | "mode": "fixed", 434 | "seriesBy": "last" 435 | } 436 | } 437 | ] 438 | }, 439 | { 440 | "matcher": { 441 | "id": "byFrameRefID", 442 | "options": "D" 443 | }, 444 | "properties": [ 445 | { 446 | "id": "custom.axisPlacement", 447 | "value": "hidden" 448 | }, 449 | { 450 | "id": "custom.lineWidth", 451 | "value": 1 452 | }, 453 | { 454 | "id": "unit", 455 | "value": "string" 456 | }, 457 | { 458 | "id": "color", 459 | "value": { 460 | "fixedColor": "#5c5c5c", 461 | "mode": "fixed" 462 | } 463 | } 464 | ] 465 | } 466 | ] 467 | }, 468 | "gridPos": { 469 | "h": 6, 470 | "w": 14, 471 | "x": 0, 472 | "y": 1 473 | }, 474 | "id": 32, 475 | "interval": "15s", 476 | "links": [ 477 | { 478 | "targetBlank": true, 479 | "title": "Drilldown", 480 | "url": "/grafana/d/yd93l6fMk/pingo-per-pop-per-provider-drilldown?orgId=1&var-DS=Thanos%20-%20dfw&var-Source=$Source&var-DestinationDC=$DestinationDC&var-resolution=$resolution&var-FPBR=CURRENT&var-RPBR=CURRENT&var-Percentiles=All&var-lport=All&var-rport=All&from=${__from}&to=${__to}" 481 | } 482 | ], 483 | "options": { 484 | "graph": {}, 485 | "legend": { 486 | "calcs": [], 487 | "displayMode": "list", 488 | "placement": "bottom", 489 | "showLegend": false 490 | }, 491 | "tooltip": { 492 | "mode": "multi", 493 | "sort": "none" 494 | } 495 | }, 496 | "pluginVersion": "7.4.0", 497 | "targets": [ 498 | { 499 | "datasource": { 500 | "type": "prometheus", 501 | "uid": "${DS_PROMETHEUS}" 502 | }, 503 | "editorMode": "code", 504 | "expr": "max(udp_latency_quantile{dc=\"$Source\",dst_dc=\"$DestinationDC\", pbr=\"CURRENT\", rpbr=\"CURRENT\", pct!~\"avg|0\"}) by (pbr, rpbr, target, pct)", 505 | "hide": false, 506 | "interval": "", 507 | "legendFormat": "{{pct}}", 508 | "queryType": "randomWalk", 509 | "range": true, 510 | "refId": "A" 511 | }, 512 | { 513 | "datasource": { 514 | "type": "prometheus", 515 | "uid": "${DS_PROMETHEUS}" 516 | }, 517 | "editorMode": "code", 518 | "expr": "udp:worst_current_stream_loss:$resolution{dc=\"$Source\",dst_dc=\"$DestinationDC\"}", 519 | "hide": false, 520 | "interval": "", 521 | "legendFormat": "packetloss", 522 | "range": true, 523 | "refId": "G" 524 | }, 525 | { 526 | "datasource": { 527 | "type": "prometheus", 528 | "uid": "${DS_PROMETHEUS}" 529 | }, 530 | "editorMode": "code", 531 | "expr": "count(avg(increase(udp_received_total{dc=\"$Source\",dst_dc=\"$DestinationDC\", pbr=\"CURRENT\", rpbr=\"CURRENT\"}[$resolution])/increase(udp_sent_total{dc=\"$Source\",dst_dc=\"$DestinationDC\", pbr=\"CURRENT\", rpbr=\"CURRENT\"}[$resolution])) by (target,lport,rport) < 1)", 532 | "hide": false, 533 | "interval": "", 534 | "legendFormat": "lossy count", 535 | "range": true, 536 | "refId": "B" 537 | }, 538 | { 539 | "datasource": { 540 | "type": "prometheus", 541 | "uid": "${DS_PROMETHEUS}" 542 | }, 543 | "editorMode": "code", 544 | "exemplar": false, 545 | "expr": "udp_current_transit_path{dc=\"$Source\", dst_dc=\"$DestinationDC\", seq=\"0\"}", 546 | "format": "time_series", 547 | "hide": false, 548 | "instant": false, 549 | "interval": "", 550 | "legendFormat": "Forward Path", 551 | "range": true, 552 | "refId": "C" 553 | }, 554 | { 555 | "datasource": { 556 | "type": "prometheus", 557 | "uid": "${DS_PROMETHEUS}" 558 | }, 559 | "editorMode": "code", 560 | "exemplar": false, 561 | "expr": "udp_current_transit_path{dc=\"$DestinationDC\", dst_dc=\"$Source\", seq=\"0\"}", 562 | "format": "time_series", 563 | "hide": false, 564 | "instant": false, 565 | "interval": "", 566 | "legendFormat": "Reverse Path", 567 | "range": true, 568 | "refId": "D" 569 | } 570 | ], 571 | "title": "CURRENT/CURRENT", 572 | "type": "timeseries" 573 | }, 574 | { 575 | "datasource": { 576 | "type": "prometheus", 577 | "uid": "${DS_PROMETHEUS}" 578 | }, 579 | "fieldConfig": { 580 | "defaults": { 581 | "color": { 582 | "mode": "palette-classic" 583 | }, 584 | "custom": { 585 | "axisCenteredZero": false, 586 | "axisColorMode": "text", 587 | "axisLabel": "", 588 | "axisPlacement": "auto", 589 | "axisSoftMax": 0.05, 590 | "axisSoftMin": -0.05, 591 | "barAlignment": 0, 592 | "drawStyle": "line", 593 | "fillOpacity": 0, 594 | "gradientMode": "none", 595 | "hideFrom": { 596 | "graph": false, 597 | "legend": false, 598 | "tooltip": false, 599 | "viz": false 600 | }, 601 | "insertNulls": false, 602 | "lineInterpolation": "stepBefore", 603 | "lineWidth": 1, 604 | "pointSize": 5, 605 | "scaleDistribution": { 606 | "type": "linear" 607 | }, 608 | "showPoints": "never", 609 | "spanNulls": false, 610 | "stacking": { 611 | "group": "A", 612 | "mode": "none" 613 | }, 614 | "thresholdsStyle": { 615 | "mode": "off" 616 | } 617 | }, 618 | "mappings": [], 619 | "thresholds": { 620 | "mode": "absolute", 621 | "steps": [ 622 | { 623 | "color": "green", 624 | "value": null 625 | }, 626 | { 627 | "color": "red", 628 | "value": 80 629 | } 630 | ] 631 | }, 632 | "unit": "percent" 633 | }, 634 | "overrides": [ 635 | { 636 | "matcher": { 637 | "id": "byName", 638 | "options": "CURRENT/CURRENT" 639 | }, 640 | "properties": [ 641 | { 642 | "id": "color", 643 | "value": { 644 | "fixedColor": "rgb(255, 255, 255)", 645 | "mode": "fixed" 646 | } 647 | }, 648 | { 649 | "id": "custom.lineWidth", 650 | "value": 2 651 | } 652 | ] 653 | }, 654 | { 655 | "matcher": { 656 | "id": "byName", 657 | "options": "CURRENT - CURRENT" 658 | }, 659 | "properties": [ 660 | { 661 | "id": "color", 662 | "value": { 663 | "fixedColor": "#ffffff", 664 | "mode": "fixed" 665 | } 666 | }, 667 | { 668 | "id": "custom.lineWidth", 669 | "value": 3 670 | } 671 | ] 672 | } 673 | ] 674 | }, 675 | "gridPos": { 676 | "h": 6, 677 | "w": 8, 678 | "x": 14, 679 | "y": 1 680 | }, 681 | "id": 12, 682 | "interval": "15s", 683 | "links": [], 684 | "options": { 685 | "graph": {}, 686 | "legend": { 687 | "calcs": [ 688 | "mean", 689 | "lastNotNull", 690 | "max", 691 | "min", 692 | "sum" 693 | ], 694 | "displayMode": "table", 695 | "placement": "right", 696 | "showLegend": true 697 | }, 698 | "tooltip": { 699 | "mode": "multi", 700 | "sort": "none" 701 | } 702 | }, 703 | "pluginVersion": "7.4.0", 704 | "targets": [ 705 | { 706 | "datasource": { 707 | "type": "prometheus", 708 | "uid": "${DS_PROMETHEUS}" 709 | }, 710 | "exemplar": true, 711 | "expr": "udp:provider:loss_latency_score:$resolution{dc=\"$Source\",dst_dc=\"$DestinationDC\"} / ignoring (pbr, rpbr) group_left(dc, dst_dc) udp:provider:loss_latency_score:$resolution{dc=\"$Source\",dst_dc=\"$DestinationDC\", pbr=\"CURRENT\", rpbr=\"CURRENT\"} -1", 712 | "hide": false, 713 | "interval": "", 714 | "intervalFactor": 1, 715 | "legendFormat": "{{pbr}} - {{rpbr}}", 716 | "refId": "D" 717 | }, 718 | { 719 | "datasource": { 720 | "type": "prometheus", 721 | "uid": "${DS_PROMETHEUS}" 722 | }, 723 | "exemplar": true, 724 | "expr": "", 725 | "hide": false, 726 | "interval": "", 727 | "legendFormat": "", 728 | "refId": "E" 729 | } 730 | ], 731 | "title": "$RPBR - LLS % Improvement relative to current", 732 | "type": "timeseries" 733 | }, 734 | { 735 | "datasource": { 736 | "type": "prometheus", 737 | "uid": "${DS_PROMETHEUS}" 738 | }, 739 | "fieldConfig": { 740 | "defaults": { 741 | "color": { 742 | "mode": "thresholds" 743 | }, 744 | "custom": { 745 | "align": "left", 746 | "cellOptions": { 747 | "type": "auto" 748 | }, 749 | "filterable": false, 750 | "inspect": false, 751 | "minWidth": 100, 752 | "width": 100 753 | }, 754 | "mappings": [], 755 | "thresholds": { 756 | "mode": "absolute", 757 | "steps": [ 758 | { 759 | "color": "green", 760 | "value": null 761 | }, 762 | { 763 | "color": "red", 764 | "value": 80 765 | } 766 | ] 767 | } 768 | }, 769 | "overrides": [ 770 | { 771 | "matcher": { 772 | "id": "byRegexp", 773 | "options": ".*" 774 | }, 775 | "properties": [ 776 | { 777 | "id": "custom.hidden", 778 | "value": true 779 | } 780 | ] 781 | }, 782 | { 783 | "matcher": { 784 | "id": "byName", 785 | "options": "Value" 786 | }, 787 | "properties": [ 788 | { 789 | "id": "custom.hidden" 790 | } 791 | ] 792 | }, 793 | { 794 | "matcher": { 795 | "id": "byName", 796 | "options": "Value" 797 | }, 798 | "properties": [ 799 | { 800 | "id": "displayName", 801 | "value": "Path" 802 | } 803 | ] 804 | } 805 | ] 806 | }, 807 | "gridPos": { 808 | "h": 6, 809 | "w": 1, 810 | "x": 22, 811 | "y": 1 812 | }, 813 | "id": 43, 814 | "options": { 815 | "cellHeight": "sm", 816 | "footer": { 817 | "countRows": false, 818 | "fields": "", 819 | "reducer": [ 820 | "sum" 821 | ], 822 | "show": false 823 | }, 824 | "frameIndex": 1, 825 | "showHeader": true 826 | }, 827 | "pluginVersion": "10.1.1", 828 | "targets": [ 829 | { 830 | "datasource": { 831 | "type": "prometheus", 832 | "uid": "${DS_PROMETHEUS}" 833 | }, 834 | "editorMode": "code", 835 | "exemplar": false, 836 | "expr": "udp_current_transit_path{dc=\"$Source\", dst_dc=\"$DestinationDC\"} > 0", 837 | "format": "table", 838 | "instant": true, 839 | "interval": "", 840 | "intervalFactor": 1, 841 | "legendFormat": "", 842 | "refId": "A" 843 | } 844 | ], 845 | "title": "Fwd", 846 | "type": "table" 847 | }, 848 | { 849 | "datasource": { 850 | "type": "prometheus", 851 | "uid": "${DS_PROMETHEUS}" 852 | }, 853 | "fieldConfig": { 854 | "defaults": { 855 | "color": { 856 | "mode": "thresholds" 857 | }, 858 | "custom": { 859 | "align": "left", 860 | "cellOptions": { 861 | "type": "auto" 862 | }, 863 | "inspect": false, 864 | "minWidth": 100, 865 | "width": 100 866 | }, 867 | "mappings": [], 868 | "thresholds": { 869 | "mode": "absolute", 870 | "steps": [ 871 | { 872 | "color": "green", 873 | "value": null 874 | }, 875 | { 876 | "color": "red", 877 | "value": 80 878 | } 879 | ] 880 | } 881 | }, 882 | "overrides": [ 883 | { 884 | "matcher": { 885 | "id": "byRegexp", 886 | "options": ".*" 887 | }, 888 | "properties": [ 889 | { 890 | "id": "custom.hidden", 891 | "value": true 892 | } 893 | ] 894 | }, 895 | { 896 | "matcher": { 897 | "id": "byName", 898 | "options": "Value" 899 | }, 900 | "properties": [ 901 | { 902 | "id": "custom.hidden" 903 | } 904 | ] 905 | }, 906 | { 907 | "matcher": { 908 | "id": "byName", 909 | "options": "Value" 910 | }, 911 | "properties": [ 912 | { 913 | "id": "displayName", 914 | "value": "Path" 915 | } 916 | ] 917 | } 918 | ] 919 | }, 920 | "gridPos": { 921 | "h": 6, 922 | "w": 1, 923 | "x": 23, 924 | "y": 1 925 | }, 926 | "id": 41, 927 | "options": { 928 | "cellHeight": "sm", 929 | "footer": { 930 | "countRows": false, 931 | "fields": "", 932 | "reducer": [ 933 | "sum" 934 | ], 935 | "show": false 936 | }, 937 | "frameIndex": 1, 938 | "showHeader": true 939 | }, 940 | "pluginVersion": "10.1.1", 941 | "targets": [ 942 | { 943 | "datasource": { 944 | "type": "prometheus", 945 | "uid": "${DS_PROMETHEUS}" 946 | }, 947 | "editorMode": "code", 948 | "exemplar": false, 949 | "expr": "udp_current_transit_path{dc=\"$DestinationDC\", dst_dc=\"$Source\"} > 0", 950 | "format": "table", 951 | "instant": true, 952 | "interval": "", 953 | "intervalFactor": 1, 954 | "legendFormat": "", 955 | "refId": "A" 956 | } 957 | ], 958 | "title": "Resp", 959 | "type": "table" 960 | }, 961 | { 962 | "collapsed": false, 963 | "datasource": { 964 | "type": "datasource", 965 | "uid": "grafana" 966 | }, 967 | "gridPos": { 968 | "h": 1, 969 | "w": 24, 970 | "x": 0, 971 | "y": 7 972 | }, 973 | "id": 4, 974 | "panels": [], 975 | "repeat": "FPBR", 976 | "title": "$Source to $DestinationDC via $FPBR", 977 | "type": "row" 978 | }, 979 | { 980 | "datasource": { 981 | "type": "datasource", 982 | "uid": "grafana" 983 | }, 984 | "gridPos": { 985 | "h": 1, 986 | "w": 24, 987 | "x": 0, 988 | "y": 8 989 | }, 990 | "id": 65, 991 | "options": { 992 | "code": { 993 | "language": "plaintext", 994 | "showLineNumbers": false, 995 | "showMiniMap": false 996 | }, 997 | "content": "style=\"background-color: #FCFCFC;\"", 998 | "mode": "markdown" 999 | }, 1000 | "pluginVersion": "10.1.1", 1001 | "title": "${FPBR}", 1002 | "type": "text" 1003 | }, 1004 | { 1005 | "datasource": { 1006 | "type": "prometheus", 1007 | "uid": "${DS_PROMETHEUS}" 1008 | }, 1009 | "fieldConfig": { 1010 | "defaults": { 1011 | "color": { 1012 | "mode": "palette-classic" 1013 | }, 1014 | "custom": { 1015 | "axisCenteredZero": false, 1016 | "axisColorMode": "text", 1017 | "axisLabel": "Latency Percentiles", 1018 | "axisPlacement": "auto", 1019 | "barAlignment": 0, 1020 | "drawStyle": "line", 1021 | "fillOpacity": 0, 1022 | "gradientMode": "none", 1023 | "hideFrom": { 1024 | "graph": false, 1025 | "legend": false, 1026 | "tooltip": false, 1027 | "viz": false 1028 | }, 1029 | "insertNulls": false, 1030 | "lineInterpolation": "stepBefore", 1031 | "lineWidth": 1, 1032 | "pointSize": 5, 1033 | "scaleDistribution": { 1034 | "type": "linear" 1035 | }, 1036 | "showPoints": "never", 1037 | "spanNulls": false, 1038 | "stacking": { 1039 | "group": "A", 1040 | "mode": "none" 1041 | }, 1042 | "thresholdsStyle": { 1043 | "mode": "off" 1044 | } 1045 | }, 1046 | "links": [], 1047 | "mappings": [], 1048 | "thresholds": { 1049 | "mode": "absolute", 1050 | "steps": [ 1051 | { 1052 | "color": "transparent", 1053 | "value": null 1054 | }, 1055 | { 1056 | "color": "light-yellow", 1057 | "value": 0.001 1058 | }, 1059 | { 1060 | "color": "semi-dark-yellow", 1061 | "value": 0.05 1062 | }, 1063 | { 1064 | "color": "semi-dark-orange", 1065 | "value": 0.25 1066 | }, 1067 | { 1068 | "color": "dark-red", 1069 | "value": 0.5 1070 | } 1071 | ] 1072 | }, 1073 | "unit": "ms" 1074 | }, 1075 | "overrides": [ 1076 | { 1077 | "matcher": { 1078 | "id": "byName", 1079 | "options": "95" 1080 | }, 1081 | "properties": [ 1082 | { 1083 | "id": "custom.fillBelowTo", 1084 | "value": "75" 1085 | }, 1086 | { 1087 | "id": "custom.lineWidth", 1088 | "value": 0 1089 | }, 1090 | { 1091 | "id": "color", 1092 | "value": { 1093 | "fixedColor": "rgb(128, 128, 128)", 1094 | "mode": "fixed" 1095 | } 1096 | } 1097 | ] 1098 | }, 1099 | { 1100 | "matcher": { 1101 | "id": "byName", 1102 | "options": "75" 1103 | }, 1104 | "properties": [ 1105 | { 1106 | "id": "custom.fillBelowTo", 1107 | "value": "25" 1108 | }, 1109 | { 1110 | "id": "custom.lineWidth", 1111 | "value": 0 1112 | }, 1113 | { 1114 | "id": "color", 1115 | "value": { 1116 | "fixedColor": "rgb(221, 221, 221)", 1117 | "mode": "fixed" 1118 | } 1119 | } 1120 | ] 1121 | }, 1122 | { 1123 | "matcher": { 1124 | "id": "byName", 1125 | "options": "25" 1126 | }, 1127 | "properties": [ 1128 | { 1129 | "id": "custom.fillBelowTo", 1130 | "value": "0" 1131 | }, 1132 | { 1133 | "id": "custom.lineWidth", 1134 | "value": 0 1135 | }, 1136 | { 1137 | "id": "color", 1138 | "value": { 1139 | "fixedColor": "rgb(128, 128, 128)", 1140 | "mode": "fixed" 1141 | } 1142 | } 1143 | ] 1144 | }, 1145 | { 1146 | "matcher": { 1147 | "id": "byName", 1148 | "options": "0" 1149 | }, 1150 | "properties": [ 1151 | { 1152 | "id": "custom.lineWidth", 1153 | "value": 0 1154 | } 1155 | ] 1156 | }, 1157 | { 1158 | "matcher": { 1159 | "id": "byName", 1160 | "options": "50" 1161 | }, 1162 | "properties": [ 1163 | { 1164 | "id": "custom.lineWidth", 1165 | "value": 0 1166 | }, 1167 | { 1168 | "id": "custom.lineWidth", 1169 | "value": 2 1170 | }, 1171 | { 1172 | "id": "color", 1173 | "value": { 1174 | "fixedColor": "dark-green", 1175 | "mode": "fixed" 1176 | } 1177 | } 1178 | ] 1179 | }, 1180 | { 1181 | "matcher": { 1182 | "id": "byName", 1183 | "options": "packetloss" 1184 | }, 1185 | "properties": [ 1186 | { 1187 | "id": "unit", 1188 | "value": "percentunit" 1189 | }, 1190 | { 1191 | "id": "min", 1192 | "value": -0.001 1193 | }, 1194 | { 1195 | "id": "custom.axisLabel", 1196 | "value": "Packetloss %" 1197 | }, 1198 | { 1199 | "id": "custom.axisSoftMax", 1200 | "value": 0.05 1201 | }, 1202 | { 1203 | "id": "color", 1204 | "value": { 1205 | "fixedColor": "dark-red", 1206 | "mode": "thresholds", 1207 | "seriesBy": "max" 1208 | } 1209 | }, 1210 | { 1211 | "id": "custom.gradientMode", 1212 | "value": "scheme" 1213 | }, 1214 | { 1215 | "id": "custom.drawStyle", 1216 | "value": "line" 1217 | }, 1218 | { 1219 | "id": "custom.fillOpacity", 1220 | "value": 15 1221 | } 1222 | ] 1223 | }, 1224 | { 1225 | "matcher": { 1226 | "id": "byName", 1227 | "options": "100" 1228 | }, 1229 | "properties": [ 1230 | { 1231 | "id": "custom.fillBelowTo", 1232 | "value": "95" 1233 | }, 1234 | { 1235 | "id": "custom.lineWidth", 1236 | "value": 0 1237 | }, 1238 | { 1239 | "id": "color", 1240 | "value": { 1241 | "fixedColor": "rgb(78, 78, 78)", 1242 | "mode": "fixed" 1243 | } 1244 | } 1245 | ] 1246 | }, 1247 | { 1248 | "matcher": { 1249 | "id": "byName", 1250 | "options": "95" 1251 | }, 1252 | "properties": [ 1253 | { 1254 | "id": "custom.lineWidth", 1255 | "value": 0 1256 | } 1257 | ] 1258 | }, 1259 | { 1260 | "matcher": { 1261 | "id": "byFrameRefID", 1262 | "options": "B" 1263 | }, 1264 | "properties": [ 1265 | { 1266 | "id": "unit", 1267 | "value": "none" 1268 | }, 1269 | { 1270 | "id": "custom.drawStyle", 1271 | "value": "line" 1272 | }, 1273 | { 1274 | "id": "custom.lineInterpolation", 1275 | "value": "stepBefore" 1276 | }, 1277 | { 1278 | "id": "custom.drawStyle", 1279 | "value": "bars" 1280 | }, 1281 | { 1282 | "id": "custom.showPoints", 1283 | "value": "always" 1284 | }, 1285 | { 1286 | "id": "custom.axisSoftMax", 1287 | "value": 25 1288 | }, 1289 | { 1290 | "id": "custom.pointSize", 1291 | "value": 8 1292 | }, 1293 | { 1294 | "id": "custom.axisLabel", 1295 | "value": "Lossy Flow Count" 1296 | }, 1297 | { 1298 | "id": "custom.barAlignment", 1299 | "value": -1 1300 | }, 1301 | { 1302 | "id": "custom.drawStyle", 1303 | "value": "points" 1304 | } 1305 | ] 1306 | } 1307 | ] 1308 | }, 1309 | "gridPos": { 1310 | "h": 6, 1311 | "w": 8, 1312 | "x": 0, 1313 | "y": 9 1314 | }, 1315 | "id": 25, 1316 | "interval": "15s", 1317 | "links": [ 1318 | { 1319 | "targetBlank": true, 1320 | "title": "Drilldown", 1321 | "url": "/grafana/d/yd93l6fMk/pingo-per-pop-per-provider-drilldown?orgId=1&var-DS=Thanos%20-%20dfw&var-Source=$Source&var-DestinationDC=$DestinationDC&var-resolution=$resolution&var-FPBR=$FPBR&var-RPBR=$RPBR&var-Percentiles=All&var-lport=All&var-rport=All&from=${__from}&to=${__to}" 1322 | } 1323 | ], 1324 | "maxPerRow": 6, 1325 | "options": { 1326 | "graph": {}, 1327 | "legend": { 1328 | "calcs": [], 1329 | "displayMode": "list", 1330 | "placement": "bottom", 1331 | "showLegend": false 1332 | }, 1333 | "tooltip": { 1334 | "mode": "multi", 1335 | "sort": "none" 1336 | } 1337 | }, 1338 | "pluginVersion": "7.4.0", 1339 | "repeat": "RPBR", 1340 | "repeatDirection": "h", 1341 | "targets": [ 1342 | { 1343 | "datasource": { 1344 | "type": "prometheus", 1345 | "uid": "${DS_PROMETHEUS}" 1346 | }, 1347 | "editorMode": "code", 1348 | "expr": "max(udp_latency_quantile{dc=\"$Source\",dst_dc=\"$DestinationDC\", pbr=\"$FPBR\", rpbr=\"$RPBR\", pct!~\"avg|0\"}) by (pbr, rpbr, target, pct)", 1349 | "interval": "", 1350 | "legendFormat": "{{pct}}", 1351 | "queryType": "randomWalk", 1352 | "range": true, 1353 | "refId": "A" 1354 | }, 1355 | { 1356 | "datasource": { 1357 | "type": "prometheus", 1358 | "uid": "${DS_PROMETHEUS}" 1359 | }, 1360 | "editorMode": "code", 1361 | "expr": "udp:worst_pbr_stream_loss:$resolution{dc=\"$Source\",dst_dc=\"$DestinationDC\",pbr=\"$FPBR\", rpbr=\"$RPBR\"}", 1362 | "interval": "", 1363 | "legendFormat": "packetloss", 1364 | "range": true, 1365 | "refId": "G" 1366 | }, 1367 | { 1368 | "datasource": { 1369 | "type": "prometheus", 1370 | "uid": "${DS_PROMETHEUS}" 1371 | }, 1372 | "editorMode": "code", 1373 | "expr": "count(avg(increase(udp_received_total{dc=\"$Source\",dst_dc=\"$DestinationDC\", pbr=\"$FPBR\", rpbr=\"$RPBR\"}[$resolution])/increase(udp_sent_total{dc=\"$Source\",dst_dc=\"$DestinationDC\", pbr=\"$FPBR\", rpbr=\"$RPBR\"}[$resolution])) by (target,lport,rport) < 1)", 1374 | "hide": false, 1375 | "interval": "", 1376 | "legendFormat": "lossy flow count", 1377 | "range": true, 1378 | "refId": "B" 1379 | } 1380 | ], 1381 | "title": "$DestinationDC to $Source via $RPBR ", 1382 | "type": "timeseries" 1383 | } 1384 | ], 1385 | "refresh": "", 1386 | "schemaVersion": 38, 1387 | "style": "dark", 1388 | "tags": [], 1389 | "templating": { 1390 | "list": [ 1391 | { 1392 | "current": { 1393 | "selected": false, 1394 | "text": "Prometheus", 1395 | "value": "yuJ77vbnz" 1396 | }, 1397 | "hide": 0, 1398 | "includeAll": false, 1399 | "multi": false, 1400 | "name": "DS", 1401 | "options": [], 1402 | "query": "prometheus", 1403 | "refresh": 1, 1404 | "regex": "/Prometheus/", 1405 | "skipUrlSync": false, 1406 | "type": "datasource" 1407 | }, 1408 | { 1409 | "current": {}, 1410 | "datasource": { 1411 | "uid": "$DS" 1412 | }, 1413 | "definition": "label_values(udp_received_total{job=~\"netops_pingo_exporter|netops-pingo\"}, dc)", 1414 | "hide": 0, 1415 | "includeAll": false, 1416 | "multi": false, 1417 | "name": "Source", 1418 | "options": [], 1419 | "query": { 1420 | "query": "label_values(udp_received_total{job=~\"netops_pingo_exporter|netops-pingo\"}, dc)", 1421 | "refId": "StandardVariableQuery" 1422 | }, 1423 | "refresh": 2, 1424 | "regex": "", 1425 | "skipUrlSync": false, 1426 | "sort": 0, 1427 | "tagValuesQuery": "", 1428 | "tagsQuery": "", 1429 | "type": "query", 1430 | "useTags": false 1431 | }, 1432 | { 1433 | "current": {}, 1434 | "datasource": { 1435 | "uid": "$DS" 1436 | }, 1437 | "definition": "label_values(udp_sent_total{dc=\"$Source\"}, dst_dc)", 1438 | "hide": 0, 1439 | "includeAll": false, 1440 | "multi": false, 1441 | "name": "DestinationDC", 1442 | "options": [], 1443 | "query": { 1444 | "query": "label_values(udp_sent_total{dc=\"$Source\"}, dst_dc)", 1445 | "refId": "StandardVariableQuery" 1446 | }, 1447 | "refresh": 2, 1448 | "regex": "", 1449 | "skipUrlSync": false, 1450 | "sort": 0, 1451 | "tagValuesQuery": "", 1452 | "tagsQuery": "", 1453 | "type": "query", 1454 | "useTags": false 1455 | }, 1456 | { 1457 | "auto": false, 1458 | "auto_count": 30, 1459 | "auto_min": "10s", 1460 | "current": { 1461 | "selected": true, 1462 | "text": "1m", 1463 | "value": "1m" 1464 | }, 1465 | "hide": 0, 1466 | "name": "resolution", 1467 | "options": [ 1468 | { 1469 | "selected": true, 1470 | "text": "1m", 1471 | "value": "1m" 1472 | }, 1473 | { 1474 | "selected": false, 1475 | "text": "2m", 1476 | "value": "2m" 1477 | }, 1478 | { 1479 | "selected": false, 1480 | "text": "5m", 1481 | "value": "5m" 1482 | }, 1483 | { 1484 | "selected": false, 1485 | "text": "10m", 1486 | "value": "10m" 1487 | }, 1488 | { 1489 | "selected": false, 1490 | "text": "30m", 1491 | "value": "30m" 1492 | } 1493 | ], 1494 | "query": "1m,2m,5m,10m,30m", 1495 | "queryValue": "", 1496 | "refresh": 2, 1497 | "skipUrlSync": false, 1498 | "type": "interval" 1499 | }, 1500 | { 1501 | "current": {}, 1502 | "datasource": { 1503 | "uid": "$DS" 1504 | }, 1505 | "definition": "label_values(udp_sent_total{dc=\"$Source\", dst_dc=\"$DestinationDC\", pbr!=\"CURRENT\"}, pbr)", 1506 | "hide": 0, 1507 | "includeAll": true, 1508 | "multi": false, 1509 | "name": "FPBR", 1510 | "options": [], 1511 | "query": { 1512 | "query": "label_values(udp_sent_total{dc=\"$Source\", dst_dc=\"$DestinationDC\", pbr!=\"CURRENT\"}, pbr)", 1513 | "refId": "StandardVariableQuery" 1514 | }, 1515 | "refresh": 2, 1516 | "regex": "", 1517 | "skipUrlSync": false, 1518 | "sort": 0, 1519 | "tagValuesQuery": "", 1520 | "tagsQuery": "", 1521 | "type": "query", 1522 | "useTags": false 1523 | }, 1524 | { 1525 | "current": {}, 1526 | "datasource": { 1527 | "uid": "$DS" 1528 | }, 1529 | "definition": "label_values(udp_sent_total{dc=\"$Source\", dst_dc=\"$DestinationDC\", rpbr!=\"CURRENT\"}, rpbr)", 1530 | "hide": 0, 1531 | "includeAll": true, 1532 | "multi": false, 1533 | "name": "RPBR", 1534 | "options": [], 1535 | "query": { 1536 | "query": "label_values(udp_sent_total{dc=\"$Source\", dst_dc=\"$DestinationDC\", rpbr!=\"CURRENT\"}, rpbr)", 1537 | "refId": "StandardVariableQuery" 1538 | }, 1539 | "refresh": 2, 1540 | "regex": "", 1541 | "skipUrlSync": false, 1542 | "sort": 0, 1543 | "tagValuesQuery": "", 1544 | "tagsQuery": "", 1545 | "type": "query", 1546 | "useTags": false 1547 | } 1548 | ] 1549 | }, 1550 | "time": { 1551 | "from": "now-1h", 1552 | "to": "now" 1553 | }, 1554 | "timepicker": {}, 1555 | "timezone": "", 1556 | "title": "PINGO DC-to-DC", 1557 | "uid": "c6c5dff1-6c7b-4f58-b926-9f0a870c8f0f", 1558 | "version": 9, 1559 | "weekStart": "" 1560 | } 1561 | -------------------------------------------------------------------------------- /pingo.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "bufio" 5 | "bytes" 6 | "context" 7 | "crypto/md5" 8 | "encoding/hex" 9 | "fmt" 10 | "github.com/montanaflynn/stats" 11 | "github.com/prometheus/client_golang/prometheus" 12 | "github.com/prometheus/client_golang/prometheus/promauto" 13 | "github.com/prometheus/client_golang/prometheus/promhttp" 14 | "golang.org/x/sys/unix" 15 | "io" 16 | "log" 17 | "math/rand" 18 | "net" 19 | "net/http" 20 | "os" 21 | "os/exec" 22 | "sort" 23 | "strconv" 24 | "strings" 25 | "sync" 26 | "syscall" 27 | "time" 28 | ) 29 | 30 | // Build a struct to hold details of each ping destination 31 | type pingDest struct { 32 | DSTDC string 33 | LOCALIP string 34 | LPORT int64 35 | REMOTEIP string 36 | RPORT int64 37 | PBR int64 38 | RPBR int64 39 | INTERVAL float64 40 | SENDCHAN chan int64 //This is the ping send log. 41 | RECVCHAN chan [2]int64 //This is the ping receive log. 42 | 43 | } 44 | 45 | // Map type to map a string (hash) to 46 | type pingTuple map[string]*pingDest 47 | 48 | // Create channel store to have channel by port work. 49 | type chanStore struct { 50 | SENDCHAN chan int64 51 | RECVCHAN chan [2]int64 52 | } 53 | 54 | type chanByPort map[string]*chanStore 55 | 56 | // Build a struct to hold a pingers pertinent info 57 | type pingerData struct { 58 | SRCSOCKET net.PacketConn //We'll stick a socket here. I don't really care that we're opening multiple sockets per pinger because that's the point. 59 | UDPDEST *net.UDPAddr //We'll store the UDP dest. I'm not sure if it's actually faster to do it this way but it at least seems less wasteful. 60 | } 61 | 62 | //type receiverData map[*net.UDPAddr]*chan int64 63 | 64 | // Map type to map a string (lport:remoteip:rport) to a source socket and dest address 65 | type pingerDataTuple map[string]*pingerData 66 | 67 | func GetMD5Hash(text string) string { 68 | hash := md5.Sum([]byte(text)) 69 | return hex.EncodeToString(hash[:]) 70 | } 71 | 72 | // Uses strings.Builder for string concat for performance reasons 73 | func join(strs ...string) string { 74 | var sb strings.Builder 75 | for _, str := range strs { 76 | sb.WriteString(str) 77 | } 78 | return sb.String() 79 | } 80 | 81 | var ( 82 | udpSent = promauto.NewCounterVec(prometheus.CounterOpts{ 83 | Name: "udp_sent_total", 84 | Help: "UDP sent counter.", 85 | }, 86 | []string{"dst_dc", "localip", "target", "lport", "rport", "pbr", "rpbr"}, 87 | ) 88 | 89 | udpRecv = promauto.NewCounterVec(prometheus.CounterOpts{ 90 | Name: "udp_received_total", 91 | Help: "UDP received counter.", 92 | }, 93 | []string{"dst_dc", "localip", "target", "lport", "rport", "pbr", "rpbr"}, 94 | ) 95 | 96 | udpLatency = promauto.NewGaugeVec(prometheus.GaugeOpts{ 97 | Name: "udp_latency_quantile", 98 | Help: "UDP latency quantiles.", 99 | }, 100 | []string{"dst_dc", "localip", "target", "lport", "rport", "pbr", "rpbr", "pct"}, 101 | ) 102 | 103 | pingoDump = promauto.NewGaugeVec(prometheus.GaugeOpts{ 104 | Name: "pingo_dump_timer", 105 | Help: "Pingo Dump timers", 106 | }, 107 | []string{"dst_dc", "localip", "target", "lport", "rport", "pbr", "rpbr", "timer"}, 108 | ) 109 | 110 | pingoScrape = promauto.NewGaugeVec(prometheus.GaugeOpts{ 111 | Name: "pingo_scrape_timer", 112 | Help: "Pingo Scrape timers", 113 | }, 114 | []string{"timer"}, 115 | ) 116 | 117 | currentPath = promauto.NewGaugeVec(prometheus.GaugeOpts{ 118 | Name: "udp_current_transit_path", 119 | Help: "UDPyng current outbound transit path.", 120 | }, 121 | []string{"dst_dc", "seq", "target"}, 122 | ) 123 | 124 | dumpLock sync.RWMutex 125 | 126 | triggeredDump bool 127 | pingoDebug bool 128 | generateMTR bool 129 | pingoPort string 130 | pingoConfig string 131 | 132 | lastScrape int64 133 | ) 134 | 135 | func getASPath(remoteHost string) (asnInt []int, err error) { 136 | /* 137 | Runs a MTR command for a hostname or IP and returns a filtered AS path list. 138 | */ 139 | 140 | var asnList []string 141 | 142 | cmd := exec.Command("mtr", "-i .1", "-z", "-4", "-c1", "--csv", "-f2", "-oS", "--no-dns", remoteHost) 143 | 144 | //Build a buffer to receive input from stdout 145 | var out bytes.Buffer 146 | cmd.Stdout = &out 147 | err = cmd.Run() 148 | 149 | if err != nil { 150 | return nil, err 151 | } 152 | 153 | //Read through the response line by line until we hit EOF. 154 | for { 155 | text, err := out.ReadString('\n') 156 | if text != "" { 157 | text = strings.TrimSuffix(text, "\n") 158 | 159 | mtrVals := strings.Split(text, ",") //Output should be CSV. Split it up. 160 | 161 | //We're going to build up a list of valid ASN's that we found in the path list. No dupes and trimming some stuff that's not helpful. 162 | if Contains(asnList, mtrVals[6]) == false && mtrVals[6] != "Asn" && mtrVals[6] != "AS???" { 163 | asnList = append(asnList, mtrVals[6]) 164 | } 165 | 166 | } 167 | 168 | //Break once we reach EOF 169 | if err == io.EOF { 170 | break 171 | } 172 | 173 | } 174 | 175 | //Trim off "AS" from each ASN and convert to int slice. 176 | for i := 0; i < len(asnList); i++ { 177 | noAS, err := strconv.Atoi(strings.ReplaceAll(asnList[i], "AS", "")) 178 | if err != nil { 179 | continue 180 | } 181 | 182 | asnInt = append(asnInt, noAS) 183 | } 184 | 185 | return asnInt, nil 186 | 187 | } 188 | 189 | func fetchMTR(destMap pingTuple) { 190 | /* 191 | Iterate across all remote DC's and get current AS Path then populate prometheus metric. 192 | */ 193 | 194 | //Iterate across the destMap and populate a second map with each unique DC and the pertinent info 195 | uniqueDC := make(map[string]string) 196 | 197 | for _, element := range destMap { 198 | if _, ok := uniqueDC[element.DSTDC]; ok == false && element.DSTDC != "recv" { 199 | uniqueDC[element.DSTDC] = element.REMOTEIP 200 | } 201 | } 202 | 203 | for { 204 | for dstDC, remoteIP := range uniqueDC { 205 | dcASPath, _ := getASPath(remoteIP) 206 | 207 | //Clear all the values first so we don't have cruft hanging around 208 | for i := 0; i < 32; i++ { 209 | currentPath.WithLabelValues(dstDC, strconv.FormatInt(int64(i), 10), remoteIP).Set(0.0) 210 | } 211 | 212 | for i := 0; i < len(dcASPath); i++ { 213 | currentPath.WithLabelValues(dstDC, strconv.FormatInt(int64(i), 10), remoteIP).Set(float64(dcASPath[i])) 214 | } 215 | 216 | } 217 | } 218 | } 219 | 220 | func Contains[T comparable](s []T, e T) bool { 221 | // Contains function to see if a slice contains an object. 222 | 223 | for _, v := range s { 224 | if v == e { 225 | return true 226 | } 227 | } 228 | return false 229 | } 230 | 231 | func IsIPv4(address string) bool { 232 | return strings.Count(address, ":") < 2 233 | } 234 | 235 | func IsIPv6(address string) bool { 236 | return strings.Count(address, ":") >= 2 237 | } 238 | 239 | func getSysIP(ipList []string, getbyhostname bool) []net.IP { 240 | if getbyhostname == true { 241 | //Get system hostname 242 | hostname, err := os.Hostname() 243 | if err != nil { 244 | panic(err) 245 | } 246 | 247 | ips, err := net.LookupIP(hostname) 248 | if err != nil { 249 | panic(err) 250 | } 251 | return ips 252 | 253 | } else { 254 | var ips []net.IP 255 | for i := 0; i < len(ipList); i++ { 256 | ip := net.ParseIP(ipList[i]) 257 | log.Println(ip) 258 | 259 | ips = append(ips, ip) 260 | } 261 | return ips 262 | } 263 | 264 | } 265 | 266 | func openPingSocket(portNum int, ipver int, sourceIP string) (net.PacketConn, error) { 267 | 268 | ips := getSysIP([]string{sourceIP}, false) 269 | ipIndex := 0 270 | udpVer := "udp4" 271 | 272 | if ipver == 4 { 273 | for i := 0; i < len(ips); i++ { 274 | if IsIPv4(ips[i].String()) { 275 | ipIndex = i 276 | udpVer = "udp4" 277 | } 278 | } 279 | } else if ipver == 6 { 280 | for i := 0; i < len(ips); i++ { 281 | if IsIPv6(ips[i].String()) { 282 | ipIndex = i 283 | udpVer = "udp6" 284 | } 285 | } 286 | } 287 | 288 | lc := net.ListenConfig{ 289 | Control: func(network, address string, c syscall.RawConn) error { 290 | var opErr error 291 | 292 | //Set the reuse port option 293 | err := c.Control(func(fd uintptr) { 294 | opErr = unix.SetsockoptInt(int(fd), unix.SOL_SOCKET, unix.SO_REUSEPORT, 1) 295 | }) 296 | if err != nil { 297 | return err 298 | } 299 | 300 | rcvbufsize := 212992 //Linux default UDP buffer size 301 | 302 | if len(os.Getenv("PINGOBUFSIZE")) > 0 { //Lets see if the env variable is set. 303 | bufsize := os.Getenv("PINGOBUFSIZE") 304 | log.Println("Buffer size environment variable was set. it is:" + bufsize) 305 | 306 | buf, err := strconv.Atoi(bufsize) 307 | 308 | if err != nil { 309 | log.Println("Buffer" + bufsize + " size could not be converted from string. Leaving at default") 310 | } else { 311 | rcvbufsize = buf 312 | } 313 | 314 | } 315 | 316 | err = c.Control(func(fd uintptr) { 317 | opErr = unix.SetsockoptInt(int(fd), unix.SOL_SOCKET, unix.SO_RCVBUF, rcvbufsize) 318 | }) 319 | if err != nil { 320 | return err 321 | } 322 | 323 | return opErr 324 | }, 325 | } 326 | 327 | portString := strconv.Itoa(portNum) 328 | var portToOpen string 329 | 330 | if ipver == 4 { 331 | portToOpen = join(ips[ipIndex].String(), ":", portString) 332 | } else if ipver == 6 { 333 | portToOpen = join("[", ips[ipIndex].String(), "]", ":", portString) 334 | log.Println(portToOpen) 335 | } 336 | 337 | lp, err := lc.ListenPacket(context.Background(), udpVer, portToOpen) 338 | log.Println("Opening" + udpVer + " socket on " + portToOpen) 339 | 340 | return lp, err 341 | } 342 | 343 | func pinger(destMap pingTuple, mapEntry string, udpSocket net.PacketConn) { 344 | 345 | /* 346 | This actually puts the pings on the wire. It listens to a flows generator routine and then sends the ping out on the UDP socket 347 | 348 | */ 349 | 350 | remoteUdpTuple := join("[", destMap[mapEntry].REMOTEIP, "]:", strconv.FormatInt(destMap[mapEntry].RPORT, 10)) 351 | 352 | //Resolve UDP destination 353 | udpDest, err := net.ResolveUDPAddr("udp", remoteUdpTuple) 354 | if err != nil { 355 | log.Println("Couldnt resolve UDP address on pinger: ", err) 356 | } 357 | 358 | sleepDuration := time.Duration(destMap[mapEntry].INTERVAL * float64(time.Second)) 359 | 360 | time.Sleep(time.Millisecond * time.Duration(rand.Intn(430))) //Randomize startup of pinger to prevent pings from heartbeating. 361 | 362 | // Infinite receive loop. 363 | for { 364 | 365 | nowTime := time.Now().UnixMilli() // Get the current time in milliseconds 366 | 367 | //Do something with this channel. This is where we log the send. 368 | 369 | //Actually send the packet via UDP. 370 | if _, err := udpSocket.WriteTo([]byte(strconv.FormatInt(nowTime, 10)), udpDest); err != nil { 371 | panic(err) 372 | } else { 373 | 374 | destMap[mapEntry].SENDCHAN <- nowTime //Log the send in the channel 375 | } 376 | 377 | time.Sleep(time.Duration(sleepDuration)) 378 | 379 | } 380 | 381 | } 382 | 383 | func receiver(destMap pingTuple, lport int64, mapEntry string) { 384 | /* 385 | This opens a UDP socket on a local port and starts listening for packets. If it gets a response it dumps it into the appropriate response channel. 386 | 387 | If the received packet doesn't look like a response, it'll compose a response and inject it into the send channel to be sent back. 388 | 389 | */ 390 | 391 | //Open the UDP socket to listen on. 392 | udpVer := 4 393 | 394 | if IsIPv4(destMap[mapEntry].LOCALIP) { 395 | udpVer = 4 396 | } 397 | 398 | if IsIPv6(destMap[mapEntry].LOCALIP) { 399 | udpVer = 6 400 | log.Println("This is a udp6 socket") 401 | } 402 | 403 | udpSocket, err := openPingSocket(int(lport), udpVer, destMap[mapEntry].LOCALIP) 404 | if err != nil { 405 | log.Println("Error opening ping socket") 406 | panic(err) 407 | } 408 | 409 | if destMap[mapEntry].DSTDC != "recv" { 410 | go pinger(destMap, mapEntry, udpSocket) 411 | go dumper(destMap, mapEntry) 412 | } 413 | 414 | /* 415 | Build map of channels by port via: type chanByPort map[string]*chanStore for all channels that have our lport. 416 | This lets us use the addr returned by udpSocket.ReadFrom to look up the appropriate send/recieve buffers. 417 | */ 418 | 419 | remoteByPort := make(chanByPort) 420 | 421 | for _, destDetails := range destMap { 422 | if destDetails.LPORT == lport { 423 | if IsIPv6(destDetails.REMOTEIP) { 424 | remoteByPort[join("[", destDetails.REMOTEIP, "]", ":", strconv.FormatInt(destDetails.RPORT, 10))] = &chanStore{destDetails.SENDCHAN, destDetails.RECVCHAN} 425 | } else { 426 | remoteByPort[join(destDetails.REMOTEIP, ":", strconv.FormatInt(destDetails.RPORT, 10))] = &chanStore{destDetails.SENDCHAN, destDetails.RECVCHAN} 427 | } 428 | } 429 | } 430 | 431 | // Start the receive loop. 432 | for { 433 | packetBuffer := make([]byte, 128) 434 | buflen, addr, err := udpSocket.ReadFrom(packetBuffer) 435 | recvTime := time.Now().UnixMilli() 436 | 437 | if err != nil { 438 | log.Println("read failed", err) 439 | continue 440 | } 441 | 442 | if buflen < 50 { //Let's not get skunked by someone sending a very large packet and trying to cause problems. 443 | 444 | go receiveHelper(buflen, packetBuffer, remoteByPort, udpSocket, lport, addr, recvTime) 445 | 446 | } 447 | } 448 | 449 | } 450 | 451 | func receiveHelper(buflen int, packetBuffer []byte, remoteByPort chanByPort, udpSocket net.PacketConn, lport int64, addr net.Addr, recvTime int64) { 452 | /* 453 | This function exists to decouple write attempts of the receive buffer from the big glut of reads that happen during a dump. This is spawned as a goroutine on packet receive. The idea being to let this eat the 454 | latency incurred by the dump routine and let the receive process get back to the business of receiving packets. 455 | */ 456 | 457 | packetContent := packetBuffer[:buflen] 458 | 459 | if string(packetContent[:2]) == "r-" { 460 | //First two characters is a r-. Let's deal with this as a response. 461 | responseString := string(packetContent[2:buflen]) 462 | 463 | packetDataInt, err := strconv.ParseInt(responseString, 10, 64) 464 | if err != nil { 465 | log.Println(join(err.Error(), "Got a bad response sent from ", addr.String(), " to: udp/", strconv.FormatInt(lport, 10), " Could not convert to int64")) 466 | } else { 467 | // Lets see if we expect to receive responses from this host. 468 | if _, ok := remoteByPort[addr.String()]; ok { 469 | //Good int from a known remote host. Lets put it in the appropriate receive buffer. 470 | recvTuple := [2]int64{packetDataInt, recvTime} //Build packet record to insert in to recv channel. It's an array of length 2. [0]: Original packet timestamp [1]: When we received it. 471 | //go receiveHelper(recvTuple, remoteByPort[addr.String()].RECVCHAN) 472 | remoteByPort[addr.String()].RECVCHAN <- recvTuple 473 | } else { 474 | log.Println(join("Got an unsolicited r- from ", addr.String())) 475 | } 476 | 477 | } 478 | } else if buflen >= 12 && buflen < 19 { 479 | //Probably a packet from classic UDPyng 480 | remoteTimestamp := strings.Replace(string(packetContent), ".", "", -1) 481 | remoteTimestamp = remoteTimestamp[0 : buflen-1] 482 | 483 | _, err := strconv.ParseInt(remoteTimestamp, 10, 64) 484 | if err != nil { 485 | log.Println(join("Got a bad classic UDpyng packet sent from ", addr.String(), " to: udp/", strconv.FormatInt(lport, 10), " Could not convert to int64. Error: ", err.Error())) 486 | } else { 487 | //Actually send the packet via UDP. 488 | packetByte := bytes.Trim([]byte(join("r-", string(packetContent[:buflen]))), "\x00") 489 | 490 | if _, err := udpSocket.WriteTo(packetByte, addr); err != nil { 491 | panic(err) 492 | } 493 | 494 | } 495 | 496 | } else { 497 | log.Println(join("Got a bad packet sent from ", addr.String(), " to: udp/", strconv.FormatInt(lport, 10), " Did not look like a ping request or response.")) 498 | } 499 | 500 | } 501 | 502 | func dumper(destMap pingTuple, mapEntry string) { 503 | 504 | /* 505 | This dumps a *single* channel and comiples metrics. 506 | */ 507 | 508 | var lastDump int64 //Let's log the last time we dumped this flow 509 | var deltaHoldover []float64 510 | 511 | for { 512 | 513 | //Lock on MUTEX here. 514 | if triggeredDump == false { 515 | time.Sleep(time.Second * 15) // Run every 10 seconds 516 | } 517 | 518 | dumpStart := time.Now().UnixMicro() // We're going to instrument this to see how long a dump routine usually takes. 519 | dumpLock.RLock() //Institute a read lock. 520 | dumpLockAcq := time.Now().UnixMicro() // We're going to instrument this to see how long a dump routine usually takes. 521 | 522 | recvChan := destMap[mapEntry].RECVCHAN 523 | sendChan := destMap[mapEntry].SENDCHAN 524 | 525 | var readTime int64 = 0 //We update this to stop reading when the time comes. 526 | var recvUnit [2]int64 //We update this to stop reading when the time comes. 527 | sendList := make(map[int64]int64) //A list of all the sends that were going to try and resolve. 528 | var deltaList []float64 //A slice to contain all the latency values we calculate 529 | statList := [6]int{0, 25, 50, 75, 95, 100} //The list of stats to generate. Kind of a constant. 530 | statMap := make(map[int]float64) //A place to contain the stats we generate. 531 | var currentPBR string 532 | var currentRPBR string 533 | 534 | for readTime < time.Now().UnixMilli()-2300 { //Dump all the sends up to the stopTime. (usually now - 2.3s) 535 | readTime = <-sendChan 536 | sendList[readTime] = 0 537 | 538 | } 539 | 540 | if lastDump > lastScrape { 541 | //The last dump completed AFTER the last scrape. We need to read everything out of the deltaHoldover into deltaList 542 | for i := 0; i < len(deltaHoldover); i++ { 543 | deltaList = append(deltaList, deltaHoldover[i]) //Read the holdover slice into deltalist. 544 | } 545 | } 546 | 547 | deltaHoldover = nil //Empty out deltaHoldover 548 | 549 | //The prometheus label should be "CURRENT" when pbr == 0 550 | if destMap[mapEntry].PBR > 0 { 551 | currentPBR = strconv.FormatInt(destMap[mapEntry].PBR, 10) 552 | } else { 553 | currentPBR = "CURRENT" 554 | } 555 | //Same for RPBR 556 | if destMap[mapEntry].RPBR > 0 { 557 | currentRPBR = strconv.FormatInt(destMap[mapEntry].RPBR, 10) 558 | } else { 559 | currentRPBR = "CURRENT" 560 | } 561 | 562 | //How long is the receive channel 563 | recvLen := len(recvChan) 564 | 565 | for i := 0; i < recvLen; i++ { 566 | 567 | recvUnit = <-recvChan 568 | 569 | if _, ok := sendList[recvUnit[0]]; ok { 570 | // Yay we found the appropriate key and can resolve this. Lets append to the delta list with the latency we found. 571 | deltaList = append(deltaList, float64(recvUnit[1]-recvUnit[0])) // Do the math and convert to float64. Since we're using ms as our timecode we shouldnt get into any issuses with generating a float by accident. 572 | deltaHoldover = append(deltaHoldover, float64(recvUnit[1]-recvUnit[0])) //Copy things into deltaholdover. 573 | 574 | } else if recvUnit[1] > time.Now().UnixMilli()-10000 { //If the timestamp of when it was received is newer than now-10000 575 | recvChan <- recvUnit // Put it back in the list 576 | } else { //It's too old to deal with. We'll just zeroize it and let it expire. It'll go down as lost. 577 | recvUnit[0] = 0 //zeroize 578 | recvUnit[1] = 0 //Zeroize 579 | } 580 | 581 | } 582 | 583 | //Let's collect some stats for future use: 584 | sendSize := len(sendList) 585 | recvSize := len(deltaList) 586 | 587 | //We need to record sent packets regardless. 588 | udpSent.WithLabelValues( 589 | destMap[mapEntry].DSTDC, 590 | destMap[mapEntry].LOCALIP, 591 | destMap[mapEntry].REMOTEIP, 592 | strconv.FormatInt(destMap[mapEntry].LPORT, 10), 593 | strconv.FormatInt(destMap[mapEntry].RPORT, 10), 594 | currentPBR, 595 | currentRPBR, 596 | ).Add(float64(sendSize)) 597 | 598 | if len(deltaList) > 0 { 599 | 600 | sort.Float64s(deltaList) 601 | 602 | for i := 0; i < len(statList); i++ { // Generate all the percentiles and store them in the statMap 603 | if statList[i] == 0 { 604 | statMap[statList[i]] = deltaList[0] 605 | } else { 606 | statMap[statList[i]], _ = stats.Percentile(deltaList, float64(statList[i])) 607 | } 608 | } 609 | 610 | statAvg, _ := stats.Mean(deltaList) // Grab the average 611 | 612 | //Compile prometheus metrics. 613 | 614 | udpRecv.WithLabelValues( 615 | destMap[mapEntry].DSTDC, 616 | destMap[mapEntry].LOCALIP, 617 | destMap[mapEntry].REMOTEIP, 618 | strconv.FormatInt(destMap[mapEntry].LPORT, 10), 619 | strconv.FormatInt(destMap[mapEntry].RPORT, 10), 620 | currentPBR, 621 | currentRPBR, 622 | ).Add(float64(recvSize)) 623 | 624 | for key, statValue := range statMap { 625 | udpLatency.WithLabelValues( 626 | destMap[mapEntry].DSTDC, 627 | destMap[mapEntry].LOCALIP, 628 | destMap[mapEntry].REMOTEIP, 629 | strconv.FormatInt(destMap[mapEntry].LPORT, 10), 630 | strconv.FormatInt(destMap[mapEntry].RPORT, 10), 631 | currentPBR, 632 | currentRPBR, 633 | strconv.FormatInt(int64(key), 10), 634 | ).Set(statValue) 635 | } 636 | 637 | udpLatency.WithLabelValues( 638 | destMap[mapEntry].DSTDC, 639 | destMap[mapEntry].LOCALIP, 640 | destMap[mapEntry].REMOTEIP, 641 | strconv.FormatInt(destMap[mapEntry].LPORT, 10), 642 | strconv.FormatInt(destMap[mapEntry].RPORT, 10), 643 | currentPBR, 644 | currentRPBR, 645 | "avg", 646 | ).Set(statAvg) 647 | 648 | } else { 649 | 650 | // We need to increment by 0 for a timeseries that gets no receives. This prevents the timeseries from stealth not reporting. 651 | udpRecv.WithLabelValues( 652 | destMap[mapEntry].DSTDC, 653 | destMap[mapEntry].LOCALIP, 654 | destMap[mapEntry].REMOTEIP, 655 | strconv.FormatInt(destMap[mapEntry].LPORT, 10), 656 | strconv.FormatInt(destMap[mapEntry].RPORT, 10), 657 | currentPBR, 658 | currentRPBR, 659 | ).Add(0.0) 660 | } 661 | 662 | dumpLock.RUnlock() //Unlock before we begin waiting. 663 | 664 | if triggeredDump { 665 | time.Sleep(time.Second * 3) //Sleep before beginning next loop. 666 | } 667 | 668 | lastDump = time.Now().UnixMilli() //We'll log the last time we completed a dump of this flow. 669 | 670 | dumpEnd := time.Now().UnixMicro() // We're going to instrument this to see how long a dump routine usually takes. 671 | pingoDump.WithLabelValues( 672 | destMap[mapEntry].DSTDC, 673 | destMap[mapEntry].LOCALIP, 674 | destMap[mapEntry].REMOTEIP, 675 | strconv.FormatInt(destMap[mapEntry].LPORT, 10), 676 | strconv.FormatInt(destMap[mapEntry].RPORT, 10), 677 | currentPBR, 678 | currentRPBR, 679 | "lock", 680 | ).Set(float64(dumpLockAcq - dumpStart)) 681 | 682 | pingoDump.WithLabelValues( 683 | destMap[mapEntry].DSTDC, 684 | destMap[mapEntry].LOCALIP, 685 | destMap[mapEntry].REMOTEIP, 686 | strconv.FormatInt(destMap[mapEntry].LPORT, 10), 687 | strconv.FormatInt(destMap[mapEntry].RPORT, 10), 688 | currentPBR, 689 | currentRPBR, 690 | "run", 691 | ).Set(float64(dumpEnd - dumpLockAcq)) 692 | 693 | } 694 | } 695 | 696 | func containsint64(s []int64, e int64) bool { 697 | //Just a utility function to decide if a slice contains a given int64 698 | for _, a := range s { 699 | if a == e { 700 | return true 701 | } 702 | } 703 | return false 704 | } 705 | 706 | func debugLog(logString ...string) { 707 | /* 708 | Logs debugging info if the correct env variable is set. 709 | */ 710 | if pingoDebug == true { 711 | var concatString string 712 | for i := 0; i < len(logString); i++ { 713 | concatString = join(concatString, logString[i], " ") 714 | } 715 | log.Println(concatString) 716 | } 717 | } 718 | 719 | func promScrapeMiddleware(h http.Handler) http.HandlerFunc { 720 | /* 721 | Interceptor middleware function for prometheus scrapes. This lets us do things like mutex locking and triggering dumps before actually returning metrics. 722 | */ 723 | 724 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 725 | 726 | lastScrape = time.Now().UnixMilli() //Lets set our scrape sentinel to the last scrape time. 727 | 728 | if triggeredDump == false { 729 | scrapeStart := time.Now().UnixMicro() // We're going to instrument this to see how long a scrape routine usually takes. 730 | 731 | debugLog("Dump start at:", strconv.FormatInt(scrapeStart, 10)) 732 | 733 | dumpLock.Lock() //Lock the dumplock mutex when we begin a scrape. We want to pause all the dumpers before they begin their next dump while we let prometheus scrape. 734 | 735 | scrapeLockAcq := time.Now().UnixMicro() // We're going to instrument this to see how long a scrape routine usually takes. 736 | debugLog("Lock Acquired at:", strconv.FormatInt(scrapeLockAcq, 10)) 737 | 738 | pingoScrape.WithLabelValues("lock").Set(float64(scrapeLockAcq - scrapeStart)) 739 | 740 | h.ServeHTTP(w, r) // call ServeHTTP on the original handler 741 | debugLog("Dump Complete:", strconv.FormatInt(time.Now().UnixMilli(), 10)) 742 | 743 | dumpLock.Unlock() //Unlock the mutex. 744 | } else { 745 | 746 | dumpLock.Unlock() //Unlock the dumplock. This will uncork all the read locked dummpers and let them complete. 747 | time.Sleep(time.Millisecond * 100) //Sleep a bit while the dumpers get sorted. 748 | scrapeStart := time.Now().UnixMicro() // We're going to instrument this to see how long a scrape routine usually takes. 749 | debugLog("Dump start at:", strconv.FormatInt(scrapeStart, 10)) 750 | dumpLock.Lock() //Relock the mutex. By this point all the read locks should have started and we'll block here waiting for them to finish their work. 751 | scrapeLockAcq := time.Now().UnixMicro() // We're going to instrument this to see how long a scrape routine usually takes. 752 | debugLog("Lock Acquired at:", strconv.FormatInt(scrapeLockAcq, 10)) 753 | 754 | pingoScrape.WithLabelValues("lock").Set(float64(scrapeLockAcq - scrapeStart)) 755 | 756 | h.ServeHTTP(w, r) // call ServeHTTP on the original handler to serve up prometheus metrics. 757 | debugLog("Dump Complete:", strconv.FormatInt(time.Now().UnixMilli(), 10)) 758 | 759 | } 760 | 761 | }) 762 | } 763 | 764 | func healthCheck(w http.ResponseWriter, r *http.Request) { 765 | //Health check for nagios 766 | scrapeHealth := func() bool { 767 | if time.Now().UnixMilli()-lastScrape > 600000 { 768 | //Have we not had a scrape in a while? 769 | 770 | return false 771 | } else { 772 | 773 | return true 774 | } 775 | } 776 | 777 | if scrapeHealth() == true { 778 | io.WriteString(w, "OK") 779 | } else { 780 | io.WriteString(w, "Error, have not been scraped in > 10 mins") 781 | } 782 | } 783 | 784 | func main() { 785 | 786 | //Get environment variables 787 | if len(os.Getenv("PINGODEBUG")) > 0 { 788 | pingoDebug = true 789 | } 790 | 791 | if len(os.Getenv("PINGOTRIGDUMP")) > 0 { 792 | triggeredDump = true 793 | } 794 | 795 | if len(os.Getenv("PINGOMTR")) > 0 { 796 | generateMTR = true 797 | } 798 | 799 | if len(os.Getenv("PINGOCONFIG")) > 0 { 800 | pingoConfig = os.Getenv("PINGOCONFIG") 801 | } 802 | 803 | if len(os.Getenv("PINGOPORT")) > 0 { 804 | pingoPort = ":" + os.Getenv("PINGOPORT") 805 | } else { 806 | pingoPort = ":9106" 807 | } 808 | 809 | remoteDetails := make(pingTuple) //Build the map of all the various flows we'll be using along with their dedicated channels 810 | 811 | triggeredDump = false //Probably read this from an environment variable later. Decides if metric dumping is triggered by prometheus scrape or if it runs in a timer. 812 | 813 | //Build a prometheus registry for our metrics 814 | promReg := prometheus.NewRegistry() 815 | promReg.MustRegister(udpSent, udpRecv, udpLatency, pingoDump, pingoScrape, currentPath) 816 | 817 | fmt.Println(join("Opening config file from:", pingoConfig)) 818 | 819 | // Read in config file 820 | file, err := os.Open(pingoConfig) 821 | if err != nil { 822 | log.Fatal(err) 823 | } 824 | defer file.Close() 825 | 826 | //New scanner to read config file in. 827 | scanner := bufio.NewScanner(file) 828 | for scanner.Scan() { 829 | 830 | // Read in the config and put it in the RemoteDetails struct. 831 | 832 | pingEntry := strings.Split(scanner.Text(), "|") 833 | 834 | dst_dc := strings.ToLower(string(pingEntry[0])) 835 | local_ip := pingEntry[1] 836 | lport, _ := strconv.ParseInt(pingEntry[2], 10, 64) 837 | remote_ip := pingEntry[3] 838 | rport, _ := strconv.ParseInt(pingEntry[4], 10, 64) 839 | lpbr, _ := strconv.ParseInt(pingEntry[5], 10, 64) 840 | rpbr, _ := strconv.ParseInt(pingEntry[6], 10, 64) 841 | interval, _ := strconv.ParseFloat(pingEntry[7], 10) 842 | 843 | //Add flow to remoteDetails map 844 | remoteDetails[GetMD5Hash(scanner.Text())] = &pingDest{dst_dc, local_ip, lport, remote_ip, rport, lpbr, rpbr, interval, make(chan int64, 500), make(chan [2]int64, 500)} 845 | 846 | } 847 | 848 | if err := scanner.Err(); err != nil { 849 | log.Fatal(err) 850 | } 851 | 852 | if triggeredDump == true { 853 | dumpLock.Lock() //Lock the dumplock initially if we're doing a triggered dump. 854 | } 855 | 856 | //Start receivers 857 | for key, _ := range remoteDetails { 858 | fmt.Println(join("Opening receiver on ", strconv.FormatInt(remoteDetails[key].LPORT, 10))) 859 | go receiver(remoteDetails, remoteDetails[key].LPORT, key) 860 | } 861 | 862 | if generateMTR == true { 863 | go fetchMTR(remoteDetails) 864 | } 865 | /* 866 | Need to iterate here through the uniquePorts slice and open receive-only ports. 867 | 868 | */ 869 | 870 | fmt.Println("Finished opening pingers") 871 | 872 | http.Handle("/metrics", promScrapeMiddleware(promhttp.HandlerFor(promReg, promhttp.HandlerOpts{}))) 873 | http.HandleFunc("/healthcheck", healthCheck) 874 | 875 | http.ListenAndServe(pingoPort, nil) 876 | 877 | } 878 | --------------------------------------------------------------------------------